Changes to build on a (Linux) system without using NetBeans. Build with 'ant -f build-nonb.xml'.
authorTony Graham
Sat, 06 Apr 2013 17:41:10 +0100
changeset 1 4ff0decce826
parent 0 06f9d2bc68c5
child 2 a48550fa1bac
Changes to build on a (Linux) system without using NetBeans. Build with 'ant -f build-nonb.xml'.
FOPRunXSLTExt/build-nonb.xml
FOPRunXSLTExt/examples/runsaxon9he_fop10.sh
FOPRunXSLTExt/examples/runsaxon9he_fop10.sh.in
FOPRunXSLTExt/examples/runxalan_fop10.sh
FOPRunXSLTExt/examples/runxalan_fop10.sh.in
FOPRunXSLTExt/properties.xml
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/FOPRunXSLTExt/build-nonb.xml	Sat Apr 06 17:41:10 2013 +0100
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Build file for when you don't have NetBeans.-->
+<project name="FOPRunXSLTExt-nonb" default="default" basedir=".">
+    <description>Builds, tests, and runs the project FOPRunXSLTExt.</description>
+
+    <import file="build.xml"/>
+
+    <target name="-pre-init">
+      <property file="properties.xml"/>
+
+      <condition property="file.reference.fop.jar" value="${prebuilt.lib}/fop.jar">
+	<available file="${prebuilt.lib}/fop.jar"/>
+      </condition>
+      <condition property="file.reference.saxon9he.jar" value="${saxon.lib}/saxon9he.jar">
+	<available file="${saxon.lib}/saxon9he.jar"/>
+      </condition>      
+    </target>
+<!--
+    <target name="-post-init">
+      <echoproperties/>
+    </target>
+-->
+    <target name="-post-jar" depends="-pre-init">
+      <property name="FOPRunXSLTExt.jar" location="dist/FOPRunXSLTExt.jar"/>
+      <filterset id="jars">
+	<filter token="file.reference.fop.jar" value="${file.reference.fop.jar}"/>
+	<filter token="file.reference.saxon9he.jar" value="${file.reference.saxon9he.jar}"/>
+	<filter token="FOPRunXSLTExt.jar" value="${FOPRunXSLTExt.jar}"/>
+      </filterset>
+      <copy file="examples/runsaxon9he_fop10.sh.in" tofile="examples/runsaxon9he_fop10.sh">
+	<filterset refid="jars"/>
+      </copy>
+      <chmod file="examples/runsaxon9he_fop10.sh" perm="ugo+rx"/>
+      <copy file="examples/runxalan_fop10.sh.in" tofile="examples/runxalan_fop10.sh">
+	<filterset refid="jars"/>
+      </copy>
+      <chmod file="examples/runxalan_fop10.sh" perm="ugo+rx"/>
+    </target>
+</project>
\ No newline at end of file
--- a/FOPRunXSLTExt/examples/runsaxon9he_fop10.sh	Sat Apr 06 17:27:47 2013 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,13 +0,0 @@
-#!/bin/bash
-
-SAXON=/home/arvedhs/Development/JavaLibs/saxon9he.jar
-FOP=/home/arvedhs/Development/XSLFO/fop-1.0
-CP=$SAXON:$FOP/build/fop.jar
-CP=$CP:$FOP/lib/xmlgraphics-commons-1.4.jar
-CP=$CP:$FOP/lib/commons-logging-1.0.4.jar
-CP=$CP:$FOP/lib/commons-io-1.3.1.jar
-CP=$CP:$FOP/lib/avalon-framework-4.2.0.jar
-CP=$CP:$FOP/lib/batik-all-1.7.jar
-CP=$CP:~/Development/NetBeansProjects/FOPRunXSLTExt/dist/FOPRunXSLTExt.jar
-
-java -cp $CP 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
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/FOPRunXSLTExt/examples/runsaxon9he_fop10.sh.in	Sat Apr 06 17:41:10 2013 +0100
@@ -0,0 +1,13 @@
+#!/bin/bash
+
[email protected]@
+FOP=/home/arvedhs/Development/XSLFO/fop-1.0
+CP=$SAXON:@[email protected]
+CP=$CP:$FOP/lib/xmlgraphics-commons-1.4.jar
+CP=$CP:$FOP/lib/commons-logging-1.0.4.jar
+CP=$CP:$FOP/lib/commons-io-1.3.1.jar
+CP=$CP:$FOP/lib/avalon-framework-4.2.0.jar
+CP=$CP:$FOP/lib/batik-all-1.7.jar
+CP=$CP:@[email protected]
+
+java -cp $CP 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
\ No newline at end of file
--- a/FOPRunXSLTExt/examples/runxalan_fop10.sh	Sat Apr 06 17:27:47 2013 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,16 +0,0 @@
-#!/bin/bash
-
-FOP=/home/arvedhs/Development/XSLFO/fop-1.0
-CP=$FOP/build/fop.jar
-CP=$CP:$FOP/lib/xalan-2.7.0.jar
-CP=$CP:$FOP/lib/xercesImpl-2.7.1.jar
-CP=$CP:$FOP/lib/xml-apis-1.3.04.jar
-CP=$CP:$FOP/lib/serializer-2.7.0.jar
-CP=$CP:$FOP/lib/xmlgraphics-commons-1.4.jar
-CP=$CP:$FOP/lib/commons-logging-1.0.4.jar
-CP=$CP:$FOP/lib/commons-io-1.3.1.jar
-CP=$CP:$FOP/lib/avalon-framework-4.2.0.jar
-CP=$CP:$FOP/lib/batik-all-1.7.jar
-CP=$CP:~/Development/NetBeansProjects/FOPRunXSLTExt/dist/FOPRunXSLTExt.jar
-
-java -cp $CP org.apache.xalan.xslt.Process -IN $1 -XSL $2 -OUT $3 -PARAM dest_dir $4 -PARAM area_tree_filename $5
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/FOPRunXSLTExt/examples/runxalan_fop10.sh.in	Sat Apr 06 17:41:10 2013 +0100
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+FOP=/home/arvedhs/Development/XSLFO/fop-1.0
[email protected]@
+CP=$CP:$FOP/lib/xalan-2.7.0.jar
+CP=$CP:$FOP/lib/xercesImpl-2.7.1.jar
+CP=$CP:$FOP/lib/xml-apis-1.3.04.jar
+CP=$CP:$FOP/lib/serializer-2.7.0.jar
+CP=$CP:$FOP/lib/xmlgraphics-commons-1.4.jar
+CP=$CP:$FOP/lib/commons-logging-1.0.4.jar
+CP=$CP:$FOP/lib/commons-io-1.3.1.jar
+CP=$CP:$FOP/lib/avalon-framework-4.2.0.jar
+CP=$CP:$FOP/lib/batik-all-1.7.jar
+CP=$CP:@[email protected]
+
+java -cp $CP org.apache.xalan.xslt.Process -IN $1 -XSL $2 -OUT $3 -PARAM dest_dir $4 -PARAM area_tree_filename $5
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/FOPRunXSLTExt/properties.xml	Sat Apr 06 17:41:10 2013 +0100
@@ -0,0 +1,7 @@
+<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
+<properties version="1.0">
+<comment>Properties for build FOPRunXSLTExt</comment>
+
+<entry key="prebuilt.lib">/usr/share/java</entry>
+<entry key="saxon.lib">/usr/local/share/saxon</entry>
+</properties>
\ No newline at end of file