- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
Ant from the command line
Mon, 2009-02-16, 23:32
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-
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-
>