This repository was archived by the owner on Jan 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbuild.xml
More file actions
41 lines (32 loc) · 1.29 KB
/
build.xml
File metadata and controls
41 lines (32 loc) · 1.29 KB
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
<?xml version="1.0" encoding="UTF-8"?>
<project name="Demo Library" default="dist">
<property file="build.properties"/>
<fail unless="lib.externals" message="File build.properties should specify lib.externals."/>
<property name="src" value="src"/>
<property name="lib" value="lib"/>
<property name="build" value="build"/>
<property name="dist" value="dist"/>
<path id="build.classpath">
<path path="${lib.externals}/nodebox-core.jar"/>
<path path="${lib.externals}/processing-core.jar"/>
<path path="${lib.externals}/equinox.jar"/>
<path path="${lib}/phys2d.jar"/>
</path>
<target name="init">
<mkdir dir="${build}"/>
</target>
<target name="compile" depends="init">
<javac srcdir="${src}" destdir="${build}" classpathref="build.classpath" source="1.5" target="1.5"/>
</target>
<target name="embed-dependencies" depends="init">
<copy file="${lib}/phys2d.jar" todir="${build}"/>
</target>
<target name="dist" depends="compile,embed-dependencies">
<mkdir dir="${dist}"/>
<jar jarfile="${dist}/demolib.jar" basedir="${build}" manifest="manifest.mf"/>
</target>
<target name="clean">
<delete dir="${build}"/>
<delete dir="${dist}"/>
</target>
</project>