[stringtemplate-interest] Unable to build java ST 3.2.1 using maven
Jim Idle
jimi at temporal-wave.com
Thu Nov 5 08:55:14 PST 2009
OK - it looks like this jar was built by Terence's old script and that one of the things that script does is build stringtemplate itself with a script rather than via Maven. So what has happened is that that script generated .java files for the grammars in the src tree. Maven then builds them correctly under generated-sources but then it compiles all the .java files and so it compiles the ones that were in the jar and the ones it has just generated and you get the duplicate classes.
I will fix up the tar shortly and announce. Ter - can we change your script to make this jar by calling Maven?
Jim
> -----Original Message-----
> From: Marziou, Gael [mailto:gael.marziou at hp.com]
> Sent: Thursday, November 05, 2009 6:55 AM
> To: Jim Idle; stringtemplate-interest at antlr.org
> Subject: RE: [stringtemplate-interest] Unable to build java ST 3.2.1
> using maven
>
>
> Hi Jim,
>
> BTW, there are 2 reasons why I want to recompile ST:
>
> 1. To be able to inspect local variables in debugger, it seems like the
> compiler options used to build ST do not include local variables (-
> g:[lines,vars,source]).
>
> 2. To fix a problem when an NPE in AutoIndentWriter.write(String str)
> line 150 when a custom AttributeRenderer returns null. How to report a
> bug? I think this should be caught and/or a descriptive error message
> logged.
>
> Back to the compile issue:
>
> CLASSPATH is not set.
>
> I downloaded from
>
> http://www.stringtemplate.org/download/stringtemplate-3.2.1.tar.gz
>
> mvn -version
> Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200)
> Java version: 1.5.0_07
> Java home: C:\Program Files\Java\jdk1.5.0_07\jre
> Default locale: en_US, platform encoding: Cp1252
> OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"
>
> Thanks,
>
> Gael
>
> > -----Original Message-----
> > From: stringtemplate-interest-bounces at antlr.org
> > [mailto:stringtemplate-interest-bounces at antlr.org] On Behalf
> > Of Jim Idle
> > Sent: Wednesday, November 04, 2009 5:04 PM
> > To: stringtemplate-interest at antlr.org
> > Subject: Re: [stringtemplate-interest] Unable to build java
> > ST 3.2.1 using maven
> >
> > Should be. Do you have CLASSPATH set or something like that?
> > Obviously it builds because we could not have released the
> > jar otherwise ;-)
> >
> > I will try to check the source jar today, but building at the
> > command line after mvn clean and making sure CLASSPATH is not
> > set just worked on my local Windows Vista and Linux systems.
> > Which source jar did you download - the one on the download page?
> >
> > Jim
More information about the stringtemplate-interest
mailing list