source: josm/branch/0.5/build.xml@ 1898

Last change on this file since 1898 was 321, checked in by (none), 17 years ago
File size: 1.2 KB
Line 
1<project name="josm" default="dist" basedir=".">
2
3 <!-- All jar files necessary to run only JOSM (no tests) -->
4 <fileset id="josm_required_libs" dir="lib">
5 <include name="gettext-commons-0.9.jar"/>
6 <include name="metadata-extractor-2.3.1.jar"/>
7 </fileset>
8
9 <!-- Java classpath addition (all jar files to compile tests with this) -->
10 <path id="classpath">
11 <fileset dir="lib">
12 <include name="**/*.jar"/>
13 </fileset>
14 </path>
15
16 <target name="dist" depends="compile">
17 <!-- jars -->
18 <unjar dest="build">
19 <fileset refid="josm_required_libs" />
20 </unjar>
21
22 <!-- images -->
23 <copy todir="build/images">
24 <fileset dir="images" />
25 </copy>
26
27 <!-- create josm-custom.jar -->
28 <jar destfile="dist/josm-custom.jar" basedir="build">
29 <manifest>
30 <attribute name="Main-class" value="org.openstreetmap.josm.gui.MainApplication" />
31 </manifest>
32 </jar>
33 </target>
34
35 <target name="compile" depends="init">
36 <javac srcdir="src" classpathref="classpath" destdir="build" />
37 </target>
38
39
40
41 <target name="init">
42 <mkdir dir="build" />
43 <mkdir dir="dist" />
44 </target>
45
46 <target name="clean">
47 <delete dir="build" />
48 <delete dir="dist" />
49 </target>
50
51</project>
Note: See TracBrowser for help on using the repository browser.