source: josm/build.xml@ 274

Last change on this file since 274 was 164, checked in by imi, 18 years ago
  • fixed build.xml (removed old translation copying)
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 <include name="MinML2.jar"/>
8 </fileset>
9
10 <!-- Java classpath addition (all jar files to compile tests with this) -->
11 <path id="classpath">
12 <fileset dir="lib">
13 <include name="**/*.jar"/>
14 </fileset>
15 </path>
16
17 <target name="dist" depends="compile">
18 <!-- jars -->
19 <unjar dest="build">
20 <fileset refid="josm_required_libs" />
21 </unjar>
22
23 <!-- images -->
24 <copy todir="build/images">
25 <fileset dir="images" />
26 </copy>
27
28 <!-- create josm-custom.jar -->
29 <jar destfile="dist/josm-custom.jar" basedir="build">
30 <manifest>
31 <attribute name="Main-class" value="org.openstreetmap.josm.gui.MainApplication" />
32 </manifest>
33 </jar>
34 </target>
35
36 <target name="compile" depends="init">
37 <javac srcdir="src" classpathref="classpath" destdir="build" />
38 </target>
39
40
41
42 <target name="init">
43 <mkdir dir="build" />
44 <mkdir dir="dist" />
45 </target>
46
47 <target name="clean">
48 <delete dir="build" />
49 <delete dir="dist" />
50 </target>
51
52</project>
Note: See TracBrowser for help on using the repository browser.