-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathbuild-user.xml
More file actions
36 lines (30 loc) · 1.07 KB
/
build-user.xml
File metadata and controls
36 lines (30 loc) · 1.07 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
<property name="jar.dir" value="jar"/>
<property name="main-class" value="org.reprap.Main"/>
<target name="help">
<echo message="Please run: $ ant -v -projecthelp"/>
</target>
<target name="properties" depends="build">
<copy file="lib/reprap.properties.dist" tofile="bin/reprap.properties.dist"/>
</target>
<target name="backgroundstl" depends="build">
<copy file="lib/mendel-base.stl" tofile="bin/mendel-base.stl"/>
</target>
<target name="backgroundhuxleystl" depends="build">
<copy file="lib/huxley-base.stl" tofile="bin/huxley-base.stl"/>
</target>
<target name="jar" depends="init,properties,backgroundstl">
<mkdir dir="${jar.dir}"/>
<jar destfile="${jar.dir}/reprap.jar" basedir="bin">
<manifest>
<attribute name="Main-Class" value="${main-class}"/>
</manifest>
</jar>
</target>
<target name="run" depends="jar">
<java fork="true" classname="${main-class}">
<classpath>
<path refid="project.classpath"/>
<path location="${jar.dir}/reprap.jar"/>
</classpath>
</java>
</target>