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}"/>
18 <path id="cacert-gigi.test.classpath">
19 <pathelement location="bintest"/>
20 <path refid="JUnit 4.libraryclasspath"/>
21 <pathelement location="${mysqlconnector}"/>
25 <mkdir dir="bintest"/>
27 <copy includeemptydirs="false" todir="bin">
28 <fileset dir="lib/servlet-api">
29 <exclude name="**/*.launch"/>
30 <exclude name="**/*.java"/>
33 <copy includeemptydirs="false" todir="bin">
34 <fileset dir="lib/jetty">
35 <exclude name="**/*.launch"/>
36 <exclude name="**/*.java"/>
39 <copy includeemptydirs="false" todir="bin">
41 <exclude name="**/*.launch"/>
42 <exclude name="**/*.java"/>
45 <copy includeemptydirs="false" todir="bin">
47 <exclude name="**/*.launch"/>
48 <exclude name="**/*.java"/>
51 <copy includeemptydirs="false" todir="bintest">
53 <exclude name="**/*.launch"/>
54 <exclude name="**/*.java"/>
61 <target depends="clean" name="cleanall"/>
62 <target depends="build-subprojects,build-project" name="build"/>
63 <target name="build-subprojects"/>
64 <target depends="init" name="build-project">
65 <echo message="${ant.project.name}: ${ant.file}"/>
66 <javac debug="true" debuglevel="${debuglevel}" destdir="bin" includeantruntime="false" source="${source}" target="${target}">
67 <src path="lib/servlet-api"/>
68 <src path="lib/jetty"/>
71 <classpath refid="cacert-gigi.classpath"/>
74 <target depends="init" name="build-project-test">
75 <echo message="${ant.project.name}: ${ant.file}"/>
76 <javac debug="true" debuglevel="${debuglevel}" destdir="bintest" includeantruntime="false" source="${source}" target="${target}">
78 <classpath refid="cacert-gigi.test.classpath"/>
81 <target description="Build all projects which reference this project. Useful to propagate changes." name="build-refprojects"/>
82 <target name="FetchLocales">
83 <java classname="org.cacert.gigi.util.FetchLocales" failonerror="true" fork="yes">
84 <classpath refid="cacert-gigi.classpath"/>
87 <target name="Launcher">
88 <java classname="org.cacert.gigi.Launcher" failonerror="true" fork="yes">
89 <classpath refid="cacert-gigi.classpath"/>
92 <target name="test" depends="build-project-test">
93 <mkdir dir="${junit.output.dir}"/>
94 <junit fork="yes" printsummary="withOutAndErr">
95 <formatter type="xml"/>
96 <test name="org.cacert.gigi.TestSSL" todir="${junit.output.dir}"/>
97 <test name="org.cacert.gigi.pages.main.ResgisterPageTest" todir="${junit.output.dir}"/>
98 <classpath refid="cacert-gigi.classpath"/>
101 <target name="junitreport">
102 <junitreport todir="${junit.output.dir}">
103 <fileset dir="${junit.output.dir}">
104 <include name="TEST-*.xml"/>
106 <report format="frames" todir="${junit.output.dir}"/>