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

Last change on this file since 9288 was 9095, checked in by stotz, 16 years ago

Initial commit of the java component "JMapView"

File size: 1.4 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" />
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" target="1.5" />
16 <copy todir="bin">
17 <fileset dir="src">
18 <include name="**/*.png" />
19 </fileset>
20 </copy>
21 </target>
22
23 <target name="pack">
24 <delete file="JMapViewer.jar" />
25 <delete file="JMapViewer_src.jar" />
26 <jar destfile="JMapViewer.jar" filesetmanifest="mergewithoutmain">
27 <fileset dir="bin" includes="**/jmapviewer/**" />
28 </jar>
29 <jar destfile="JMapViewer_src.jar" filesetmanifest="mergewithoutmain">
30 <fileset dir="src" includes="**/jmapviewer/**" />
31 </jar>
32 </target>
33
34 <target name="create_run_jar">
35 <delete file="JMapViewer_Demo.jar" />
36 <jar destfile="JMapViewer_Demo.jar" filesetmanifest="mergewithoutmain">
37 <manifest>
38 <attribute name="Built-By" value="${user.name}" />
39 <attribute name="Main-Class" value="org.openstreetmap.gui.jmapviewer.Demo" />
40 <attribute name="Class-Path" value="." />
41 </manifest>
42 <fileset dir="bin" includes="**/jmapviewer/**" />
43 <fileset dir="src" includes="**/jmapviewer/**/*.java" />
44 </jar>
45 </target>
46</project>
Note: See TracBrowser for help on using the repository browser.