ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Williams" <mark.willi...@techop.co.uk>
Subject Please help getting ANT to work with ANTLR 2.7.2
Date Thu, 17 Jul 2003 14:26:08 GMT
Hi,

(Ant 1.5.3-1). Windows XP.

I have been tearing my hair out for two days now trying to get ANT
to accept the <antlr> optional task.  I have the following in my
build.xml file:

  <antlr
    target="RoutingRules.g"
    outputdirectory="."
  />

When I try to build with "ant -v" - I get the following error
messages:

--------------------------------------------------------------------------
C:\Program Files\eclipse\workspace\RoutingRuleParser>ant -v -f build.xml

Warning: JAVA_HOME environment variable is not set.
  If build fails because sun.* classes could not be found
  you will need to set the JAVA_HOME environment variable
  to the installation directory of java.

Apache Ant version 1.5.3 compiled on April 16 2003
Buildfile: build.xml
Detected Java version: 1.4 in: c:\j2sdk1.4.2\jre
Detected OS: Windows XP
parsing buildfile build.xml with URI = file:C:/Program Files/eclipse/workspace/R
outingRuleParser/build.xml
Project base dir set to: C:\Program Files\eclipse\workspace\RoutingRuleParser

BUILD FAILED
file:C:/Program%20Files/eclipse/workspace/RoutingRuleParser/build.xml:15: Unexpe
cted element "antlr"
        at org.apache.tools.ant.helper.ProjectHelperImpl.parse(ProjectHelperImpl
.java:170)
        at org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.jav
a:117)
        at org.apache.tools.ant.Main.runBuild(Main.java:596)
        at org.apache.tools.ant.Main.start(Main.java:196)
        at org.apache.tools.ant.Main.main(Main.java:235)

Total time: 0 seconds
--------------------------------------------------------------------------

I have copied the antlr.jar (and antlrall.jar) files to ant's /lib
directory.  I don't know what else to try.  I have tried this both
from within eclipse and straight from the command line.

Mark.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message