summaryrefslogtreecommitdiff
path: root/trunk/reprap/old-host/build-user.xml
blob: e194e4a9fb8daf43666101b52d72744c7ec7aeb3 (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}">
        <classpath>
            <path refid="project.classpath"/>
            <path location="${jar.dir}/reprap.jar"/>
        </classpath>
    </java>
</target>