source: josm/build.xml @ 109

Last change on this file since 109 was 109, checked in by imi, 17 years ago
  • fixed performance bug in progress counter (thanks SteveC)
  • added build.xml for ant-freaks. Be sure to have junit.jar in your CLASSPATH (thanks SteveC)
File size: 1.2 KB
Line 
1<project name="openstreetmap" default="dist" basedir=".">
2
3  <property name="src" location="src"/>
4  <property name="build" location="build"/>
5  <property name="dist" location="dist"/>
6  <property name="lib" location="lib"/>
7
8  <target name="init">
9    <tstamp/>
10    <mkdir dir="${build}"/>
11    <mkdir dir="${dist}"/>
12  </target>
13
14
15  <target name="compile" depends="init">
16    <javac srcdir="${src}"
17      classpath="${lib}/MinML2.jar:${lib}/gettext-commons-0.9.jar:${lib}/metadata-extractor-2.3.1.jar"
18      debug="true"
19      optimize="off"
20      destdir="${build}"
21      />
22  </target>
23
24  <target name="dist" depends="compile">
25
26    <!-- jars -->
27    <unjar src="${lib}/MinML2.jar" dest="${build}"/>
28    <unjar src="${lib}/gettext-commons-0.9.jar" dest="${build}"/>
29    <unjar src="${lib}/metadata-extractor-2.3.1.jar" dest="${build}"/>
30
31    <!-- images -->
32    <copy todir="${build}/images">
33      <fileset dir="images"/>
34    </copy>
35
36    <jar destfile="${dist}/josm-custom.jar" basedir="${build}">
37      <manifest>
38        <attribute name="Main-class" value="org.openstreetmap.josm.gui.MainApplication" />
39      </manifest> 
40    </jar>
41  </target>
42
43  <target name="clean">
44    <delete dir="${build}"/>
45    <delete dir="${dist}"/>
46  </target>
47
48</project>
Note: See TracBrowser for help on using the repository browser.