1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2 <project basedir="." default="build" name="cacert-gigi">
3 <property environment="env"/>
4 <property name="junit.output.dir" value="junit"/>
5 <property name="debuglevel" value="source,lines,vars"/>
6 <property name="target" value="1.8"/>
7 <property name="source" value="1.8"/>
8 <property name="mysqlconnector" value="mysql-connector-java-5.1.31-bin.jar"/>
9 <property name="juintexec" value="junit.jar"/>
10 <path id="JUnit 4.libraryclasspath">
11 <pathelement location="${juintexec}"/>
13 <path id="cacert-gigi.classpath">
14 <pathelement location="bin"/>
15 <path refid="JUnit 4.libraryclasspath"/>
16 <pathelement location="${mysqlconnector}"/>
20 <mkdir dir="bintest"/>
22 <copy includeemptydirs="false" todir="bin">
23 <fileset dir="lib/servlet-api">
24 <exclude name="**/*.launch"/>
25 <exclude name="**/*.java"/>
28 <copy includeemptydirs="false" todir="bin">
29 <fileset dir="lib/jetty">
30 <exclude name="**/*.launch"/>
31 <exclude name="**/*.java"/>
34 <copy includeemptydirs="false" todir="bin">
36 <exclude name="**/*.launch"/>
37 <exclude name="**/*.java"/>
40 <copy includeemptydirs="false" todir="bin">
42 <exclude name="**/*.launch"/>
43 <exclude name="**/*.java"/>
46 <copy includeemptydirs="false" todir="bintest">
48 <exclude name="**/*.launch"/>
49 <exclude name="**/*.java"/>
56 <target depends="clean" name="cleanall"/>
57 <target depends="build-subprojects,build-project" name="build"/>
58 <target name="build-subprojects"/>
59 <target depends="init" name="build-project">
60 <echo message="${ant.project.name}: ${ant.file}"/>
61 <javac debug="true" debuglevel="${debuglevel}" destdir="bin" includeantruntime="false" source="${source}" target="${target}">
62 <src path="lib/servlet-api"/>
63 <src path="lib/jetty"/>
66 <classpath refid="cacert-gigi.classpath"/>
69 <target depends="init" name="build-project-test">
70 <echo message="${ant.project.name}: ${ant.file}"/>
71 <javac debug="true" debuglevel="${debuglevel}" destdir="bintest" includeantruntime="false" source="${source}" target="${target}">
73 <classpath refid="cacert-gigi.classpath"/>
76 <target description="Build all projects which reference this project. Useful to propagate changes." name="build-refprojects"/>
77 <target name="FetchLocales">
78 <java classname="org.cacert.gigi.util.FetchLocales" failonerror="true" fork="yes">
79 <classpath refid="cacert-gigi.classpath"/>
82 <target name="Launcher">
83 <java classname="org.cacert.gigi.Launcher" failonerror="true" fork="yes">
84 <classpath refid="cacert-gigi.classpath"/>
87 <target name="test" depends="build-project-test">
88 <mkdir dir="${junit.output.dir}"/>
89 <junit fork="yes" printsummary="withOutAndErr">
90 <formatter type="xml"/>
91 <test name="org.cacert.gigi.TestSSL" todir="${junit.output.dir}"/>
92 <test name="org.cacert.gigi.pages.main.ResgisterPageTest" todir="${junit.output.dir}"/>
93 <classpath refid="cacert-gigi.classpath"/>
96 <target name="junitreport">
97 <junitreport todir="${junit.output.dir}">
98 <fileset dir="${junit.output.dir}">
99 <include name="TEST-*.xml"/>
101 <report format="frames" todir="${junit.output.dir}"/>