stefano 01/12/11 13:22:12
Modified: . build.xml
Log:
- adding lucene to the build
- moving the db files with filtering disabled (which was the solution to the
corruption of the db.backup file)
Revision Changes Path
1.117 +21 -10 xml-cocoon2/build.xml
Index: build.xml
===================================================================
RCS file: /home/cvs/xml-cocoon2/build.xml,v
retrieving revision 1.116
retrieving revision 1.117
diff -u -r1.116 -r1.117
--- build.xml 2001/11/30 09:33:20 1.116
+++ build.xml 2001/12/11 21:22:12 1.117
@@ -327,6 +327,9 @@
property="maybeupload.present"
classname="uk.co.weft.maybeupload.MaybeUploadRequestWrapper"/>
+ <ClassAvailable classpathref="classpath"
+ property="lucene.present"
+ classname="org.apache.lucene.search.Searcher"/>
</target>
<target name="prepare-jdbc" depends="filter-jdbc,nofilter-jdbc"/>
@@ -452,12 +455,22 @@
value="MaybeUpload simplifies the handling of uploaded files."/>
</antcall>
</target>
-
+ <target name="lucene-warn" unless="lucene.present" depends="optional-tests"
+ description="Outputs a warning if org.apache.lucene.* classes are missing
during compilation">
+ <antcall target="op-warning">
+ <param name="thing" value="Lucene"/>
+ <param name="recovery"
+ value="Get Lucene from http://jakarta.apache.org/lucene/ and place the jar
in the lib dir"/>
+ <param name="message"
+ value="Lucene is required for the Cocoon searches."/>
+ </antcall>
+ </target>
+
<!-- =================================================================== -->
<!-- Print out warnings for optional components -->
<!-- =================================================================== -->
<target name="optional-warnings"
- depends="jfor-warn, xmldb-warn, xt-warn, php-warn, naming-warn, svg-warn,
fop-warn, tidy-warn, maybeupload-warn"
+ depends="jfor-warn, xmldb-warn, xt-warn, php-warn, naming-warn, svg-warn,
fop-warn, tidy-warn, maybeupload-warn, lucene-warn"
description="Outputs warnings if some optional jars are missing from the
environment">
</target>
@@ -523,6 +536,8 @@
<exclude name="**/CocoonServlet*.java" unless="servlet.present"/>
+ <exclude name="**/lucene/*" unless="lucene.present"/>
+
<exclude name="**/http/RequestWrapper*.java"/>
<exclude name="**/browser/*.x*"/>
</fileset>
@@ -773,6 +788,7 @@
<exclude name="**/*.jpg"/>
<exclude name="**/*.png"/>
<exclude name="**/i18n/*"/>
+ <exclude name="**/db/*"/>
</fileset>
</copy>
@@ -781,24 +797,19 @@
<include name="**/*.gif"/>
<include name="**/*.jpg"/>
<include name="**/*.png"/>
+ <include name="**/i18n/*"/>
+ <include name="**/db/*"/>
</fileset>
</copy>
<!-- copy the documentation, it's already prepared in the build context dir -->
<mkdir dir="${build.war}/documentation"/>
<copy todir="${build.war}/documentation" filtering="off">
- <fileset dir="${build.context}">
- </fileset>
+ <fileset dir="${build.context}"/>
</copy>
<!-- correct the image references -->
<replace dir="${build.war}/documentation/svg" token="context://images"
value="context://documentation/images"/>
-
- <!-- copy i18n sample webapp-->
- <copy todir="${build.war}/i18n" filtering="off">
- <fileset dir="${webapp.dir}/i18n">
- </fileset>
- </copy>
</target>
----------------------------------------------------------------------
In case of troubles, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]