Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
104 lines (85 sloc) 3.61 KB
<project name="Ant-Test" default="main" basedir=".">
<!-- Sets variables which can later be used. -->
<!-- The value of a property is accessed via ${} -->
<property name="src.dir" location="src" />
<property name="build.dir" location="bin" />
<property name="dist.dir" location="dist" />
<property name="docs.dir" location="javadoc" />
<property name="project-name" value="jat" />
<property name="folder-to-zip" value="." />
<!-- Deletes the existing build, docs and dist directory-->
<target name="clean">
<delete dir="${docs.dir}" />
<delete dir="${dist.dir}" />
<delete dir="zip" />
</target>
<!-- Creates the build, docs and dist directory-->
<target name="makedir">
<mkdir dir="${docs.dir}" />
<mkdir dir="${dist.dir}" />
<mkdir dir="zip" />
</target>
<!--JAT Core Creates the deployable jar file -->
<target name="jatcore.jar" depends="clean,makedir">
<jar destfile="${dist.dir}\jatcore.jar" basedir="${build.dir}" includes="**/core/,**/org/" excludes="**/tests/,**/unittest/">
<manifest>
<attribute name="Main-Class" value="test.Main" />
</manifest>
</jar>
</target>
<!--JAT 3D Creates the deployable jar file -->
<target name="jat3D.jar" depends="clean,makedir">
<jar destfile="${dist.dir}\jat3D.jar" basedir="${build.dir}" includes="**/jat3D/" excludes="**/examples/">
<manifest>
<attribute name="Main-Class" value="test.Main" />
</manifest>
</jar>
</target>
<!--JAT Application Creates the deployable jar file -->
<target name="jatapplication.jar" depends="clean,makedir">
<jar destfile="${dist.dir}\jatapplication.jar" basedir="${build.dir}" includes="**/application/">
<manifest>
<attribute name="Main-Class" value="test.Main" />
</manifest>
</jar>
</target>
<!--JAT Examples Creates the deployable jar file -->
<target name="jatexamples.jar" depends="clean,makedir">
<jar destfile="${dist.dir}\jatexamples.jar" basedir="${build.dir}" includes="**/examples/" excludes="**/core/">
<manifest>
<attribute name="Main-Class" value="test.Main" />
</manifest>
</jar>
</target>
<!--JAT Tests Creates the deployable jar file -->
<target name="jattests.jar" depends="clean,makedir">
<jar destfile="${dist.dir}\jattests.jar" basedir="${build.dir}" includes="**/tests/">
<manifest>
<attribute name="Main-Class" value="test.Main" />
</manifest>
</jar>
</target>
<!--JAT Core NOSA Creates the deployable jar file -->
<target name="jatcoreNOSA.jar" depends="clean,makedir">
<jar destfile="${dist.dir}\jatcoreNOSA.jar" basedir="${build.dir}" includes="**/coreNOSA/">
<manifest>
<attribute name="Main-Class" value="test.Main" />
</manifest>
</jar>
</target>
<!--JAT Examples NOSA Creates the deployable jar file -->
<target name="jatexamplesNOSA.jar" depends="clean,makedir">
<jar destfile="${dist.dir}\jatexamplesNOSA.jar" basedir="${build.dir}" includes="**/examplesNOSA/" excludes="**/core/">
<manifest>
<attribute name="Main-Class" value="test.Main" />
</manifest>
</jar>
</target>
<target name="zip">
<zip destfile="zip/jat.zip" basedir="${folder-to-zip}" includes="**/dist/**,**/lib/**,**/deploy/**,**/data/core/ephemeris/**,**/data/core/astronomy/**,**/data/jat3D/images_hires/**" />
</target>
<target name="main" depends="jatcore.jar, jat3D.jar, jatcoreNOSA.jar, jatapplication.jar, jatexamples.jar, jattests.jar, jatexamplesNOSA.jar, zip">
<description>Main target</description>
</target>
</project>
<!-- <zip destfile="zip/jat.zip" basedir="${folder-to-zip}" includes="**/data/jat3D/images_hires/**" excludes="**/.settings/,**/bin/,**/data/jat3D/,**/docs/,**/input/,**/javadoc/,**/scripts/,**/src/,**/zip/" /> -->
You can’t perform that action at this time.