Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Diff of /branches/adam/project-sleepy/extensions/exquery/restxq/build.xml [000000] .. [r16952] Maximize Restore

  Switch to side-by-side view

--- a
+++ b/branches/adam/project-sleepy/extensions/exquery/restxq/build.xml
@@ -0,0 +1,79 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project basedir="." default="jar" name="restxq">
+    
+    <property name="src" value="src/main/java"/>
+    <property name="build" value="build"/>
+    <property name="top.dir" value="../../.."/>
+    <property name="exquery.dir" value="../"/>
+    
+    <property file="${top.dir}/build.properties"/>
+
+    <property file="../../local.build.properties"/>
+    <property file="../../build.properties"/>
+    
+    <condition property="include.feature.exquery.restxq.config">
+        <istrue value="${include.feature.exquery.restxq}"/>
+    </condition>
+    
+    <path id="classpath.core">
+        <fileset dir="${top.dir}/${lib.core}">
+            <include name="commons-collections*.jar"/>
+            <include name="commons-io*.jar"/>
+            <include name="commons-pool*.jar"/>
+            <include name="xmldb*.jar"/>
+            <include name="log4j*.jar"/>
+        </fileset>
+        <fileset dir="${top.dir}/${lib.optional}">
+            <include name="servlet-api*.jar"/>
+        </fileset>
+        <fileset dir="${exquery.dir}/lib">
+            <include name="*.jar"/>
+        </fileset>
+        <fileset dir="lib">
+            <include name="*.jar"/>
+        </fileset>
+        <pathelement path="${top.dir}/exist.jar"/>
+        <pathelement path="${top.dir}/exist-optional.jar"/>
+        <pathelement path="${top.dir}/start.jar"/>
+        <pathelement path="${java.class.path}"/>
+    </path>
+    
+    <target name="prepare">
+        <mkdir dir="${build}"/>
+    </target>
+    
+    <target name="compile" depends="prepare" if="include.feature.exquery.restxq.config">
+        <echo message="----------------------------------"/>
+        <echo message="Compiling EXQuery RESTXQ extension"/>
+        <echo message="----------------------------------"/>
+        
+        <echo
+            message="Compiling with Java ${ant.java.version} from ${build.compiler.source} source to ${build.compiler.target} target, debug ${build.debug}, optimize ${build.optimize}, deprecation ${build.deprecation}"/>
+        
+        <javac includeAntRuntime="false" debug="${build.debug}" deprecation="${build.deprecation}" 
+            destdir="${build}" encoding="UTF-8"
+            optimize="${build.optimize}" srcdir="${src}" 
+            source="${build.compiler.source}" target="${build.compiler.target}">
+            <classpath>
+                <path refid="classpath.core"/>
+            </classpath>
+        </javac>
+    </target>
+    
+    <target name="jar" depends="compile" if="include.feature.exquery.restxq.config">
+        <echo message="Creating exist-exquery-restxq.jar ..."/>
+        <jar basedir="${build}" jarfile="${top.dir}/${lib.extensions}/exist-exquery-restxq-${project.version}.jar">  
+            <manifest>
+                <attribute name="Project-Name" value="${project.name}"/>
+                <attribute name="Project-Version" value="${project.version}"/>
+                <attribute name="Project-Build" value="${DSTAMP}"/>
+                <attribute name="SVN-Revision" value="${svn.revision}"/>
+            </manifest>
+        </jar>
+    </target>
+    
+    <target name="clean">
+        <delete dir="${build}"/>
+        <delete file="${top.dir}/${lib.extensions}/exist-exquery-restxq-${project.version}.jar" failonerror="false"/>
+    </target>
+</project>