Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 2a002a6a88
Fetching contributors…

Cannot retrieve contributors at this time

127 lines (111 sloc) 4.613 kB
<project name="ajm objects" default="jar">
<property name="VERSION" value="0.9.2"/>
<property environment="env"/>
<property name="build" location="build"/>
<property name="dist" location="dist"/>
<property name="download" location="download"/>
<property name="lib" location="lib"/>
<property name="patch" location="patch"/>
<property name="src" location="src"/>
<property name="jar_name" value="ajm.jar"/>
<property name="dist_name" value="ajm-objects-${VERSION}"/>
<path id="classpath">
<fileset dir="lib">
<include name="**/*.jar"/>
</fileset>
</path>
<tstamp>
<format property="BUILD_DATE" pattern="MMMM d, yyyy (HH:mm z)" timezone="GMT" locale="en"/>
</tstamp>
<target name="jar" description="generate ${jar_name} file" depends="compile">
<jar destfile="${lib}/${jar_name}" basedir="${build}">
<manifest>
<attribute name="Library" value="ajm objects (MXJ) for MaxMSP"/>
<attribute name="Version" value="${VERSION}"/>
<attribute name="Author" value="Adam Murray"/>
<attribute name="URL" value="http://compusition.com"/>
<attribute name="Built-By" value="${user.name}"/>
<attribute name="OS" value="${os.name} ${os.version} (${os.arch})"/>
</manifest>
</jar>
</target>
<target name="compile" description="compile the ajm.objects source, omitting tests" depends="clean">
<mkdir dir="${build}/"/>
<javac destdir="${build}" classpathref="classpath" debug="on" source="1.5" target="1.5" includeantruntime="false">
<src path="${src}"/>
<exclude name="**/*Test.java"/>
</javac>
</target>
<target name="clean" description="delete build artifacts">
<delete dir="${build}"/>
<delete file="${lib}/${jar_name}"/>
<delete dir="${dist}"/>
</target>
<target name="compile_tests" description="compile all ajm.objects source, including tests" depends="clean">
<mkdir dir="${build}/"/>
<javac srcdir="${src}" destdir="${build}" classpathref="classpath" debug="on" source="1.5" target="1.5"/>
</target>
<target name="test" description="run unit tests (requires junit.jar)" depends="compile_tests">
<junit fork="true" >
<classpath>
<path refid="classpath"/>
<path location="${build}"/>
</classpath>
<formatter type="brief" usefile="false"/>
<batchtest>
<fileset dir="${src}" includes="**/*Test.java"/>
</batchtest>
</junit>
</target>
<target name="javadoc" description="generate standard javadoc documentation">
<javadoc
destdir="doc/api"
author="true"
version="true"
use="true"
classpathref="max.classpath"
windowtitle="ajm.* mxj externals">
<fileset dir="src">
<exclude name="**/*Test.java"/>
</fileset>
<doctitle><![CDATA[<h1>Test</h1>]]></doctitle>
<!-- TODO: put in a creative commons license -->
<bottom><![CDATA[<i>Copyright &#169; 2007-2010 Adam Murray. All Rights Reserved.</i>]]></bottom>
<tag name="attribute" scope="fields" description="&lt;br/&gt;This field is a Max object attribute." />
<tag name="nodoc" scope="all" description="" />
</javadoc>
</target>
<target name="dist" description="package up ajm objects for distribution" depends="clean, jar">
<mkdir dir="${dist}"/>
<copy todir="${dist}">
<fileset dir="${basedir}" includes="*.txt"/>
<fileset dir="${basedir}" includes="*.example"/>
<fileset dir="${basedir}" includes="ajm/**">
<exclude name="**/*cosy*"/> <!-- not ready yet -->
</fileset>
</copy>
<replace dir="${dist}" token="@@VERSION" value="${VERSION}">
<include name="**/*.txt"/>
<include name="**/*.maxpat"/>
<include name="**/*.maxhelp"/>
</replace>
<replace dir="${dist}" token="@@BUILD_DATE" value="${BUILD_DATE}">
<include name="**/*.txt"/>
<include name="**/*.maxpat"/>
<include name="**/*.maxhelp"/>
</replace>
<fixcrlf srcdir="${dist}" includes="*.txt" eol="crlf" eof="asis" /> <!-- So things display properly on Notepad in Windows -->
<zip destfile="${dist}/${dist_name}.zip">
<zipfileset dir="${dist}" includes="*.txt" prefix="${dist_name}"/>
<zipfileset dir="${dist}" includes="*.example" prefix="${dist_name}"/>
<zipfileset dir="${dist}" includes="ajm/**" prefix="${dist_name}"/> <!-- the Max patches -->
<zipfileset dir="${basedir}" includes="lib/**" prefix="${dist_name}">
<exclude name="**/max.jar"/>
<exclude name="**/*junit*.jar"/>
<exclude name="**/bsf.jar"/>
</zipfileset>
<zipfileset dir="${basedir}" includes="license/**" prefix="${dist_name}"/>
</zip>
<delete dir="${dist}" excludes="${dist_name}.zip" includeEmptyDirs="true"/>
</target>
</project>
Jump to Line
Something went wrong with that request. Please try again.