- getting the "demo" target to work.

the build.properties is a bit of a mess. i'll get the test target(s)
  working than i'll clean it up.
PR:
Obtained from:
Submitted by:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149578 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jason van Zyl 2001-09-18 17:04:21 +00:00
parent 1a3dd53ada
commit 4e68f4be90
2 changed files with 12 additions and 6 deletions

View File

@ -1,3 +1,6 @@
# ---------------------------------------------------------
# L U C E N E B U I L D P R O P E R T I E S
# ---------------------------------------------------------
name=lucene name=lucene
Name=Lucene Name=Lucene
version=1.0.1-dev version=1.0.1-dev
@ -11,6 +14,7 @@ docs.dest = ./docs
src.dir = ./src/java src.dir = ./src/java
demo.dir = ./src/demo demo.dir = ./src/demo
demo.src = ./src/demo
docs.dir = ./doc docs.dir = ./doc
lib.dir = ./lib lib.dir = ./lib
test.dir = ./src/test test.dir = ./src/test
@ -25,6 +29,7 @@ build.lib = ${build.dir}/lib
build.javadocs = ${build.dir}/docs/api build.javadocs = ${build.dir}/docs/api
build.src = ${build.dir}/src build.src = ${build.dir}/src
build.demo = ${build.dir}/demo build.demo = ${build.dir}/demo
build.src.demo = ${build.dir}/demo/src
build.test = ${build.dir}/test build.test = ${build.dir}/test
junit.src = ${basedir}/test/unit junit.src = ${basedir}/test/unit

View File

@ -120,17 +120,18 @@
<!-- ================================================================== --> <!-- ================================================================== -->
<target name="demo" depends="compile" if="javacc.present"> <target name="demo" depends="compile" if="javacc.present">
<mkdir dir="${build.demo}"/> <mkdir dir="${build.demo}"/>
<copy todir="${build.demo}">
<fileset dir="${src.dir}"> <copy todir="${build.demo}/src">
<include name="demo/**/*.java"/> <fileset dir="${demo.src}">
<include name="demo/**/*.jj"/> <include name="**/*.java"/>
<include name="**/*.jj"/>
</fileset> </fileset>
</copy> </copy>
<javacc <javacc
target="${demo.dir}/HTMLParser/HTMLParser.jj" target="${build.src.demo}/org/apache/lucene/HTMLParser/HTMLParser.jj"
javacchome="${javacc.zip.dir}" javacchome="${javacc.zip.dir}"
outputdirectory="${build.demo}/demo/HTMLParser" outputdirectory="${build.src.demo}/org/apache/lucene/HTMLParser"
/> />
<javac <javac