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>
|
---|
[109] | 21 |
|
---|
[111] | 22 | <!-- images -->
|
---|
[151] | 23 | <copy todir="build/images">
|
---|
[111] | 24 | <fileset dir="images" />
|
---|
| 25 | </copy>
|
---|
[154] | 26 |
|
---|
[397] | 27 | <!-- presets -->
|
---|
| 28 | <copy todir="build/presets">
|
---|
| 29 | <fileset dir="presets" />
|
---|
| 30 | </copy>
|
---|
| 31 |
|
---|
[486] | 32 | <!-- styles -->
|
---|
[790] | 33 | <copy file="styles/standard/elemstyles.xml" todir="build/styles/standard"/>
|
---|
| 34 |
|
---|
[151] | 35 | <!-- create josm-custom.jar -->
|
---|
[407] | 36 | <delete file="dist/josm-custom.jar"/>
|
---|
[151] | 37 | <jar destfile="dist/josm-custom.jar" basedir="build">
|
---|
[111] | 38 | <manifest>
|
---|
| 39 | <attribute name="Main-class" value="org.openstreetmap.josm.gui.MainApplication" />
|
---|
| 40 | </manifest>
|
---|
| 41 | </jar>
|
---|
| 42 | </target>
|
---|
[109] | 43 |
|
---|
[151] | 44 | <target name="compile" depends="init">
|
---|
[639] | 45 | <javac srcdir="src" classpathref="classpath" destdir="build"
|
---|
[793] | 46 | target="1.5" source="1.5" debug="on" encoding="UTF-8">
|
---|
[529] | 47 | <compilerarg value="-Xlint:deprecation"/>
|
---|
| 48 | </javac>
|
---|
[151] | 49 | </target>
|
---|
| 50 |
|
---|
| 51 | <target name="init">
|
---|
| 52 | <mkdir dir="build" />
|
---|
| 53 | <mkdir dir="dist" />
|
---|
| 54 | </target>
|
---|
| 55 |
|
---|
| 56 | <target name="clean">
|
---|
| 57 | <delete dir="build" />
|
---|
| 58 | <delete dir="dist" />
|
---|
| 59 | </target>
|
---|
| 60 |
|
---|
[109] | 61 | </project>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.