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

Last change on this file since 25370 was 25370, checked in by stotz, 14 years ago

Gpl added; release zip created

File size: 1.9 KB
RevLine 
[9095]1<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2<project default="all" name="Compile and build java classes plus jar archives">
3
[25370]4 <target name="all" depends="clean,build,pack,create_run_jar,create_release_zip" />
[9095]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">
[11783]15 <javac srcdir="src" destdir="bin" target="1.5" debug="true">
[25370]16 <include name="org/openstreetmap/gui/jmapviewer/**" />
[11783]17 </javac>
18
[9095]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" />
[25370]29 <!-- Create the JAR file containing the compiled class files -->
[9095]30 <jar destfile="JMapViewer.jar" filesetmanifest="mergewithoutmain">
[25370]31 <fileset dir="bin" includes="**/jmapviewer/**" />
[9095]32 </jar>
[25370]33 <!-- Create the JAR file containing the source java files -->
[9095]34 <jar destfile="JMapViewer_src.jar" filesetmanifest="mergewithoutmain">
35 <fileset dir="src" includes="**/jmapviewer/**" />
36 </jar>
37 </target>
38
[25370]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.">
[9095]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" />
[25370]44 <attribute name="Class-Path" value="JMapViewer.jar" />
[9095]45 </manifest>
46 </jar>
47 </target>
[25370]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
[9095]58</project>
Note: See TracBrowser for help on using the repository browser.