Add targets to force build to core and force build to playground.
git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@216 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
parent
b17a03abbd
commit
fade36a8f2
99
build.xml
99
build.xml
|
|
@ -10,7 +10,6 @@
|
||||||
<equals arg1="${target}" arg2="playground"/>
|
<equals arg1="${target}" arg2="playground"/>
|
||||||
</condition>
|
</condition>
|
||||||
|
|
||||||
<!-- set global properties for this build -->
|
|
||||||
<path id="thirdparty.dependencies">
|
<path id="thirdparty.dependencies">
|
||||||
<fileset dir="lib" includes="*.jar"/>
|
<fileset dir="lib" includes="*.jar"/>
|
||||||
</path>
|
</path>
|
||||||
|
|
@ -56,45 +55,6 @@
|
||||||
<property name="test.sources" value="java/test"/>
|
<property name="test.sources" value="java/test"/>
|
||||||
<property name="classes" value="classes"/>
|
<property name="classes" value="classes"/>
|
||||||
|
|
||||||
|
|
||||||
<target name="test.compile" depends="compile" description="Compile test cases">
|
|
||||||
<echo message="Sting: Compiling test cases!"/>
|
|
||||||
<mkdir dir="${test.classes}"/>
|
|
||||||
<javac destdir="${test.classes}" debug="on" optimize="on">
|
|
||||||
<src path="${test.sources}"/>
|
|
||||||
<classpath>
|
|
||||||
<path refid="thirdparty.dependencies"/>
|
|
||||||
<pathelement location="build"/>
|
|
||||||
<pathelement location="lib/junit-4.4.jar"/>
|
|
||||||
</classpath>
|
|
||||||
</javac>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
|
|
||||||
<!-- TEST -->
|
|
||||||
<target name="test" depends="test.compile">
|
|
||||||
<mkdir dir="${report}"/>
|
|
||||||
<echo message="Sting: Running test cases!"/>
|
|
||||||
<junit printsummary="yes" clonevm="yes" haltonfailure="yes">
|
|
||||||
<formatter type="plain"/>
|
|
||||||
|
|
||||||
<classpath>
|
|
||||||
<path refid="thirdparty.dependencies"/>
|
|
||||||
<pathelement location="build"/>
|
|
||||||
<pathelement location="${test.classes}"/>
|
|
||||||
<pathelement location="lib/junit-4.4.jar"/>
|
|
||||||
</classpath>
|
|
||||||
|
|
||||||
<batchtest fork="yes" todir="${report}">
|
|
||||||
<fileset dir="${test.classes}">
|
|
||||||
<include name="**/*.class"/>
|
|
||||||
</fileset>
|
|
||||||
</batchtest>
|
|
||||||
</junit>
|
|
||||||
|
|
||||||
</target>
|
|
||||||
|
|
||||||
|
|
||||||
<target name="init">
|
<target name="init">
|
||||||
<!-- Create the time stamp -->
|
<!-- Create the time stamp -->
|
||||||
<tstamp/>
|
<tstamp/>
|
||||||
|
|
@ -184,11 +144,11 @@
|
||||||
</manifest>
|
</manifest>
|
||||||
</jar>
|
</jar>
|
||||||
|
|
||||||
<jar jarfile="dist/FourBaseRecaller.jar" update="true" whenmanifestonly="skip">
|
<jar jarfile="dist/FourBaseRecaller.jar" update="true" whenmanifestonly="skip">
|
||||||
<manifest>
|
<manifest>
|
||||||
<attribute name="Class-Path" value="${jar.classpath}" />
|
<attribute name="Class-Path" value="${jar.classpath}" />
|
||||||
</manifest>
|
</manifest>
|
||||||
</jar>
|
</jar>
|
||||||
|
|
||||||
<jar jarfile="dist/Playground.jar" update="true" whenmanifestonly="skip">
|
<jar jarfile="dist/Playground.jar" update="true" whenmanifestonly="skip">
|
||||||
<manifest>
|
<manifest>
|
||||||
|
|
@ -197,6 +157,55 @@
|
||||||
</jar>
|
</jar>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
<target name="core" description="force a build of the Sting core code">
|
||||||
|
<antcall target="dist" inheritAll="true">
|
||||||
|
<param name="target" value="core" />
|
||||||
|
</antcall>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="playground" description="force a build of the Sting experimental code">
|
||||||
|
<antcall target="dist" inheritAll="true">
|
||||||
|
<param name="target" value="playground" />
|
||||||
|
</antcall>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="test.compile" depends="compile">
|
||||||
|
<echo message="Sting: Compiling test cases!"/>
|
||||||
|
<mkdir dir="${test.classes}"/>
|
||||||
|
<javac destdir="${test.classes}" debug="on" optimize="on">
|
||||||
|
<src path="${test.sources}"/>
|
||||||
|
<classpath>
|
||||||
|
<path refid="thirdparty.dependencies"/>
|
||||||
|
<pathelement location="build"/>
|
||||||
|
<pathelement location="lib/junit-4.4.jar"/>
|
||||||
|
</classpath>
|
||||||
|
</javac>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- TEST -->
|
||||||
|
<target name="test" depends="test.compile" description="Run unit tests">
|
||||||
|
<mkdir dir="${report}"/>
|
||||||
|
<echo message="Sting: Running test cases!"/>
|
||||||
|
<junit printsummary="yes" clonevm="yes" haltonfailure="yes">
|
||||||
|
<formatter type="plain"/>
|
||||||
|
|
||||||
|
<classpath>
|
||||||
|
<path refid="thirdparty.dependencies"/>
|
||||||
|
<pathelement location="build"/>
|
||||||
|
<pathelement location="${test.classes}"/>
|
||||||
|
<pathelement location="lib/junit-4.4.jar"/>
|
||||||
|
</classpath>
|
||||||
|
|
||||||
|
<batchtest fork="yes" todir="${report}">
|
||||||
|
<fileset dir="${test.classes}">
|
||||||
|
<include name="**/*.class"/>
|
||||||
|
</fileset>
|
||||||
|
</batchtest>
|
||||||
|
</junit>
|
||||||
|
|
||||||
|
</target>
|
||||||
|
|
||||||
<target name="javadoc" description="generates javadoc">
|
<target name="javadoc" description="generates javadoc">
|
||||||
<mkdir dir="javadoc"/>
|
<mkdir dir="javadoc"/>
|
||||||
<javadoc sourcepathref="source" destdir="javadoc"/>
|
<javadoc sourcepathref="source" destdir="javadoc"/>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue