You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Alex Karasulu <ao...@bellsouth.net> on 2004/11/05 18:10:00 UTC
[jalopy][antlr] Making Jalopy massage the generated ANTLR output
Hiya,
I've worked a cludge to get the Jalopy Plugin to clean up the generated
source files from the ANTLR Plugin. Here's why its a cludge. First the
ANTLR Plugin generates files into target/antlr which is a pretty good
way to go; this way 'clean' goals remove all the unecessary generated
stuff. The problem is there is no property I can set which makes Jalopy
capable of scrubbing source files anywhere except under src/java or
src/test. So I just make ANTLR generate into src/java. This is the
cludge. Of course I have a post goal to find and cleanup generated
files. But why do that if its not right.
Now I ask, is there anyway I can get Jalopy to format code anywhere
other than in src/java?
It would be nice to have this for all code generating plugins so we can
format output right after generation. This would make all the nasty
yellow ticks in Eclipse or IDEA go away for generated code. Oh and yes
I tried using filters in the ide to get rid of complaints but this has
major problems too and in the end the code stays ugly :(.
Thanks,
Alex
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: [jalopy][antlr] Making Jalopy massage the generated ANTLR output
Posted by Alex Karasulu <ao...@bellsouth.net>.
Jason van Zyl wrote:
>On Fri, 2004-11-05 at 12:10, Alex Karasulu wrote:
>
>
>>Hiya,
>>
>>I've worked a cludge to get the Jalopy Plugin to clean up the generated
>>source files from the ANTLR Plugin. Here's why its a cludge.
>>
>>
>
>Can I ask why you're formatting generated code? You just want to make it
>easier to checkout what ANTLR is doing? I just find it really odd to
>want to format generated code.
>
>
Yeah it's mainly for that because I was thinking of working on some
antlr patches and wanted to have repeated generate and see cycles.
Formatting would be nice to have. Plus it stinks to have all your code
in the green and then have the generated code putting you back in the
yellow with both IDEA and Eclipse.
Alex
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: [jalopy][antlr] Making Jalopy massage the generated ANTLR
output
Posted by Jason van Zyl <jv...@maven.org>.
On Fri, 2004-11-05 at 12:10, Alex Karasulu wrote:
> Hiya,
>
> I've worked a cludge to get the Jalopy Plugin to clean up the generated
> source files from the ANTLR Plugin. Here's why its a cludge.
Can I ask why you're formatting generated code? You just want to make it
easier to checkout what ANTLR is doing? I just find it really odd to
want to format generated code.
--
jvz.
Jason van Zyl
jason@maven.org
http://maven.apache.org
happiness is like a butterfly: the more you chase it, the more it will
elude you, but if you turn your attention to other things, it will come
and sit softly on your shoulder ...
-- Thoreau
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org