changing the generated file location

1 view
Skip to first unread message

bmf1972

unread,
Apr 17, 2007, 3:03:00 PM4/17/07
to PlacidSystems.AntlrStudio
Hi,

Is it possible to have change the location of the generated files?

Adrian.

prasha...@gmail.com

unread,
Apr 18, 2007, 4:23:38 AM4/18/07
to PlacidSystems.AntlrStudio
No the files will be generated in the same dir as the .g file.

This is by design, so that an antlr grammar feels just like a java
class.
Thus since the grammar is in a say package 'a', the genrated file must
be in the same package too.

Prashant

bmf1972

unread,
Apr 18, 2007, 2:49:42 PM4/18/07
to PlacidSystems.AntlrStudio
Hmmm...
This sounds like putting the generated class files in the same
directory as the source Java files...
It is possible but complicates the source control and the build
process.
Now I have to exclude all the *.java files under the antlr folder from
source control and I have to write special cleaning routine.
It would be nice to let the user decide where to put his generated
files...
Just my two cents,
Adrian.

prasha...@gmail.com

unread,
Apr 18, 2007, 6:02:30 PM4/18/07
to PlacidSystems.AntlrStudio
Instead of telling it to clean all .java files, you just tell it to
clean-

*Parser.java
*Lexer.java
*TokenTypes.java

Reply all
Reply to author
Forward
0 new messages