- <property environment="env"/>
- <property name="junit.output.dir" value="junit"/>
- <property name="debuglevel" value="source,lines,vars"/>
- <property name="target" value="1.8"/>
- <property name="source" value="1.8"/>
- <property name="mysqlconnector" value="mysql-connector-java-5.1.31-bin.jar"/>
- <property name="juintexec" value="."/>
- <path id="JUnit 4.libraryclasspath">
- <pathelement location="${juintexec}/junit.jar"/>
- <pathelement location="${juintexec}/org.hamcrest.core.jar"/>
- </path>
- <path id="cacert-gigi.classpath">
- <pathelement location="bin"/>
- <pathelement location="${mysqlconnector}"/>
- </path>
- <path id="cacert-gigi.test.classpath">
- <pathelement location="bin"/>
- <pathelement location="bintest"/>
- <path refid="JUnit 4.libraryclasspath"/>
- <pathelement location="${mysqlconnector}"/>
- </path>
- <target name="init">
- <mkdir dir="bin"/>
- <mkdir dir="bintest"/>
-
- <copy includeemptydirs="false" todir="bin">
- <fileset dir="lib/servlet-api">
- <exclude name="**/*.launch"/>
- <exclude name="**/*.java"/>
- </fileset>
- </copy>
- <copy includeemptydirs="false" todir="bin">
- <fileset dir="lib/jetty">
- <exclude name="**/*.launch"/>
- <exclude name="**/*.java"/>
- </fileset>
- </copy>
- <copy includeemptydirs="false" todir="bin">
- <fileset dir="src">
- <exclude name="**/*.launch"/>
- <exclude name="**/*.java"/>
- </fileset>
- </copy>
- <copy includeemptydirs="false" todir="bin">
- <fileset dir="util">
- <exclude name="**/*.launch"/>
- <exclude name="**/*.java"/>
- </fileset>
- </copy>
- <copy includeemptydirs="false" todir="bintest">
- <fileset dir="tests">
- <exclude name="**/*.launch"/>
- <exclude name="**/*.java"/>
- </fileset>
- </copy>
- </target>
- <target name="clean">
- <delete dir="bin"/>
- </target>
- <target depends="clean" name="cleanall"/>
- <target depends="build-project, native" name="build"/>
- <target depends="init" name="build-project">
- <echo message="${ant.project.name}: ${ant.file}"/>
- <javac debug="true" debuglevel="${debuglevel}" destdir="bin" includeantruntime="false" source="${source}" target="${target}">
- <src path="lib/servlet-api"/>
- <src path="lib/jetty"/>
- <src path="lib/jtar"/>
- <src path="src"/>
- <src path="util"/>
- <classpath refid="cacert-gigi.classpath"/>
- </javac>
- </target>
-
+ <property environment="env" />
+ <property name="junit.output.dir" value="junit" />
+ <property name="debuglevel" value="source,lines,vars" />
+ <property name="target" value="1.8" />
+ <property name="source" value="1.8" />
+ <property name="mysqlconnector" value="mysql-connector-java-5.1.31-bin.jar" />
+ <property name="juintexec" value="." />
+ <path id="JUnit 4.libraryclasspath">
+ <pathelement location="${juintexec}/junit.jar" />
+ <pathelement location="${juintexec}/org.hamcrest.core.jar" />
+ </path>
+ <path id="cacert-gigi.classpath">
+ <pathelement location="bin" />
+ <pathelement location="${mysqlconnector}" />
+ </path>
+ <path id="cacert-gigi.test.classpath">
+ <pathelement location="bin" />
+ <pathelement location="bintest" />
+ <path refid="JUnit 4.libraryclasspath" />
+ <pathelement location="${mysqlconnector}" />
+ </path>
+ <target name="init">
+ <mkdir dir="bin" />
+ <mkdir dir="bintest" />
+
+ <copy includeemptydirs="false" todir="bin">
+ <fileset dir="lib/servlet-api">
+ <exclude name="**/*.launch" />
+ <exclude name="**/*.java" />
+ </fileset>
+ </copy>
+ <copy includeemptydirs="false" todir="bin">
+ <fileset dir="lib/jetty">
+ <exclude name="**/*.launch" />
+ <exclude name="**/*.java" />
+ </fileset>
+ </copy>
+ <copy includeemptydirs="false" todir="bin">
+ <fileset dir="src">
+ <exclude name="**/*.launch" />
+ <exclude name="**/*.java" />
+ </fileset>
+ </copy>
+ <copy includeemptydirs="false" todir="bin">
+ <fileset dir="util">
+ <exclude name="**/*.launch" />
+ <exclude name="**/*.java" />
+ </fileset>
+ </copy>
+ <copy includeemptydirs="false" todir="bintest">
+ <fileset dir="tests">
+ <exclude name="**/*.launch" />
+ <exclude name="**/*.java" />
+ </fileset>
+ </copy>
+ </target>
+ <target name="clean">
+ <delete dir="bin" />
+ </target>
+ <target depends="clean" name="cleanall" />
+ <target depends="build-project, native" name="build" />
+ <target depends="init" name="build-project">
+ <echo message="${ant.project.name}: ${ant.file}" />
+ <javac debug="true" debuglevel="${debuglevel}" destdir="bin"
+ includeantruntime="false" source="${source}" target="${target}">
+ <src path="lib/servlet-api" />
+ <src path="lib/jetty" />
+ <src path="lib/jtar" />
+ <src path="src" />
+ <src path="util" />
+ <classpath refid="cacert-gigi.classpath" />
+ </javac>
+ </target>
+