source: josm/trunk/build.xml@ 1058

Last change on this file since 1058 was 1058, checked in by mfloryan, 16 years ago

Changed infrastructure of JOSM translations. lang-* plugins are now
obsolete. Translations are integrated into core via lang-translation.jar
in /lib directory. Ant scripts are updated automated build may require
an update. Source translation files are still kept in JOSM SVN repo.

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