]> WPIA git - gigi.git/blobdiff - build.xml
ADD: prefix check for domains against database
[gigi.git] / build.xml
index 7af97f6fdc31067ed71c6a9047ec0581d9d99200..71a2d37107807b8be6a47584caf22cfb25a79aab 100644 (file)
--- a/build.xml
+++ b/build.xml
                <pathelement location="${mysqlconnector}" />
        </path>
        <path id="cacert-gigi.test.classpath">
+               <pathelement location="bintest" />
                <pathelement location="bin" />
                <pathelement location="binutil" />
                <pathelement location="binutil-testing" />
-               <pathelement location="bintest" />
                <path refid="JUnit 4.libraryclasspath" />
                <pathelement location="${mysqlconnector}" />
        </path>
                <exec executable="make" dir="natives"/>
        </target>
 
-       <target depends="build-project" name="pack">
+       <target depends="build-project, update-effective-tlds" name="pack">
                <jar destfile="gigi.jar" basedir="bin" manifest="Gigi.MF" update="false"/>
                <jar destfile="gigi.jar" basedir="binutil" update="on"/>
        </target>
 
-       <target depends="build-testing" name="pack-testing">
+       <target depends="build-testing,update-effective-tlds" name="pack-testing">
                <jar destfile="gigi-testing.jar" basedir="bin" manifest="Gigi.MF" update="false"/>
                <jar destfile="gigi-testing.jar" basedir="binutil" update="on"/>
                <jar destfile="gigi-testing.jar" basedir="binutil-testing" update="on"/>
 
        <target name="release" depends="bundle,static-bundle-release" />
 
-       <target depends="init,build-testing" name="build-project-test">
+       <target depends="init,build-testing,update-effective-tlds" name="build-project-test">
                <echo message="${ant.project.name}: ${ant.file}" />
                <javac debug="true" debuglevel="${debuglevel}" destdir="bintest"
                        includeantruntime="false" source="${source}" target="${target}">
                        <src path="tests" />
                        <classpath refid="cacert-gigi.test.classpath" />
                </javac>
+               <concat destfile="bintest/org/cacert/gigi/util/effective_tld_names.dat">
+                       <path path="bin/org/cacert/gigi/util/effective_tld_names.dat"/>
+                       <footer>${test_nic}</footer>
+               </concat>
        </target>
        <target name="check-locale">
                <available file="locale/de.xml" property="locale.present" />
                        </fileset>
                </copy>-->
        </target>
+       <target name="update-effective-tlds">
+               <mkdir dir="bin/org/cacert/gigi/util"/>
+               <exec executable="wget" dir="bin/org/cacert/gigi/util">
+                       <arg value="-N"/>
+                       <arg value="-q"/>
+                       <arg value="https://publicsuffix.org/list/effective_tld_names.dat"/>
+               </exec>
+       </target>
 </project>