Permalink
Browse files

Tweak build so that RDF steps are optional

  • Loading branch information...
ndw committed Feb 16, 2014
1 parent ae32a20 commit a7784ffc13658f03725a0b4392cb9596a7f156e3
Showing with 28 additions and 3 deletions.
  1. +28 −3 build.xml
View
@@ -185,6 +185,11 @@
<exclude name="com/xmlcalabash/extensions/marklogic/XCCAdhocQuery.java"/>
<exclude name="com/xmlcalabash/extensions/marklogic/XCCInsertDocument.java"/>
<exclude name="com/xmlcalabash/extensions/marklogic/XCCInvokeModule.java"/>
+ <exclude name="com/xmlcalabash/extensions/Sparql.java"/>
+ <exclude name="com/xmlcalabash/extensions/RDFa.java"/>
+ <exclude name="com/xmlcalabash/extensions/RDFLoad.java"/>
+ <exclude name="com/xmlcalabash/extensions/RDFStep.java"/>
+ <exclude name="com/xmlcalabash/extensions/RDFStore.java"/>
<exclude name="com/xmlcalabash/util/FoXEP.java"/>
<exclude name="com/xmlcalabash/util/FoFOP.java"/>
<exclude name="com/xmlcalabash/util/FoAH.java"/>
@@ -213,9 +218,11 @@
</javac>
</target>
- <target name="optional-features" depends="compile-MetadataException,
- compile-XEP,compile-FOP,compile-AH,compile-SendMail,
- compile-DeltaXML,compile-XMLUnit,compile-XCC"/>
+ <target name="optional-features"
+ depends="compile-MetadataException,
+ compile-XEP,compile-FOP,compile-AH,compile-SendMail,
+ compile-DeltaXML,compile-XMLUnit,compile-XCC,
+ compile-RDF"/>
<condition property="XMLUnit.present">
<and>
@@ -334,6 +341,24 @@
</javac>
</target>
+ <available classname="com.hp.hpl.jena.graph.Node"
+ property="RDF.present">
+ <classpath refid="build.classpath"/>
+ </available>
+
+ <target name="compile-RDF" depends="init" if="RDF.present">
+ <javac destdir="${build.dir}"
+ classpathref="build.classpath"
+ source="${j.ver}" target="${j.ver}" includeantruntime="false">
+ <src path="src"/>
+ <include name="com/xmlcalabash/extensions/RDFStep.java"/>
+ <include name="com/xmlcalabash/extensions/RDFa.java"/>
+ <include name="com/xmlcalabash/extensions/RDFLoad.java"/>
+ <include name="com/xmlcalabash/extensions/RDFStore.java"/>
+ <include name="com/xmlcalabash/extensions/Sparql.java"/>
+ </javac>
+ </target>
+
<condition property="FOP.present">
<!-- It probably requires more than these, but if you've got all these... -->
<and>

0 comments on commit a7784ff

Please sign in to comment.