summaryrefslogtreecommitdiff
path: root/trunk/users/hoeken/gcode-host-old/build-user.xml
blob: f2f86883f7fb0a09bcbe967d8d91e5b0ffb8fccb (plain)
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
<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/reprap-wv.stl" tofile="bin/reprap-wv.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}" maxmemory="512m">
        <classpath>
            <path refid="project.classpath"/>
            <path location="${jar.dir}/reprap.jar"/>
        </classpath>
    </java>
</target>