source: osm/applications/viewer/jmapviewer/build.xml@ 29177

Last change on this file since 29177 was 29161, checked in by the111, 12 years ago

Fix #josm8320 - Project specifies 1.5 compiler compliance but requires 1.6

File size: 2.0 KB
Line 
1<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2<project default="all" name="Compile and build java classes plus jar archives">
3
4 <target name="all" depends="clean,build,pack,create_run_jar,create_release_zip" />
5
6 <target name="clean">
7 <delete>
8 <fileset dir="bin">
9 <include name="**" />
10 </fileset>
11 </delete>
12 </target>
13
14 <target name="build">
15 <javac srcdir="src" destdir="bin" source="1.6" target="1.6" debug="true" includeantruntime="false">
16 <include name="org/openstreetmap/gui/jmapviewer/**" />
17 </javac>
18
19 <copy todir="bin">
20 <fileset dir="src">
21 <include name="**/*.png" />
22 </fileset>
23 </copy>
24 </target>
25
26 <target name="pack">
27 <delete file="JMapViewer.jar" />
28 <delete file="JMapViewer_src.jar" />
29 <!-- Create the JAR file containing the compiled class files -->
30 <jar destfile="JMapViewer.jar" filesetmanifest="mergewithoutmain">
31 <fileset dir="bin" includes="**/jmapviewer/**" />
32 </jar>
33 <!-- Create the JAR file containing the source java files -->
34 <jar destfile="JMapViewer_src.jar" filesetmanifest="mergewithoutmain">
35 <fileset dir="src" includes="**/jmapviewer/**" />
36 </jar>
37 </target>
38
39 <target name="create_run_jar" description="Create a JAR file that can be used to excute the JMapViewer demo app. Requires JMapViewer.jar to be present.">
40 <delete file="JMapViewer_Demo.jar" />
41 <jar destfile="JMapViewer_Demo.jar" filesetmanifest="mergewithoutmain">
42 <manifest>
43 <attribute name="Main-Class" value="org.openstreetmap.gui.jmapviewer.Demo" />
44 <attribute name="Class-Path" value="JMapViewer.jar" />
45 </manifest>
46 </jar>
47 </target>
48
49 <target name="create_release_zip" description="Create a release zip file containing the binary and source jar files as well as the demo starter">
50 <delete file="JMapViewer.zip" />
51 <zip basedir="." destfile="JMapViewer.zip">
52 <include name="JMapViewer*.jar" />
53 <include name="Readme.txt" />
54 <include name="Gpl.txt" />
55 </zip>
56 </target>
57
58</project>
Note: See TracBrowser for help on using the repository browser.