Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
2015JAT/JAT/ant_build_jat.xml
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
103 lines (85 sloc)
3.61 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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/" /> --> |