ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sunil Mishra <smis...@AI.SRI.COM>
Subject Re: ANTLR task doesn't update its output
Date Mon, 28 Jun 2004 20:18:09 GMT
Hi,

I had posted this previously, and didn't get any responses. I'm hoping 
it was accidentally ignored. I'd be interested in hearing from anyone 
with experience using the antlr task.

Thanks!

Sunil

On Jun 25, 2004, at 3:07 PM, Sunil Mishra wrote:

> Hi,
>
> I've got the following ANTLR in my build.xml:
>
>     <antlr target="${parser.dir}/KIFParser.g">
>       <classpath>
> 	<pathelement location="lib/antlr.jar"/>
>       </classpath>
>     </antlr>
>
> The transcript below starts at a state where everything has been 
> compiled. Note that when I touch KIFParser.g and call ant again, ANTLR 
> is re-invoked. But the output files are not updated. Futher 
> invocations of ant again invoke ANTLR. Hoping I've made an error as 
> silly as the last one I had posted?
>
> Again, I'm using ant 1.6.1 on mac os x.
>
> Thanks!
>
> Sunil
>
>
>
> $ ant -f antlr-build.xml
> Buildfile: antlr-build.xml
>
> init:
>
> copyLib:
>
> compileParser:
>     [antlr] ANTLR Parser Generator   Version 2.7.2   1989-2003 
> jGuru.com
>
>
>
> compile:
>     [javac] Compiling 3 source files to 
> /Volumes/Unix/users/smishra/devl/aic/jtp/beta/java/build/classes
>       [jar] Building jar: 
> /Volumes/Unix/users/smishra/devl/aic/jtp/beta/java/lib/jtp.jar
>
> all:
>
> BUILD SUCCESSFUL
> Total time: 7 seconds
> [smishra@muscat:~/aic/jtp/beta/java]
> $ ant -f antlr-build.xml
> Buildfile: antlr-build.xml
>
> init:
>
> copyLib:
>
> compileParser:
>
> compile:
>
> all:
>
> BUILD SUCCESSFUL
> Total time: 3 seconds
> [smishra@muscat:~/aic/jtp/beta/java]
> $ touch src/jtp/fol/kif/KIFParser.g
> [smishra@muscat:~/aic/jtp/beta/java]
> $ ant -f antlr-build.xml
> Buildfile: antlr-build.xml
>
> init:
>
> copyLib:
>
> compileParser:
>     [antlr] ANTLR Parser Generator   Version 2.7.2   1989-2003 
> jGuru.com
>
>
>
> compile:
>
> all:
>
> BUILD SUCCESSFUL
> Total time: 4 seconds
> [smishra@muscat:~/aic/jtp/beta/java]
> $ ant -f antlr-build.xml
> Buildfile: antlr-build.xml
>
> init:
>
> copyLib:
>
> compileParser:
>     [antlr] ANTLR Parser Generator   Version 2.7.2   1989-2003 
> jGuru.com
>
>
>
> compile:
>
> all:
>
> BUILD SUCCESSFUL
> Total time: 4 seconds
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>


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


Mime
View raw message