+1 for that.
I also liked how the Avalon people use build.xml to include an external
library. This is maybe a good idea for JavaCC as well:
<target name="check-mx4j">
<available property="mx4j.present"
classname="mx4j.server.MBeanServerImpl">
<classpath refid="project.class.path"/>
</available>
<antcall target="check-mx4j2"/>
</target>
<target name="check-mx4j2" unless="mx4j.present">
<echo>**************************</echo>
<echo>* Please execute target *</echo>
<echo>* 'get-mx4j' in the main *</echo>
<echo>* build.xml build file *</echo>
<echo>* to download one and *</echo>
<echo>* a half Mb of MX4J *</echo>
<echo>**************************</echo>
<fail message="MX4J needed. See above."/>
</target>
<!-- Get the jars from the MX4J project. -->
<!-- For licensing reasons, we are unable to put these Jars in our CVS or
source distributions. -->
<target name="get-mx4j">
<mkdir dir="mx4j"/>
<get
src="http://telia.dl.sourceforge.net/sourceforge/mx4j/mx4j-1.1.1.tar.gz"
dest="mx4j/mx4j.tar.gz"
verbose="true"
usetimestamp="true"/>
<gunzip src="mx4j/mx4j.tar.gz" dest="mx4j" />
<untar src="mx4j/mx4j.tar" dest="mx4j"/>
</target>
----- Original Message -----
From: "gautam" <[EMAIL PROTECTED]>
To: "Lucene Users" <[EMAIL PROTECTED]>
Sent: Monday, November 18, 2002 8:57 AM
Subject: RE: Lucene Source Code + Missing Files
> Hello Otis,
>
> I was looking at the Lucene build file and found that the JavaCC stuff is
> part of the "compile" target. Why not put it into a separate target so
that
> we could just generate the code (queryparser) without having to do a
compile
> ?
>
> I am new to Lucene. So if this is something that has already been
discussed,
> please point me at the appropriate messages.
>
> I have edited the build file for my own use though.
>
> Thanks again.
>
> Regards,
>
> Gautam Satpathy
>
> -----Original Message-----
> From: gautam [mailto:[EMAIL PROTECTED]]
> Sent: Monday, November 18, 2002 1:20 PM
> To: Lucene Users List
> Subject: RE: Lucene Source Code + Missing Files
>
>
> Ah. Thank you.
>
> After some more digging, I located a file called lucene-1.2-src.jar. This
> jar file seems to have the .java files missing from the
> "lucene-1.2-src\src\java\org\apache\lucene\...." folders. These are the
> JavaCC generated files. Also located the ANT build target that does the
> JavaCC part.
>
> Thanks again Otis.
>
> Regards,
>
> Gautam Satpathy
>
> -----Original Message-----
> From: Otis Gospodnetic [mailto:[EMAIL PROTECTED]]
> Sent: Monday, November 18, 2002 1:06 PM
> To: Lucene Users List
> Subject: Re: Lucene Source Code + Missing Files
>
>
> They are generated by JavaCC when you build Lucene jar.
>
> Otis
>
> --- gautam <[EMAIL PROTECTED]> wrote:
> > Hello Folks,
> >
> > I started using Lucene recetly and wanted to look at the source.
> > However,
> > some files seem to be missing from the source package in the Lucene
> > downloads section.
> >
> > The missing files are :
> >
> > org.apache.lucene.queryParser.CharStream;
> > org.apache.lucene.queryParser.ParseException;
> > org.apache.lucene.queryParser.QueryParser;
> > org.apache.lucene.queryParser.QueryParserTokenManager;
> >
> > I looked at the CVS repository at Apache.org but could not locate
> > these
> > files. Any clues ?
> >
> > Regards,
> >
> > Gautam Satpathy
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> >
>
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Web Hosting - Let the expert host your site
> http://webhosting.yahoo.com
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>