Last change
on this file since 1066 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
|
Rev | Line | |
---|
[154] | 1 | <project name="josm" default="dist" basedir=".">
|
---|
[109] | 2 |
|
---|
[151] | 3 | <!-- All jar files necessary to run only JOSM (no tests) -->
|
---|
| 4 | <fileset id="josm_required_libs" dir="lib">
|
---|
[764] | 5 | <include name="gettext-commons-0.9.2.jar"/>
|
---|
[392] | 6 | <include name="metadata-extractor-2.3.1-nosun.jar"/>
|
---|
[151] | 7 | </fileset>
|
---|
| 8 |
|
---|
| 9 | <!-- Java classpath addition (all jar files to compile tests with this) -->
|
---|
[111] | 10 | <path id="classpath">
|
---|
[151] | 11 | <fileset dir="lib">
|
---|
[111] | 12 | <include name="**/*.jar"/>
|
---|
| 13 | </fileset>
|
---|
| 14 | </path>
|
---|
[109] | 15 |
|
---|
[135] | 16 | <target name="dist" depends="compile">
|
---|
[111] | 17 | <!-- jars -->
|
---|
[151] | 18 | <unjar dest="build">
|
---|
| 19 | <fileset refid="josm_required_libs" />
|
---|
| 20 | </unjar>
|
---|
[1058] | 21 |
|
---|
| 22 | <!-- translation -->
|
---|
| 23 | <unjar dest="build">
|
---|
| 24 | <fileset dir="lib">
|
---|
| 25 | <include name="josm-translation.jar" />
|
---|
| 26 | </fileset>
|
---|
| 27 | </unjar>
|
---|
[109] | 28 |
|
---|
[111] | 29 | <!-- images -->
|
---|
[151] | 30 | <copy todir="build/images">
|
---|
[111] | 31 | <fileset dir="images" />
|
---|
| 32 | </copy>
|
---|
[154] | 33 |
|
---|
[397] | 34 | <!-- presets -->
|
---|
| 35 | <copy todir="build/presets">
|
---|
| 36 | <fileset dir="presets" />
|
---|
| 37 | </copy>
|
---|
| 38 |
|
---|
[486] | 39 | <!-- styles -->
|
---|
[790] | 40 | <copy file="styles/standard/elemstyles.xml" todir="build/styles/standard"/>
|
---|
| 41 |
|
---|
[151] | 42 | <!-- create josm-custom.jar -->
|
---|
[407] | 43 | <delete file="dist/josm-custom.jar"/>
|
---|
[151] | 44 | <jar destfile="dist/josm-custom.jar" basedir="build">
|
---|
[111] | 45 | <manifest>
|
---|
[1023] | 46 | <attribute name="Main-class" value="JOSM" />
|
---|
[111] | 47 | </manifest>
|
---|
| 48 | </jar>
|
---|
| 49 | </target>
|
---|
[109] | 50 |
|
---|
[151] | 51 | <target name="compile" depends="init">
|
---|
[639] | 52 | <javac srcdir="src" classpathref="classpath" destdir="build"
|
---|
[793] | 53 | target="1.5" source="1.5" debug="on" encoding="UTF-8">
|
---|
[529] | 54 | <compilerarg value="-Xlint:deprecation"/>
|
---|
| 55 | </javac>
|
---|
[151] | 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 |
|
---|
[109] | 68 | </project>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.