summaryrefslogtreecommitdiff
path: root/tags/host/0.8.1/build-user.xml
blob: fa7f4b295b20a24018e01462a70a2cdb9daf6444 (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="clean,properties,backgroundstl">
    <mkdir dir="${jar.dir}"/>
    <jar destfile="${jar.dir}/${ant.project.name}.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}/${ant.project.name}.jar"/>
        </classpath>
    </java>
</target>