]> WPIA git - gigi.git/blobdiff - build.xml
add "FetchLocales" to test target
[gigi.git] / build.xml
index e2ff5c10bb9007f77b272878b8fab5a99ec9d223..484f6c3afa5c0c7e59f3287adbc87a69746c7025 100644 (file)
--- a/build.xml
+++ b/build.xml
             <classpath refid="cacert-gigi.classpath"/>
         </java>
     </target>
             <classpath refid="cacert-gigi.classpath"/>
         </java>
     </target>
-    <target name="test" depends="build-project-test">
+    
+    <target name="check-generateKeys">
+        <available file="config/keystore.pkcs12" property="keystore.present"/>
+    </target>
+    <target name="generateKeys" depends="check-generateKeys" unless="keystore.present">
+        <exec executable="./generateKeys.sh" dir="doc/scripts"/>
+        <exec executable="./generateTruststore.sh" dir="doc/scripts">
+            <arg value="-noprompt"/>
+        </exec>
+    </target>
+    <target name="test" depends="build-project-test,generateKeys,FetchLocales">
         <mkdir dir="${junit.output.dir}"/>
         <junit fork="yes" printsummary="withOutAndErr">
             <formatter type="xml"/>
         <mkdir dir="${junit.output.dir}"/>
         <junit fork="yes" printsummary="withOutAndErr">
             <formatter type="xml"/>