ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From RADEMAKERS Tanguy <>
Subject Re: Updating Java source, JavaCC?
Date Thu, 29 Jan 2004 22:12:41 GMT
World First: ant-users list member promotes non-ant solution ;)

on a tangentially related matter, i'm trying to get ant to make me a cup 
of coffee whilst my build is processing... any ideas?

Erik Hatcher wrote:

> JavaCC sounds way overkill (and tangential even) to what you are 
> attempting.  The <javacc> task does have a dependency on the JavaCC 
> library itself (which is not included with Ant, you must obtain it 
> yourself.).  Personally, I got fed up with the <javacc> task and just 
> use <java> to launch it.
> Your job sounds most suited to a little command-line scripting magic 
> using Perl, sed, awk, Ruby, or something that is made for ripping 
> through text files.
>     Erik
> On Jan 29, 2004, at 12:02 PM, Clifton C. Craig wrote:
>> Hello all,
>> I have a requirement to update Java source files and insert a version
>> string in files that don't have one. We have a large source repository
>> so it would make most sense to automate this process. I've spent some
>> time investigating JavaCC to see if it could help me or if it would be
>> overkill for what I'm attempting. I noticed there is a javacc task in
>> Ant. It doesn't appear to have any external dependencies. I'm not even
>> sure which jar under ANT_HOME/lib it runs out of. Basically what I want
>> to do is create a Java source code parser that can update and insert
>> version string constants into Java classes (this includes inner classes
>> as well). If I didn't have the inner classes to bother with I would be
>> able to use our existing technologies which introspect binary .class
>> files to determine whether or not the version string is present and just
>> insert the string somewhere after the class declaration. Is what I'm
>> doing feasible or practical? Are there any better solutions available?
>> Cliff
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail:
>> For additional commands, e-mail:
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message