Update of /cvsroot/lucene/lucene
In directory usw-pr-cvs1:/tmp/cvs-serv7798

Modified Files:
        build.xml 
Log Message:
I've attached a patch that fixes build.xml so the demo code compiles,
but I still have a few issues that either weren't clear or might not be
what was originally intended.

The original demo target put part of the source (the javacc generated
files) in with the com.lucene source files in build.src.  I changed this
so these files are put into build.demo.  My reason is that by putting
demo source files into build.src they become included with the main
source code by other ant targets.  This problem shows up if you build
the jar target, then build the demo target (the current way, assuming it
would compile), then build the jar target again.  The first and second
jars won't be the same.  The second will include some of the demo files
because the jar target (due to its compile dependency) built the demo
java files added to build.src during the demo target into build.classes.
This could also be fixed by changing the compile target's javac includes
attribute to only include the com directory.

I also made demo more like compile in that it copies all the required
source files into the build area.  Unlike the compile target the class
files are located with the source files in the build area.

Would it be a better solution to make the compile and jar targets only
include the "com" directory and put the demo java files in build.src
and the demo classes in build.classes?  Or is the complete separation
of the demo stuff in the build area desired?

Steve Stock
[EMAIL PROTECTED]


_______________________________________________
Lucene-dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/lucene-dev

Reply via email to