Simple batch file and simple Ant target for making a Zip archive for use by Windows users.
authortkg@tanso
Sat, 20 Apr 2013 18:49:25 +0100
changeset 2 a48550fa1bac
parent 1 4ff0decce826
child 3 b7c884462c0c
Simple batch file and simple Ant target for making a Zip archive for use by Windows users.
FOPRunXSLTExt/build-nonb.xml
FOPRunXSLTExt/examples/runsaxon9he_fop10.bat
--- a/FOPRunXSLTExt/build-nonb.xml	Sat Apr 06 17:41:10 2013 +0100
+++ b/FOPRunXSLTExt/build-nonb.xml	Sat Apr 20 18:49:25 2013 +0100
@@ -3,6 +3,8 @@
 <project name="FOPRunXSLTExt-nonb" default="default" basedir=".">
     <description>Builds, tests, and runs the project FOPRunXSLTExt.</description>
 
+    <property name="zip.version" value="0.0.1" />
+
     <import file="build.xml"/>
 
     <target name="-pre-init">
@@ -36,4 +38,12 @@
       </copy>
       <chmod file="examples/runxalan_fop10.sh" perm="ugo+rx"/>
     </target>
-</project>
\ No newline at end of file
+
+    <target name="zip.windows">
+      <zip destfile="FOPRunXSLTExt-windows-${zip.version}.zip">
+	<zipfileset dir="examples"
+		    includes="runsaxon9he_fop10.bat FOPRunXSLTExt.jar README example1*.* lib/** out"
+		    prefix="FOPRunXSLTExt-windows-${zip.version}" />
+      </zip>
+    </target>
+</project>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/FOPRunXSLTExt/examples/runsaxon9he_fop10.bat	Sat Apr 20 18:49:25 2013 +0100
@@ -0,0 +1,1 @@
+java -cp FOPRunXSLTExt.jar;lib\saxon9he.jar;lib\xalan2-2.7.1.jar;lib\fop-1.0.jar;lib\xmlgraphics-commons-1.4.jar;lib\avalon-framework-4.2.0.jar;lib\commons-logging-1.1.1.jar;lib\batik-all-1.7.jar;lib\commons-io-1.4.jar;lib\serializer-2.7.1.jar net.sf.saxon.Transform -init:org.w3c.ppl.xslt.ext.fop.saxon.RunFOPExtInitializer -s:%1 -xsl:%2 -o:%3 dest_dir=%4 area_tree_filename=%5