ovidiu 02/05/23 14:11:06
Modified: . build.xml
Log:
Added check-jars, a target to verify that JAR files are properly
defined in lib/jars.xml. The "copy-webapp-libs" depends on this target.
Revision Changes Path
1.213 +29 -1 xml-cocoon2/build.xml
Index: build.xml
===================================================================
RCS file: /home/cvs/xml-cocoon2/build.xml,v
retrieving revision 1.212
retrieving revision 1.213
diff -u -r1.212 -r1.213
--- build.xml 22 May 2002 15:25:36 -0000 1.212
+++ build.xml 23 May 2002 21:11:06 -0000 1.213
@@ -1202,7 +1202,7 @@
<!-- =================================================================== -->
<!-- Prepares the libraries for the war package -->
<!-- =================================================================== -->
- <target name="copy-webapp-libs" depends="copy-tools-lib" if="include.webapp.libs">
+ <target name="copy-webapp-libs" depends="copy-tools-lib, check-jars"
if="include.webapp.libs">
<copy todir="${build.war}/WEB-INF/lib">
<fileset dir="${lib.dir}/core">
<include name="*.jar"/>
@@ -1795,6 +1795,34 @@
<!-- =================================================================== -->
<target name="fixsrclf" depends="init">
<fixcrlf srcdir="${java.dir}" includes="**/*.java" eol="lf"/>
+ </target>
+
+ <target name="check-jars" depends="init">
+ <path id="all.jars">
+ <fileset dir="${lib.dir}">
+ <include name="**/*.jar"/>
+ </fileset>
+ </path>
+
+ <property name="all.jars" refid="all.jars"/>
+ <copy file="${lib.dir}/jars.xml.tmpl"
+ tofile="${build.dir}/current-jars.xml"
+ filtering="yes">
+ <filterset>
+ <filter token="JARS" value="${all.jars}"/>
+ </filterset>
+ </copy>
+ <replace file="${build.dir}/current-jars.xml"
+ token=":" value="</jar>
 <jar>"/>
+ <replace file="${build.dir}/current-jars.xml"
+ token="${user.dir}/lib/" value=""/>
+
+ <style in="${lib.dir}/jars.xml" out="${build.dir}/unknown.xml"
+ processor="trax"
+ style="${tools.dir}/src/check-jars.xsl">
+ <param name="current-files"
+ expression="${user.dir}/build/${name}/current-jars.xml"/>
+ </style>
</target>
</project>
----------------------------------------------------------------------
In case of troubles, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]