aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhil Burk <[email protected]>2020-10-30 12:27:04 -0700
committerPhil Burk <[email protected]>2020-10-30 12:27:04 -0700
commitd8d2486fb26c627e3425df5e313a5b5aa615fed5 (patch)
tree9ae0e16ba8bc1d024a0cb84c22407114c406650b
parent8cb3e5349f4478b0ee91fc6f9100ef8c6d0298a7 (diff)
build: fix ANT build
It was broken by the changes made for gradle.
-rw-r--r--.gitignore5
-rw-r--r--build.xml67
-rw-r--r--libs/slf4j-api-1.7.9.jarbin0 -> 32121 bytes
3 files changed, 72 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 52c5a62..2485ead 100644
--- a/.gitignore
+++ b/.gitignore
@@ -9,3 +9,8 @@ build/
# A temporary file sometimes generated
temp_recording.wav
+
+# Ignore files generated by ant.
+buildant/
+dist/
+
diff --git a/build.xml b/build.xml
new file mode 100644
index 0000000..5b04151
--- /dev/null
+++ b/build.xml
@@ -0,0 +1,67 @@
+<project name="JSynProject" default="dist" basedir=".">
+ <description>
+ Build JSyn Java Synthesizer
+ </description>
+ <!-- set global properties for this build -->
+ <property name="src.dir" location="src/main/java"/>
+ <property name="doc.dir" location="doc"/>
+ <property name="build.dir" location="buildant"/>
+ <property name="dist" location="dist"/>
+ <property name="main-class" value="com.jsyn.apps.AboutJSyn"/>
+ <property name="jarname" value="jsyn"/>
+ <property name="java-version" value="1.8"/>
+
+ <target name="init">
+ <!-- Create the time stamp -->
+ <tstamp/>
+ <!-- Create the necessary directories. -->
+ <mkdir dir="${build.dir}"/>
+ <mkdir dir="${doc.dir}"/>
+ </target>
+
+ <target name="compile" depends="init"
+ description="compile the source " >
+ <!-- Compile the java code from ${src} into ${build} -->
+ <javac target="${java-version}" source="${java-version}"
+ srcdir="${src.dir}" destdir="${build.dir}">
+ <classpath>
+ <pathelement path="libs/jportaudio.jar"/>
+ <pathelement path="libs/slf4j-api-1.7.9.jar"/>
+ </classpath>
+ </javac>
+ </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.dir}">
+ <manifest>
+ <attribute name="Main-Class" value="${main-class}"/>
+ </manifest>
+ </jar>
+ </target>
+
+ <!-- Generate javadocs for current project into ${doc.dir} -->
+ <target name="doc" depends="init" description="generate documentation">
+ <javadoc
+ sourcepath="${src.dir}"
+ destdir="${doc.dir}"
+ packagenames="com.jsyn.*"
+ excludepackagenames="com.portaudio,com.jsyn.devices.jportaudio"
+ />
+ <echo message = "=================================================================" />
+ <echo message = "Javadocs have been generated and placed in the ${doc.dir} folder!" />
+ <echo message = "=================================================================" />
+ </target>
+
+ <target name="clean"
+ description="clean up" >
+ <!-- Delete the directories created by ant. -->
+ <delete dir="${build.dir}"/>
+ <delete dir="${doc.dir}"/>
+ <delete dir="${dist}"/>
+ </target>
+</project>
diff --git a/libs/slf4j-api-1.7.9.jar b/libs/slf4j-api-1.7.9.jar
new file mode 100644
index 0000000..76f2be1
--- /dev/null
+++ b/libs/slf4j-api-1.7.9.jar
Binary files differ