ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ernst Reissner <rei3...@arcor.de>
Subject Re: AW: AW: Problems with ANTLR
Date Mon, 19 Aug 2013 07:28:58 GMT
Ok, got one step further:
now i have:

   <path id="antlr.classpath">
     <fileset dir="${basedir}/jars">
       <include name="ant-antlr3.jar"/>
     </fileset>
   </path>

   <taskdef name="ant-antlr3"
        classname="org.apache.tools.ant.antlr.ANTLR3"
        classpathref="antlr.classpath"/>

which seems to work.

But when i try to use the new task by

     <antlr target="${parserDirRelana}/CClass.g"
        outputdirectory="${parserTargetDirRelana}">
        <classpath refid="antlr.classpath"/>
     </antlr>

ant complaints

ernst@localhost:~/Software> ant genParser
Buildfile: /home/ernst/Software/build.xml

init:

genParser:

BUILD FAILED
/home/ernst/Software/build.xml:377: Unable to determine generated class

Total time: 0 seconds

Who can tell me what this means, and even better: what to do now.

Ernst


> Hi Jan,
> i tried
>>   <taskdef
>>     name="ant-antlr3"
>>     classname="org.apache.tools.ant.antlr.ANTLR3"
>>     /> 
> as you suggested (which looks much better than what i did before).
> Result
>
> ernst@localhost:~/Software> ant genParser
> Buildfile: /home/ernst/Software/build.xml
>
> BUILD FAILED
> /home/ernst/Software/build.xml:360: taskdef class
> org.apache.tools.ant.antlr.ANTLR3 cannot be found
>  using the classloader AntClassLoader[]
>
> I am very confused about that, because i integrated ant-antlr3.jar the
> same way
> suse distribution integrated ant-antlr.jar and other taskdefs.
>
> As I wrote before, ant -diagnostics yields
> ------- Ant diagnostics report -------
> Apache Ant(TM) version 1.8.2 compiled on January 27 2013
>
> -------------------------------------------
>  Implementation Version
> -------------------------------------------
> core tasks     : 1.8.2 in file:/usr/share/java/ant.jar
>
> ...
> -------------------------------------------
>  ANT_HOME/lib jar listing
> -------------------------------------------
> ant.home: /usr/share/ant
> ant-jmf.jar (6709 bytes)
> ant-bootstrap.jar (19876 bytes)
> ant-junit.jar (102344 bytes)
> ant.jar (1963225 bytes)
> ant-jsch.jar (40235 bytes)
> ant-launcher.jar (12433 bytes)
> ant-javamail.jar (7959 bytes)
> ant-testutil.jar (15194 bytes)
> ant-antlr3.jar (20889 bytes)
> ant-jdepend.jar (8221 bytes)
> ant-antlr.jar (5750 bytes)
> ant-swing.jar (7547 bytes)
>
> -------------------------------------------
>  USER_HOME/.ant/lib jar listing
> -------------------------------------------
> user.home: /home/ernst
> No such directory.
>
>
> as you can see, ant-antlr3.jar (20889 bytes) is present.
> Also:
> java.class.path :
> /usr/share/java/ant.jar:/usr/share/java/ant-launcher.jar:/usr/share/java/jaxp_parser_impl.jar:/usr/share/java/xml-commons-apis.jar:
> /usr/share/java/antlr.jar:
> /usr/share/java/ant/ant-antlr.jar:/usr/share/java/ant/ant-javamail.jar:/usr/share/java/jdepend.jar:/usr/share/java/ant/ant-jdepend.jar:/usr/share/java/ant/ant-jmf.jar:/usr/share/java/jsch.jar:/usr/share/java/ant/ant-jsch.jar:/usr/share/java/junit.jar:/usr/share/java/ant/ant-junit.jar:/usr/share/java/ant/ant-swing.jar:/usr/share/java/ant/ant-testutil.jar:/usr/lib64/jvm/java/lib/tools.jar:/usr/share/ant/lib/ant-jmf.jar:/usr/share/ant/lib/ant-bootstrap.jar:/usr/share/ant/lib/ant-junit.jar:/usr/share/ant/lib/ant.jar:/usr/share/ant/lib/ant-jsch.jar:/usr/share/ant/lib/ant-launcher.jar:/usr/share/ant/lib/ant-javamail.jar:/usr/share/ant/lib/ant-testutil.jar:
> /usr/share/ant/lib/ant-antlr3.jar:
> /usr/share/ant/lib/ant-jdepend.jar:/usr/share/ant/lib/ant-antlr.jar:/usr/share/ant/lib/ant-swing.jar
>
> I am not an expert, but it looks fine for me.
>
> What could be the problem?
>
> Ernst
>
>
>
>
>
>
>





--
View this message in context: http://ant.1045680.n5.nabble.com/Problems-with-ANTLR-tp1349074p5714358.html
Sent from the Ant - Users mailing list archive at Nabble.com.
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message