aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhil Burk <[email protected]>2014-12-31 18:22:54 -0800
committerPhil Burk <[email protected]>2014-12-31 18:22:54 -0800
commit037393870ef4d3f67922d514f36fbba4f9f06a3c (patch)
tree2d6a8788650050737f399d8cd0237c380077c7c0
parentd97e7c62e1d96e34b1771c4bb5eb3f7610c8482a (diff)
parent4a7c0a22aeeaa26f4c373c3d84d1dbead825f7aa (diff)
Merge pull request #3 from philburk/build-script
Build script
-rw-r--r--build.xml44
1 files changed, 44 insertions, 0 deletions
diff --git a/build.xml b/build.xml
new file mode 100644
index 0000000..e0a6ea0
--- /dev/null
+++ b/build.xml
@@ -0,0 +1,44 @@
+<project name="JSynProject" default="dist" basedir=".">
+ <description>
+ Build JSyn Java Synthesizer
+ </description>
+ <!-- set global properties for this build -->
+ <property name="src" location="src"/>
+ <property name="build" location="build"/>
+ <property name="dist" location="dist"/>
+ <property name="main-class" value="com.jsyn.apps.AboutJSyn"/>
+ <property name="jarname" value="jsyn"/>
+
+ <target name="init">
+ <!-- Create the time stamp -->
+ <tstamp/>
+ <!-- Create the build directory structure used by compile -->
+ <mkdir dir="${build}"/>
+ </target>
+
+ <target name="compile" depends="init"
+ description="compile the source " >
+ <!-- Compile the java code from ${src} into ${build} -->
+ <javac srcdir="${src}" destdir="${build}"/>
+ </target>
+
+ <target name="dist" depends="compile"
+ description="generate the distribution" >
+ <!-- Create the distribution directory -->
+ <mkdir dir="${dist}/lib"/>
+
+ <!-- Put everything in ${build} into the jsyn-${DSTAMP}.jar file -->
+ <jar jarfile="${dist}/lib/${jarname}-${DSTAMP}.jar" basedir="${build}">
+ <manifest>
+ <attribute name="Main-Class" value="${main-class}"/>
+ </manifest>
+ </jar>
+ </target>
+
+ <target name="clean"
+ description="clean up" >
+ <!-- Delete the ${build} and ${dist} directory trees -->
+ <delete dir="${build}"/>
+ <delete dir="${dist}"/>
+ </target>
+</project>