-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
executable file
·71 lines (70 loc) · 3.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<project name="pages">
<property name="pages.version" value="0.2a55"/>
<property name="src" value="./src"/>
<property name="build" value="./build"/>
<property name="lib.dir" value="./lib"/>
<property name="filename" value="${ant.project.name}-${pages.version}"/>
<property name="dist" value="./dist"/>
<property name="release" value="${dist}/${filename}"/>
<path id="classpath">
<fileset dir="${lib.dir}" includes="**/*.jar"/>
</path>
<target name="clean">
<delete dir="${build}"/>
<delete dir="${dist}"/>
</target>
<target name="compile">
<mkdir dir="${build}/classes"/>
<javac srcdir="${src}" destdir="${build}/classes" classpathref="classpath"/>
</target>
<target name="jar" depends="compile">
<mkdir dir="${build}/jar"/>
<jar destfile="${build}/jar/${ant.project.name}.jar" basedir="${build}/classes"/>
</target>
<target name="package" depends="compile, jar">
<mkdir dir="${release}"/>
<jar destfile="${release}/${filename}.jar" basedir="${build}" includes="**/*.*">
<manifest>
<attribute name="Main-Class" value="org.monome.pages.Main" />
<attribute name="Pages-Version" value="${pages.version}" />
</manifest>
<service type="org.monome.pages.pages.Page">
<provider classname="org.monome.pages.pages.AbletonClipLauncherPage"/>
<provider classname="org.monome.pages.pages.AbletonLiveLooperPage"/>
<provider classname="org.monome.pages.pages.AbletonSceneLauncherPage"/>
<provider classname="org.monome.pages.pages.ExternalApplicationPage"/>
<provider classname="org.monome.pages.pages.GroovyPage"/>
<provider classname="org.monome.pages.pages.MachineDrumInterfacePage"/>
<provider classname="org.monome.pages.pages.MIDIKeyboardPage"/>
<provider classname="org.monome.pages.pages.MIDIKeyboard2Page"/>
<provider classname="org.monome.pages.pages.Flow"/>
<provider classname="org.monome.pages.pages.MIDIFadersPage"/>
<provider classname="org.monome.pages.pages.MIDIGeneratorPage"/>
<provider classname="org.monome.pages.pages.MIDIPadsPage"/>
<provider classname="org.monome.pages.pages.MIDISequencerPage"/>
<provider classname="org.monome.pages.pages.MIDISequencerPolyPage"/>
<provider classname="org.monome.pages.pages.MIDITriggersPage"/>
<provider classname="org.monome.pages.pages.QuadrantsPage"/>
<provider classname="org.monome.pages.pages.arc.ExternalApplicationPage"/>
<provider classname="org.monome.pages.pages.arc.GroovyPage"/>
</service>
<zipgroupfileset dir="${lib.dir}" includes="*.jar" />
<zipgroupfileset dir="${build}/jar" includes="${ant.project.name}.jar" />
</jar>
<mkdir dir="${release}/scripts"/>
<copy todir="${release}/scripts">
<fileset dir="scripts" includes="**/*"/>
</copy>
<copy todir="${release}">
<fileset dir="LiveOSC" includes="**/*"/>
</copy>
<copy todir="${release}">
<fileset dir="." includes="README.md"/>
<globmapper from="README.md" to="README.txt"/>
</copy>
<zip destfile="${dist}/${filename}.zip" basedir="${dist}" excludes="${dist}/${filename}.zip"></zip>
</target>
<target name="run" depends="package">
<java jar="build/jar/pages.jar" fork="true"/>
</target>
</project>