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

Last change on this file since 10178 was 9852, checked in by stotz, 16 years ago

Demo classes excluded for default jar

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 <exclude name="**/Demo*"/>
29 </fileset>
30 </jar>
31 <jar destfile="JMapViewer_src.jar" filesetmanifest="mergewithoutmain">
32 <fileset dir="src" includes="**/jmapviewer/**" />
33 </jar>
34 </target>
35
36 <target name="create_run_jar">
37 <delete file="JMapViewer_Demo.jar" />
38 <jar destfile="JMapViewer_Demo.jar" filesetmanifest="mergewithoutmain">
39 <manifest>
40 <attribute name="Built-By" value="${user.name}" />
41 <attribute name="Main-Class" value="org.openstreetmap.gui.jmapviewer.Demo" />
42 <attribute name="Class-Path" value="." />
43 </manifest>
44 <fileset dir="bin" includes="**/jmapviewer/**" />
45 <fileset dir="src" includes="**/jmapviewer/**/*.java" />
46 </jar>
47 </target>
48</project>
Note: See TracBrowser for help on using the repository browser.