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

Last change on this file since 21777 was 11783, checked in by stotz, 16 years ago

Patch by r_x and further small enhancements

File size: 1.5 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
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">
[11783]15 <javac srcdir="src" destdir="bin" target="1.5" debug="true">
16 <include name="org/openstreetmap/gui/jmapviewer/**"/>
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" />
29 <jar destfile="JMapViewer.jar" filesetmanifest="mergewithoutmain">
[11783]30 <fileset dir="bin" includes="**/jmapviewer/**">
[9852]31 </fileset>
[11103]32 <fileset dir="src" includes="**/jmapviewer/**" />
[9095]33 </jar>
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">
40 <delete file="JMapViewer_Demo.jar" />
41 <jar destfile="JMapViewer_Demo.jar" filesetmanifest="mergewithoutmain">
42 <manifest>
43 <attribute name="Built-By" value="${user.name}" />
44 <attribute name="Main-Class" value="org.openstreetmap.gui.jmapviewer.Demo" />
45 <attribute name="Class-Path" value="." />
46 </manifest>
47 <fileset dir="bin" includes="**/jmapviewer/**" />
48 <fileset dir="src" includes="**/jmapviewer/**/*.java" />
49 </jar>
50 </target>
51</project>
Note: See TracBrowser for help on using the repository browser.