Changeset 29259 in osm for applications/editors
- Timestamp:
- 2013-02-18T17:51:24+01:00 (12 years ago)
- Location:
- applications/editors/josm/plugins/touchscreenhelper
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/touchscreenhelper/build.xml
r29258 r29259 33 33 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 34 34 <property name="plugin.main.version" value="4394"/> 35 <property name="josm" location="../../core/dist/josm-custom.jar"/> 36 <property name="plugin.build.dir" value="build"/> 37 <property name="plugin.src.dir" value="src"/> 38 <property name="plugin.dist.dir" value="../../dist"/> 39 <property name="ant.build.javac.target" value="1.6"/> 40 <property name="plugin.dist.dir" value="../../dist"/> 41 <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/> 42 <target name="init"> 43 <mkdir dir="${plugin.build.dir}"/> 44 </target> 45 <target name="compile" depends="init"> 46 <echo message="compiling sources for ${plugin.jar} ... "/> 47 <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}"> 48 <compilerarg value="-Xlint:deprecation"/> 49 <compilerarg value="-Xlint:unchecked"/> 50 </javac> 51 </target> 52 <target name="dist" depends="compile,revision"> 53 <echo message="creating ${ant.project.name}.jar ... "/> 54 <copy todir="${plugin.build.dir}/resources"> 55 <fileset dir="resources"/> 56 </copy> 57 <copy todir="${plugin.build.dir}/images"> 58 <fileset dir="images"/> 59 </copy> 60 <copy todir="${plugin.build.dir}/data"> 61 <fileset dir="data"/> 62 </copy> 63 <copy todir="${plugin.build.dir}"> 64 <fileset dir="."> 65 <include name="README"/> 66 <include name="LICENSE"/> 67 </fileset> 68 </copy> 69 <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}"> 70 <manifest> 71 <attribute name="Author" value="glebius@glebius.int.ru"/> 72 <attribute name="Plugin-Class" value="touchscreenhelper.TouchScreenHelperPlugin"/> 73 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/> 74 <attribute name="Plugin-Description" value="Provides helper buttons to allow working with single button mouse (stylus). Currently adds only one button to slip the map."/> 75 <attribute name="Plugin-Icon" value="images/mapmode/browse.png"/> 76 <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/> 77 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 78 </manifest> 79 </jar> 80 </target> 81 <target name="revision"> 82 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false"> 83 <env key="LANG" value="C"/> 84 <arg value="info"/> 85 <arg value="--xml"/> 86 <arg value="."/> 87 </exec> 88 <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/> 89 <delete file="REVISION"/> 90 </target> 91 <target name="clean"> 92 <delete dir="${plugin.build.dir}"/> 93 <delete file="${plugin.jar}"/> 94 </target> 95 <target name="install" depends="dist"> 96 <property environment="env"/> 97 <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins"> 98 <and> 99 <os family="windows"/> 100 </and> 101 </condition> 102 <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/> 103 </target> 104 <target name="core-info"> 105 <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false"> 106 <env key="LANG" value="C"/> 107 <arg value="info"/> 108 <arg value="--xml"/> 109 <arg value="../../core"/> 110 </exec> 111 <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/> 112 <echo>Building against core revision ${coreversion.info.entry.revision}.</echo> 113 <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo> 114 <delete file="core.info.xml"/> 115 </target> 116 <target name="commit-current"> 117 <echo>Commiting the plugin source with message '${commit.message}' ...</echo> 118 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false"> 119 <env key="LANG" value="C"/> 120 <arg value="commit"/> 121 <arg value="-m '${commit.message}'"/> 122 <arg value="."/> 123 </exec> 124 </target> 125 <target name="update-current"> 126 <echo>Updating plugin source ...</echo> 127 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false"> 128 <env key="LANG" value="C"/> 129 <arg value="up"/> 130 <arg value="."/> 131 </exec> 132 <echo>Updating ${plugin.jar} ...</echo> 133 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false"> 134 <env key="LANG" value="C"/> 135 <arg value="up"/> 136 <arg value="../dist/${plugin.jar}"/> 137 </exec> 138 </target> 139 <target name="commit-dist"> 140 <echo> 141 ***** Properties of published ${plugin.jar} ***** 142 Commit message : '${commit.message}' 143 Plugin-Mainversion: ${plugin.main.version} 144 JOSM build version: ${coreversion.info.entry.revision} 145 Plugin-Version : ${version.entry.commit.revision} 146 ***** / Properties of published ${plugin.jar} ***** 147 148 Now commiting ${plugin.jar} ... 149 </echo> 150 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false"> 151 <env key="LANG" value="C"/> 152 <arg value="-m '${commit.message}'"/> 153 <arg value="commit"/> 154 <arg value="${plugin.jar}"/> 155 </exec> 156 </target> 157 <target name="ensure-svn-present"> 158 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code"> 159 <env key="LANG" value="C"/> 160 <arg value="--version"/> 161 </exec> 162 <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system."> 163 <!-- return code not set at all? Most likely svn isn't installed --> 164 <condition> 165 <not> 166 <isset property="svn.exit.code"/> 167 </not> 168 </condition> 169 </fail> 170 <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system."> 171 <!-- error code from SVN? Most likely svn is not what we are looking on this system --> 172 <condition> 173 <isfailure code="${svn.exit.code}"/> 174 </condition> 175 </fail> 176 </target> 177 <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist"> 178 </target> 35 <property name="plugin.author" value="glebius@glebius.int.ru"/> 36 <property name="plugin.class" value="touchscreenhelper.TouchScreenHelperPlugin"/> 37 <property name="plugin.description" value="Provides helper buttons to allow working with single button mouse (stylus). Activate by holding T and slip map with left mouse button"/> 38 <property name="plugin.icon" value="images/mapmode/browse.png"/> 39 <property name="plugin.link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/TouchScreenHelper"/> 40 <import file="../build-common.xml"/> 179 41 </project> -
applications/editors/josm/plugins/touchscreenhelper/src/touchscreenhelper/BrowseAction.java
r29258 r29259 14 14 import org.openstreetmap.josm.data.coor.EastNorth; 15 15 import org.openstreetmap.josm.tools.Shortcut; 16 import u itils.TimedKeyReleaseListener;16 import utils.TimedKeyReleaseListener; 17 17 18 18 public class BrowseAction extends MapMode implements MouseListener,
Note:
See TracChangeset
for help on using the changeset viewer.