-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.xml
39 lines (33 loc) · 1.26 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?xml version="1.0" encoding="utf-8"?>
<project name="spectro-edit">
<!-- this sets the net.bluecow.spectro.VERSION property -->
<property file="src/net/bluecow/spectro/version.properties"/>
<path id="compile.classpath">
<fileset dir="lib">
<include name="*.jar"/>
</fileset>
</path>
<!-- =================================
target: compile
================================= -->
<target name="compile" description="Compiles the source code to the build directory and copies all non-java resources">
<mkdir dir="build"/>
<javac srcdir="src"
destdir="build"
classpathref="compile.classpath"
debug="on" />
<copy todir="build">
<fileset dir="src" includes="**" excludes="**/*.java" />
</copy>
</target>
<target name="jar" depends="compile" description="Creates an executable JAR of the application">
<mkdir dir="dist"/>
<mkdir dir="dist/META-INF"/>
<unjar src="lib/jtransforms-1.6.jar" dest="build"/>
<copy file="COPYING" todir="build/META-INF"/>
<copy file="CREDITS" todir="build/META-INF"/>
<jar destfile="dist/spectro-edit_${net.bluecow.spectro.VERSION}.jar"
basedir="build"
includes="**" manifest="etc/manifest"/>
</target>
</project>