Make "fetch locales" in buildjob more advanced.
authorFelix Dörre <felix@dogcraft.de>
Thu, 3 Jul 2014 15:25:02 +0000 (17:25 +0200)
committerFelix Dörre <felix@dogcraft.de>
Thu, 3 Jul 2014 15:25:02 +0000 (17:25 +0200)
build.xml
util/org/cacert/gigi/util/FetchLocales.java

index ff8c6d626fda8d3ed4695dc64eeece255051ac0d..3bd6fcea6f41487093b8302b7d218252d2e71677 100644 (file)
--- a/build.xml
+++ b/build.xml
                        <classpath refid="cacert-gigi.test.classpath"/>
                </javac>
        </target>
-       <target name="FetchLocales">
+       <target name="check-locale">
+               <available file="locale/de.xml" property="locale.present"/>
+       </target>
+       <target name="FetchLocales" depends="check-locale" unless="locale.present">
                <java classname="org.cacert.gigi.util.FetchLocales" failonerror="true" fork="yes">
                        <classpath refid="cacert-gigi.classpath"/>
                </java>
index 3839e8bb5998d840777a8d8b787c6452bfaf3654..c5378438623f217e29b7c5d365fb1736ed601121 100644 (file)
@@ -30,6 +30,7 @@ public class FetchLocales {
                        "da", "pl", "zh_CN", "ru", "lv", "cs", "zh_TW", "el", "tr", "ar"};
        public static void main(String[] args) throws IOException,
                        ParserConfigurationException, TransformerException {
+               System.out.println("downloading locales ...");
                File locale = new File("locale");
                locale.mkdir();