diff --git a/buildADQL.xml b/buildADQL.xml index 9f31e1528addcd064bb34d7cd2169b8ac5f911be..398c5020287719612361c47c6765f43702037bfb 100644 --- a/buildADQL.xml +++ b/buildADQL.xml @@ -2,7 +2,7 @@ <!DOCTYPE project> <project name="adql" basedir="." default="buildLib"> - <property name="version" value="1.1" /> + <property name="version" value="1.2" /> <property name="srcDir" value="src" /> <property name="compileDir" value="antBuild" /> diff --git a/buildTAP.xml b/buildTAP.xml index 28c43788e7386242bb1cbcd797e52e1a41840976..06807554db320b29817d6d455f8e6322aac7ffc7 100644 --- a/buildTAP.xml +++ b/buildTAP.xml @@ -2,7 +2,7 @@ <!DOCTYPE project> <project name="tap" basedir="." default="buildLib"> - <property name="version" value="1.0" /> + <property name="version" value="1.1" /> <property name="srcDir" value="src" /> <property name="compileDir" value="antBuild" /> @@ -28,14 +28,29 @@ <fail message="The property SERVLET-API must be set! It provides the path toward a directory or a JAR which contains all classes inside javax.servlet."> <condition><not><isset property="SERVLET-API"/></not></condition> </fail> + <fail message="The property JUNIT-API must be set! It provides the path toward a directory or a JAR which contains all classes needed to use JUnit."> + <condition><not><isset property="JUNIT-API"/></not></condition> + </fail> <path id="tap.classpath"> <pathelement location="${uploadUtilsJar}" /> <pathelement location="${CATALINA}" /> <pathelement location="${SERVLET-API}" /> + <pathelement path="${JUNIT-API}" /> </path> - <echo>TAP LIBRARY VERSION = ${version}</echo> + <!-- Define the classpath which includes the junit.jar and the classes after compiling--> + <path id="junit.class.path"> + <pathelement path="${JUNIT-API}" /> + <pathelement location="/opt/Java_Libraries/postgresql-9.3-1100.jdbc3.jar" /> + <pathelement location="${jsonJar}" /> + <pathelement location="${uploadUtilsJar}" /> + <pathelement location="${CATALINA}" /> + <pathelement location="${SERVLET-API}" /> + <pathelement location="bin" /> + </path> + + <echo>TAP LIBRARY VERSION = ${version}</echo> <!-- BUILD ALL TASK --> <target name="buildAll" depends="buildLibAndSrc,buildJavadoc" @@ -46,7 +61,16 @@ <target name="cleanAll" depends="clean,cleanJavadoc" description="Delete all files generated by this ANT file for the set version." /> <!-- LIB & SOURCES --> - <target name="clean" description="Delete the JARs for the library (classes) and for its sources for the set version."> + <target name="junitValidation" description="Executes all JUnit tests before building the library and stop ANT at any error."> + <junit printsummary="on" fork="yes" haltonfailure="yes"> + <classpath refid="junit.class.path" /> + <test name="tap.config.AllTests" outfile="testReports"> + <formatter type="plain" usefile="yes" /> + </test> + </junit> + </target> + + <target name="clean" depends="junitValidation" description="Delete the JARs for the library (classes) and for its sources for the set version."> <delete file="${libJarFile}" failonerror="false" /> <delete file="${srcJarFile}" failonerror="false" /> <delete dir="${compileDir}" failonerror="false" /> diff --git a/buildUWS.xml b/buildUWS.xml index 6bf82191c3b947958e5bdb63390a0181d5b53c3d..4bdf61fabf8b159426d536e298d3d4aee66d0ac1 100644 --- a/buildUWS.xml +++ b/buildUWS.xml @@ -2,7 +2,7 @@ <!DOCTYPE project> <project name="uws" basedir="." default="buildLib"> - <property name="version" value="4.0" /> + <property name="version" value="4.1" /> <property name="srcDir" value="src" /> <property name="compileDir" value="antBuild" />