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.2.jar"/>
|
---|
6 | <include name="metadata-extractor-2.3.1-nosun.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 | <!-- presets -->
|
---|
28 | <copy todir="build/presets">
|
---|
29 | <fileset dir="presets" />
|
---|
30 | </copy>
|
---|
31 |
|
---|
32 | <!-- styles -->
|
---|
33 | <copy file="styles/standard/elemstyles.xml" todir="build/styles/standard"/>
|
---|
34 |
|
---|
35 | <copy todir="build/images/styles/standard">
|
---|
36 | <fileset dir="styles/standard/icons" />
|
---|
37 | </copy>
|
---|
38 |
|
---|
39 | <!-- create josm-custom.jar -->
|
---|
40 | <delete file="dist/josm-custom.jar"/>
|
---|
41 | <jar destfile="dist/josm-custom.jar" basedir="build">
|
---|
42 | <manifest>
|
---|
43 | <attribute name="Main-class" value="org.openstreetmap.josm.gui.MainApplication" />
|
---|
44 | </manifest>
|
---|
45 | </jar>
|
---|
46 | </target>
|
---|
47 |
|
---|
48 | <target name="compile" depends="init">
|
---|
49 | <javac srcdir="src" classpathref="classpath" destdir="build"
|
---|
50 | target="1.5" source="1.5" debug="on" encoding="UTF-8">
|
---|
51 | <compilerarg value="-Xlint:deprecation"/>
|
---|
52 | </javac>
|
---|
53 | </target>
|
---|
54 |
|
---|
55 | <target name="init">
|
---|
56 | <mkdir dir="build" />
|
---|
57 | <mkdir dir="dist" />
|
---|
58 | </target>
|
---|
59 |
|
---|
60 | <target name="clean">
|
---|
61 | <delete dir="build" />
|
---|
62 | <delete dir="dist" />
|
---|
63 | </target>
|
---|
64 |
|
---|
65 | </project>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.