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 <copy includeemptydirs="false" todir="bin">
21 <fileset dir="lib/servlet-api">
22 <exclude name="**/*.launch"/>
23 <exclude name="**/*.java"/>
26 <copy includeemptydirs="false" todir="bin">
27 <fileset dir="lib/jetty">
28 <exclude name="**/*.launch"/>
29 <exclude name="**/*.java"/>
32 <copy includeemptydirs="false" todir="bin">
34 <exclude name="**/*.launch"/>
35 <exclude name="**/*.java"/>
38 <copy includeemptydirs="false" todir="bin">
40 <exclude name="**/*.launch"/>
41 <exclude name="**/*.java"/>
44 <copy includeemptydirs="false" todir="bin">
46 <exclude name="**/*.launch"/>
47 <exclude name="**/*.java"/>
54 <target depends="clean" name="cleanall"/>
55 <target depends="build-subprojects,build-project" name="build"/>
56 <target name="build-subprojects"/>
57 <target depends="init" name="build-project">
58 <echo message="${ant.project.name}: ${ant.file}"/>
59 <javac debug="true" debuglevel="${debuglevel}" destdir="bin" includeantruntime="false" source="${source}" target="${target}">
60 <src path="lib/servlet-api"/>
61 <src path="lib/jetty"/>
64 <classpath refid="cacert-gigi.classpath"/>
67 <target depends="init" name="build-project-test">
68 <echo message="${ant.project.name}: ${ant.file}"/>
69 <javac debug="true" debuglevel="${debuglevel}" destdir="bintest" includeantruntime="false" source="${source}" target="${target}">
71 <classpath refid="cacert-gigi.classpath"/>
74 <target description="Build all projects which reference this project. Useful to propagate changes." name="build-refprojects"/>
75 <target name="FetchLocales">
76 <java classname="org.cacert.gigi.util.FetchLocales" failonerror="true" fork="yes">
77 <classpath refid="cacert-gigi.classpath"/>
80 <target name="Launcher">
81 <java classname="org.cacert.gigi.Launcher" failonerror="true" fork="yes">
82 <classpath refid="cacert-gigi.classpath"/>
85 <target name="test" depends="build-project-test">
86 <mkdir dir="${junit.output.dir}"/>
87 <junit fork="yes" printsummary="withOutAndErr">
88 <formatter type="xml"/>
89 <test name="org.cacert.gigi.TestSSL" todir="${junit.output.dir}"/>
90 <test name="org.cacert.gigi.pages.main.ResgisterPageTest" todir="${junit.output.dir}"/>
91 <classpath refid="cacert-gigi.classpath"/>
94 <target name="junitreport">
95 <junitreport todir="${junit.output.dir}">
96 <fileset dir="${junit.output.dir}">
97 <include name="TEST-*.xml"/>
99 <report format="frames" todir="${junit.output.dir}"/>