diff options
-rw-r--r-- | build.xml | 44 |
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> |