Changeset 12780 in osm for applications/editors/josm/plugins/surveyor
- Timestamp:
- 2009-01-01T18:55:45+01:00 (16 years ago)
- Location:
- applications/editors/josm/plugins/surveyor
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/surveyor/build.xml
r12598 r12780 1 1 <project name="surveyor" default="dist" basedir="."> 2 3 <!-- josm "user home" directory depends on the platform used (windows has a different place than unix/linux) --> 4 <property environment="env"/> 5 <condition property="josm.home.dir" value="${env.APPDATA}/JOSM" else="${user.home}/.josm"> 6 <and> 7 <os family="windows"/> 8 </and> 9 </condition> 10 11 <!-- compilation properties --> 12 <property name="josm.build.dir" value="../../core"/> 13 <property name="josm.plugins.dir" value="${josm.home.dir}/plugins"/> 14 <property name="josm" location="../../core/dist/josm-custom.jar" /> 15 <property name="plugin.build.dir" value="build"/> 16 <property name="plugin.dist.dir" value="../../dist"/> 17 <property name="plugin.name" value="${ant.project.name}"/> 18 <property name="plugin.jar" value="../../dist/${plugin.name}.jar"/> 19 20 <property name="livegpsplugin.jar" value="../../dist/livegps.jar"/> 21 22 <property name="plugin.description" value="Allow adding markers/nodes on current gps positions."/> 23 <property name="plugin.stage" value="60"/> 24 <property name="plugin.class" value="at.dallermassl.josm.plugin.surveyor.SurveyorPlugin"/> 25 26 <property name="ant.build.javac.target" value="1.5"/> 27 28 29 <target name="dist" depends="compile"> 30 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false"> 31 <env key="LANG" value="C"/> 32 <arg value="info"/> 33 <arg value="--xml"/> 34 <arg value="."/> 35 </exec> 36 <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/> 37 <delete file="REVISION"/> 38 39 <!-- images --> 40 <copy todir="${plugin.build.dir}/"> 41 <fileset dir="resources"> 42 <include name="*.xml"/> 43 <include name="audio/*"/> 44 </fileset> 45 </copy> 46 47 <!-- create jar file --> 48 <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}"> 49 <manifest> 50 <attribute name="Plugin-Class" value="${plugin.class}" /> 51 <attribute name="Plugin-Description" value="${plugin.description}" /> 52 <attribute name="Plugin-Stage" value="${plugin.stage}" /> 53 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 54 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/> 55 <attribute name="Plugin-Mainversion" value="1180" /> 56 </manifest> 57 </jar> 58 </target> 59 60 <target name="compile" depends="init"> 61 <echo message="creating ${plugin.jar}"/> 62 <mkdir dir="${plugin.build.dir}"/> 63 <copy todir="build/images" > 64 <fileset dir="images" /> 65 </copy> 66 <javac srcdir="src" destdir="${plugin.build.dir}" debug="true" source="1.5" target="1.5"> 67 <compilerarg value="-Xlint:deprecation"/> 68 <compilerarg value="-Xlint:unchecked"/> 69 <classpath> 70 <pathelement path="${josm.build.dir}/build"/> 71 <fileset dir="${josm.build.dir}/lib"> 72 <include name="**/*.jar"/> 73 </fileset> 74 <pathelement location="${livegpsplugin.jar}"/> 75 </classpath> 76 </javac> 77 </target> 78 79 <target name="install" depends="dist"> 80 <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/> 81 </target> 82 83 <target name="init"> 84 <echo>java version: ${java.version}</echo> 85 </target> 86 87 <target name="clean"> 88 <delete dir="${plugin.build.dir}" /> 89 <delete file="${plugin.jar}" /> 90 </target> 2 <!-- josm "user home" directory depends on the platform used (windows has a different place than unix/linux) --> 3 <property environment="env"/> 4 <condition property="josm.home.dir" value="${env.APPDATA}/JOSM" else="${user.home}/.josm"> 5 <and> 6 <os family="windows"/> 7 </and> 8 </condition> 9 <!-- compilation properties --> 10 <property name="josm.build.dir" value="../../core"/> 11 <property name="josm.plugins.dir" value="${josm.home.dir}/plugins"/> 12 <property name="josm" location="../../core/dist/josm-custom.jar" /> 13 <property name="plugin.build.dir" value="build"/> 14 <property name="plugin.dist.dir" value="../../dist"/> 15 <property name="plugin.name" value="${ant.project.name}"/> 16 <property name="plugin.jar" value="../../dist/${plugin.name}.jar"/> 17 <property name="livegpsplugin.jar" value="../../dist/livegps.jar"/> 18 <property name="plugin.description" value="Allow adding markers/nodes on current gps positions."/> 19 <property name="plugin.stage" value="60"/> 20 <property name="plugin.class" value="at.dallermassl.josm.plugin.surveyor.SurveyorPlugin"/> 21 <property name="ant.build.javac.target" value="1.5"/> 22 <target name="dist" depends="compile"> 23 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false"> 24 <env key="LANG" value="C"/> 25 <arg value="info"/> 26 <arg value="--xml"/> 27 <arg value="."/> 28 </exec> 29 <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/> 30 <delete file="REVISION"/> 31 <!-- images --> 32 <copy todir="${plugin.build.dir}/"> 33 <fileset dir="resources"> 34 <include name="*.xml"/> 35 <include name="audio/*"/> 36 </fileset> 37 </copy> 38 <!-- create jar file --> 39 <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}"> 40 <manifest> 41 <attribute name="Plugin-Class" value="${plugin.class}" /> 42 <attribute name="Plugin-Description" value="${plugin.description}" /> 43 <attribute name="Plugin-Stage" value="${plugin.stage}" /> 44 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 45 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/> 46 <attribute name="Plugin-Mainversion" value="1180" /> 47 </manifest> 48 </jar> 49 </target> 50 <target name="compile" depends="init"> 51 <echo message="creating ${plugin.jar}"/> 52 <mkdir dir="${plugin.build.dir}"/> 53 <copy todir="build/images" > 54 <fileset dir="images" /> 55 </copy> 56 <javac srcdir="src" destdir="${plugin.build.dir}" debug="true" source="1.5" target="1.5"> 57 <compilerarg value="-Xlint:deprecation"/> 58 <compilerarg value="-Xlint:unchecked"/> 59 <classpath> 60 <pathelement path="${josm.build.dir}/build"/> 61 <fileset dir="${josm.build.dir}/lib"> 62 <include name="**/*.jar"/> 63 </fileset> 64 <pathelement location="${livegpsplugin.jar}"/> 65 </classpath> 66 </javac> 67 </target> 68 <target name="install" depends="dist"> 69 <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/> 70 </target> 71 <target name="init"> 72 <echo>java version: ${java.version}</echo> 73 </target> 74 <target name="clean"> 75 <delete dir="${plugin.build.dir}" /> 76 <delete file="${plugin.jar}" /> 77 </target> 91 78 </project> -
applications/editors/josm/plugins/surveyor/changelog.txt
r3962 r12780 2 2 3 3 2007-08-02: PlayAudioAction is able to read wav files from classpath and from urls 4 4 5 5 It also plays the audio file in the background, so the PlayAudioAction can 6 6 be set as the first action without delaying the setting of the waypoint/nodes -
applications/editors/josm/plugins/surveyor/resources/surveyor.xml
r6163 r12780 2 2 <surveyor columns="4" width="1300" height="0"> 3 3 <!-- icons can either be absolute paths or relative paths to the .josm directory --> 4 <!-- action class: either fully qualified classnames or if not found, 4 <!-- action class: either fully qualified classnames or if not found, 5 5 package at.dallermassl.josm.plugin.surveyor.action is assumed --> 6 6 <button label="Tunnel Start" hotkey="T" icon="tunnel"> … … 90 90 <action class="SetWaypointAction" params="Residential"/> 91 91 </button> 92 <!-- 92 <!-- 93 93 <button label="Test" hotkey="shift X"> 94 94 <action class="PlayAudioAction" params="resource://audio/KDE_Window_Iconify.wav"/>
Note:
See TracChangeset
for help on using the changeset viewer.