Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 911c3d7da1
Fetching contributors…

Cannot retrieve contributors at this time

58 lines (50 sloc) 2.035 kb
<project name="mogade-java" default="debug" basedir=".">
<property name="jarFileName" location="out/production/mogade-java.jar"/>
<property name="srcJarFileName" location="out/production/mogade-java-src.jar"/>
<property name="outputPath" location="out/production/mogade-java"/>
<property name="srcPath" location="src"/>
<target name="build">
<ant antfile="mogade-java.xml" />
</target>
<target name="package_jars" depends="build">
<jar destfile="${jarFileName}">
<fileset dir="${outputPath}" />
</jar>
<jar destfile="${srcJarFileName}">
<fileset dir="${outputPath}" />
<fileset dir="${srcPath}" />
</jar>
</target>
<target name="test-local" depends="build">
<junit haltonfailure="yes">
<classpath>
<pathelement path="${outputPath}" />
<pathelement path="out/test/mogade-java" />
<pathelement location="lib/gson-1.5.jar" />
<pathelement location="tests/lib/junit-4.8.2.jar" />
</classpath>
<formatter type="brief" usefile="false" />
<batchtest>
<fileset dir="out/test/mogade-java">
<include name="**/Test*.class" />
<exclude name="**/*Live*.class" />
</fileset>
</batchtest>
</junit>
</target>
<target name="test-live" depends="build">
<junit haltonfailure="yes">
<classpath>
<pathelement path="${outputPath}" />
<pathelement path="out/test/mogade-java" />
<pathelement location="lib/gson-1.5.jar" />
<pathelement location="tests/lib/junit-4.8.2.jar" />
</classpath>
<formatter type="brief" usefile="false" />
<batchtest>
<fileset dir="out/test/mogade-java" includes="**/Test*Live*.class" />
</batchtest>
</junit>
</target>
<target name="test-all" depends="test-local, test-live" />
</project>
Jump to Line
Something went wrong with that request. Please try again.