This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Ant from the command line

1 reply
Sciss
Joined: 2008-12-17,
User offline. Last seen 28 weeks 5 days ago.

hi,

i'm trying to build some scala project using ant for the first time
from the command line (instead of eclipse or netbeans). i come across
the following error:

/Users/rutz/Documents/devel/scala-compiler-plugins/continuations/
trunk/build.xml:27: The following error occurred while executing this
line:
jar:file:/Library/Java/Extensions/scala-compiler.jar!/scala/tools/ant/
antlib.xml:5: taskdef A class needed by class
scala.tools.ant.FastScalac cannot be found: org/apache/tools/ant/
taskdefs/MatchingTask

what is missing here? as far as i understand, MatchingTask is a core
ant class so why it says it cannot be found. any clues how i can
provide ant with that additional class?

thanks, -sciss-

Sciss
Joined: 2008-12-17,
User offline. Last seen 28 weeks 5 days ago.
Re: Ant from the command line

well, if i copy all jars from /Developer/Java/Ant/lib to /Library/
Extensions/Java , it kind of works. only remaining complaint is

[taskdef] Could not load definitions from resource scala/tools/
partest/antlib.xml. It could not be found.

but it seems to build.

weird.... why ant doesn't find it's proper jars? (ANT_HOME is
exported also just in case (i normally don't need that))

thanks for hints. ciao, -sciss-

Am 16.02.2009 um 23:32 schrieb Sciss:

> hi,
>
> i'm trying to build some scala project using ant for the first time
> from the command line (instead of eclipse or netbeans). i come
> across the following error:
>
> /Users/rutz/Documents/devel/scala-compiler-plugins/continuations/
> trunk/build.xml:27: The following error occurred while executing
> this line:
> jar:file:/Library/Java/Extensions/scala-compiler.jar!/scala/tools/
> ant/antlib.xml:5: taskdef A class needed by class
> scala.tools.ant.FastScalac cannot be found: org/apache/tools/ant/
> taskdefs/MatchingTask
>
> what is missing here? as far as i understand, MatchingTask is a
> core ant class so why it says it cannot be found. any clues how i
> can provide ant with that additional class?
>
> thanks, -sciss-
>

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland