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

Last change on this file since 18597 was 18597, checked in by jttt, 16 years ago

Updated to new MapViewPaintable.paint arguments

File size: 2.9 KB
RevLine 
[8748]1<project name="openlayers" default="dist" basedir=".">
[14125]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"/>
[12780]6 <property name="ant.build.javac.target" value="1.5"/>
7 <target name="init">
[14125]8 <mkdir dir="${plugin.build.dir}"/>
[12780]9 </target>
10 <target name="compile" depends="init">
11 <echo message="creating ${plugin.jar}"/>
[14125]12 <javac srcdir="src" debug="true" destdir="${plugin.build.dir}">
13 <compilerarg value="-Xlint:deprecation"/>
14 <compilerarg value="-Xlint:unchecked"/>
[12780]15 <classpath>
[14125]16 <pathelement location="${josm}"/>
17 <fileset dir="lib">
18 <include name="**/*.jar"/>
19 </fileset>
[12780]20 </classpath>
21 </javac>
22 </target>
[14125]23 <target name="dist" depends="compile,revision">
24 <unjar dest="${plugin.build.dir}">
25 <fileset dir="lib"/>
[12780]26 </unjar>
[14125]27 <copy todir="${plugin.build.dir}/resources">
28 <fileset dir="resources"/>
[12780]29 </copy>
[14125]30 <copy todir="${plugin.build.dir}/images">
31 <fileset dir="images"/>
[12780]32 </copy>
[14125]33 <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
[12780]34 <manifest>
[14358]35 <attribute name="Author" value="Francisco R. Santos" />
[12780]36 <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.openLayers.OpenLayersPlugin" />
[14358]37 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
[12780]38 <attribute name="Plugin-Description" value="Displays an OpenLayers background image" />
[18597]39 <attribute name="Plugin-Mainversion" value="2450"/>
[14358]40 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
[12780]41 </manifest>
42 </jar>
43 </target>
[14125]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>
[12780]54 <target name="clean">
[14125]55 <delete dir="${plugin.build.dir}"/>
56 <delete file="${plugin.jar}"/>
[12780]57 </target>
58 <target name="install" depends="dist">
[14125]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>
[12780]65 <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
66 </target>
[8748]67</project>
Note: See TracBrowser for help on using the repository browser.