You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
1.5 KiB
XML

<!--
Generic Ant build.xml file for Processing libraries
Severin Smith
http://www.smallbutdigital.com
-->
<project name="themidibus" basedir="." default="main">
<property name="core.dir" value="/Applications/Processing.app/Contents/Java/"/>
<property name="core-lib.dir" value="/Applications/Processing.app/Contents/Java/"/>
<property name="src.dir" value="src"/>
<property name="build.dir" value="bin"/>
<property name="ref.dir" value="reference"/>
<path id="classpath">
<fileset dir="${core.dir}">
<include name="**/*.jar"/>
</fileset>
<fileset dir="${core-lib.dir}">
<include name="**/*.jar"/>
</fileset>
</path>
<target name="clean">
<delete dir="${build.dir}"/>
</target>
<target name="compile">
<mkdir dir="${build.dir}"/>
<javac srcdir="${src.dir}" sourcepath="" destdir="${build.dir}" classpathref="classpath">
<exclude name="**/PApplet.java"/>
</javac>
</target>
<target name="jar" depends="compile">
<mkdir dir="library"/>
<jar destfile="library/${ant.project.name}.jar" basedir="${build.dir}"/>
</target>
<target name="doc">
<mkdir dir="${ref.dir}"/>
<javadoc sourcepath="${src.dir}" destdir="${ref.dir}" author="true" version="true" classpathref="classpath"/>
</target>
<target name="zip">
<zip destfile="${ant.project.name}.zip">
<zipfileset dir="." excludes="**/*.DS_Store, .gitignore, **/.git, **/.git/**/*, TODO.txt" prefix="${ant.project.name}"/>
</zip>
</target>
<target name="main" depends="jar">
<antcall target="clean"/>
</target>
</project>