sylvain 02/05/24 02:28:02
Modified: . build.xml
Log:
Make check-jars cross-platform (didn't work on Win$)
Revision Changes Path
1.214 +9 -3 xml-cocoon2/build.xml
Index: build.xml
===================================================================
RCS file: /home/cvs/xml-cocoon2/build.xml,v
retrieving revision 1.213
retrieving revision 1.214
diff -u -r1.213 -r1.214
--- build.xml 23 May 2002 21:11:06 -0000 1.213
+++ build.xml 24 May 2002 09:28:02 -0000 1.214
@@ -1807,15 +1807,21 @@
<property name="all.jars" refid="all.jars"/>
<copy file="${lib.dir}/jars.xml.tmpl"
tofile="${build.dir}/current-jars.xml"
- filtering="yes">
+ filtering="yes"
+ overwrite="yes">
<filterset>
<filter token="JARS" value="${all.jars}"/>
</filterset>
</copy>
+ <!-- split the path in 'jar' XML elements -->
<replace file="${build.dir}/current-jars.xml"
- token=":" value="</jar>
 <jar>"/>
+ token="${path.separator}" value="</jar>
 <jar>"/>
+ <!-- relativize file names by removing the current directory -->
<replace file="${build.dir}/current-jars.xml"
- token="${user.dir}/lib/" value=""/>
+ token="${user.dir}${file.separator}lib${file.separator}" value=""/>
+ <!-- replace platform-dependent path separator by '/' -->
+ <replace file="${build.dir}/current-jars.xml"
+ token="${file.separator}" value="/"/>
<style in="${lib.dir}/jars.xml" out="${build.dir}/unknown.xml"
processor="trax"
----------------------------------------------------------------------
In case of troubles, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]