You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xmlbeans.apache.org by ce...@apache.org on 2005/01/27 20:08:13 UTC

svn commit: r126637 - /xmlbeans/trunk/build.xml

Author: cezar
Date: Thu Jan 27 11:08:11 2005
New Revision: 126637

URL: http://svn.apache.org/viewcvs?view=rev&rev=126637
Log:
Contributed by Yana Kadiyska. Adding ability to skip Saxon dl by setting XMLBEANS_EXTERNALS
Modified:
   xmlbeans/trunk/build.xml

Modified: xmlbeans/trunk/build.xml
Url: http://svn.apache.org/viewcvs/xmlbeans/trunk/build.xml?view=diff&rev=126637&p1=xmlbeans/trunk/build.xml&r1=126636&p2=xmlbeans/trunk/build.xml&r2=126637
==============================================================================
--- xmlbeans/trunk/build.xml	(original)
+++ xmlbeans/trunk/build.xml	Thu Jan 27 11:08:11 2005
@@ -42,10 +42,21 @@
         <zip destfile="build/ar/xbeansrc.zip" basedir="." excludes="build/**"/>
     </target>
 
-    <target name="check.saxon8.2.jar">
-        <condition property="saxon8.2.jar.exists">
-            <available file="build/lib/saxon8.jar"/>
-        </condition>
+    <property environment="env"/>
+    <target name="saxon.find1">
+      <property name="saxon_jar" value="${env.XMLBEANS_EXTERNALS}/saxon8.jar"/>
+    </target>
+    <target name="saxon.find2">
+      <property name="saxon_jar" value="build/lib/saxon8.jar"/>
+    </target>
+
+    <target name="check.saxon8.2.jar" depends="saxon.find1,saxon.find2">
+     <condition property="saxon8.2.jar.exists">
+      <or>
+        <available file="build/lib/saxon8.jar"/>
+	<available file="${env.XMLBEANS_EXTERNALS}/saxon8.jar"/>
+	</or>
+      </condition>
     </target>
 
     <target name="saxon8.2.jar" depends="check.saxon8.2.jar, dirs"
@@ -805,7 +816,7 @@
             <classpath id="xpath.compile.path">
                 <pathelement location="build/classes/xmlpublic"/>
                 <pathelement location="build/classes/newstore2"/>
-                <pathelement location="build/lib/saxon8.jar"/>
+                <pathelement location="${saxon_jar}"/>
             </classpath>
         </javac>
     </target>

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: commits-help@xmlbeans.apache.org