Changeset 14003 in osm for applications/editors/josm/plugins/surveyor
- Timestamp:
- 2009-03-08T12:02:49+01:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/surveyor/build.xml
r13332 r14003 1 1 <project name="surveyor" default="dist" basedir="."> 2 <property name="josm" location="../../core/dist/josm-custom.jar" 2 <property name="josm" location="../../core/dist/josm-custom.jar"/> 3 3 <property name="plugin.dist.dir" value="../../dist"/> 4 4 <property name="plugin.build.dir" value="build"/> … … 11 11 <target name="compile" depends="init"> 12 12 <echo message="creating ${plugin.jar}"/> 13 <javac srcdir="src" destdir="${plugin.build.dir} " debug="true">13 <javac srcdir="src" debug="false" destdir="${plugin.build.dir}"> 14 14 <compilerarg value="-Xlint:deprecation"/> 15 15 <compilerarg value="-Xlint:unchecked"/> … … 20 20 </javac> 21 21 </target> 22 <target name="dist" depends="compile"> 22 <target name="dist" depends="compile,revision"> 23 <copy todir="${plugin.build.dir}/"> 24 <fileset dir="resources"> 25 <include name="*.xml"/> 26 <include name="audio/*"/> 27 </fileset> 28 </copy> 29 <copy todir="${plugin.build.dir}/images"> 30 <fileset dir="images"/> 31 </copy> 32 <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}"> 33 <manifest> 34 <attribute name="Author" value="Christof Dallermassl"/> 35 <attribute name="Plugin-Class" value="at.dallermassl.josm.plugin.surveyor.SurveyorPlugin"/> 36 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/> 37 <attribute name="Plugin-Description" value="Allow adding markers/nodes on current gps positions."/> 38 <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/index.php/JOSM/Plugins/Surveyor"/> 39 <attribute name="Plugin-Mainversion" value="1326"/> 40 <attribute name="Plugin-Requires" value="livegps"/> 41 <attribute name="Plugin-Stage" value="60"/> 42 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 43 </manifest> 44 </jar> 45 </target> 46 <target name="revision"> 23 47 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false"> 24 48 <env key="LANG" value="C"/> … … 29 53 <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/> 30 54 <delete file="REVISION"/> 31 <copy todir="${plugin.build.dir}/">32 <fileset dir="resources">33 <include name="*.xml"/>34 <include name="audio/*"/>35 </fileset>36 </copy>37 <copy todir="${plugin.build.dir}/images" >38 <fileset dir="images" />39 </copy>40 <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">41 <manifest>42 <attribute name="Plugin-Class" value="at.dallermassl.josm.plugin.surveyor.SurveyorPlugin" />43 <attribute name="Plugin-Description" value="Allow adding markers/nodes on current gps positions." />44 <attribute name="Plugin-Stage" value="60" />45 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>46 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>47 <attribute name="Plugin-Mainversion" value="1326" />48 <attribute name="Plugin-Requires" value="livegps" />49 </manifest>50 </jar>51 55 </target> 52 56 <target name="clean"> 53 <delete dir="${plugin.build.dir}" /> 54 <delete file="${plugin.jar}" /> 57 <delete dir="${plugin.build.dir}"/> 58 <delete file="${plugin.jar}"/> 59 </target> 60 <target name="install" depends="dist"> 61 <property environment="env"/> 62 <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins"> 63 <and> 64 <os family="windows"/> 65 </and> 66 </condition> 67 <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/> 55 68 </target> 56 69 </project>
Note:
See TracChangeset
for help on using the changeset viewer.