source: osm/applications/editors/josm/plugins/wmsplugin/build.xml@ 13723

Last change on this file since 13723 was 13584, checked in by stoecker, 16 years ago

apply #2127

File size: 2.2 KB
Line 
1<project name="wmsplugin" 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" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
13 <compilerarg value="-Xlint:deprecation"/>
14 <compilerarg value="-Xlint:unchecked"/>
15 <include name="**/*.java" />
16 </javac>
17 </target>
18 <target name="dist" depends="compile">
19 <copy todir="${plugin.build.dir}/resources">
20 <fileset dir="resources"/>
21 </copy>
22 <copy todir="${plugin.build.dir}/images" >
23 <fileset dir="images" />
24 </copy>
25 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
26 <env key="LANG" value="C"/>
27 <arg value="info"/>
28 <arg value="--xml"/>
29 <arg value="."/>
30 </exec>
31 <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
32 <delete file="REVISION"/>
33 <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
34 <manifest>
35 <attribute name="Plugin-Class" value="wmsplugin.WMSPlugin" />
36 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
37 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
38 <attribute name="Plugin-Description" value="Allows external WMS resources to be displayed." />
39 <attribute name="Plugin-Mainversion" value="1379" />
40 </manifest>
41 </jar>
42 </target>
43 <target name="clean">
44 <delete dir="${plugin.build.dir}" />
45 <delete file="${plugin.jar}" />
46 </target>
47</project>
Note: See TracBrowser for help on using the repository browser.