source: osm/applications/editors/josm/plugins/openlayers/build.xml@ 14358

Last change on this file since 14358 was 14358, checked in by stoecker, 15 years ago

updated manifest

File size: 2.9 KB
Line 
1<project name="openlayers" default="dist" basedir=".">
2 <property name="josm" location="../../core/dist/josm-custom.jar"/>
3 <property name="plugin.dist.dir" value="../../dist"/>
4 <property name="plugin.build.dir" value="build"/>
5 <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
6 <property name="ant.build.javac.target" value="1.5"/>
7 <target name="init">
8 <mkdir dir="${plugin.build.dir}"/>
9 </target>
10 <target name="compile" depends="init">
11 <echo message="creating ${plugin.jar}"/>
12 <javac srcdir="src" debug="true" destdir="${plugin.build.dir}">
13 <compilerarg value="-Xlint:deprecation"/>
14 <compilerarg value="-Xlint:unchecked"/>
15 <classpath>
16 <pathelement location="${josm}"/>
17 <fileset dir="lib">
18 <include name="**/*.jar"/>
19 </fileset>
20 </classpath>
21 </javac>
22 </target>
23 <target name="dist" depends="compile,revision">
24 <unjar dest="${plugin.build.dir}">
25 <fileset dir="lib"/>
26 </unjar>
27 <copy todir="${plugin.build.dir}/resources">
28 <fileset dir="resources"/>
29 </copy>
30 <copy todir="${plugin.build.dir}/images">
31 <fileset dir="images"/>
32 </copy>
33 <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
34 <manifest>
35 <attribute name="Author" value="Francisco R. Santos" />
36 <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.openLayers.OpenLayersPlugin" />
37 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
38 <attribute name="Plugin-Description" value="Displays an OpenLayers background image" />
39 <attribute name="Plugin-Mainversion" value="1498"/>
40 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
41 </manifest>
42 </jar>
43 </target>
44 <target name="revision">
45 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
46 <env key="LANG" value="C"/>
47 <arg value="info"/>
48 <arg value="--xml"/>
49 <arg value="."/>
50 </exec>
51 <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
52 <delete file="REVISION"/>
53 </target>
54 <target name="clean">
55 <delete dir="${plugin.build.dir}"/>
56 <delete file="${plugin.jar}"/>
57 </target>
58 <target name="install" depends="dist">
59 <property environment="env"/>
60 <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
61 <and>
62 <os family="windows"/>
63 </and>
64 </condition>
65 <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
66 </target>
67</project>
Note: See TracBrowser for help on using the repository browser.