-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
51 lines (40 loc) · 1.15 KB
/
build.xml
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<project name="josm" default="dist" basedir=".">
<!-- All jar files necessary to run only JOSM (no tests) -->
<fileset id="josm_required_libs" dir="lib">
<include name="gettext-commons-0.9.jar"/>
<include name="metadata-extractor-2.3.1.jar"/>
</fileset>
<!-- Java classpath addition (all jar files to compile tests with this) -->
<path id="classpath">
<fileset dir="lib">
<include name="**/*.jar"/>
</fileset>
</path>
<target name="dist" depends="compile">
<!-- jars -->
<unjar dest="build">
<fileset refid="josm_required_libs" />
</unjar>
<!-- images -->
<copy todir="build/images">
<fileset dir="images" />
</copy>
<!-- create josm-custom.jar -->
<jar destfile="dist/josm-custom.jar" basedir="build">
<manifest>
<attribute name="Main-class" value="org.openstreetmap.josm.gui.MainApplication" />
</manifest>
</jar>
</target>
<target name="compile" depends="init">
<javac srcdir="src" classpathref="classpath" destdir="build" />
</target>
<target name="init">
<mkdir dir="build" />
<mkdir dir="dist" />
</target>
<target name="clean">
<delete dir="build" />
<delete dir="dist" />
</target>
</project>