Changeset 29435 in osm for applications
- Timestamp:
- 2013-03-30T01:26:46+01:00 (11 years ago)
- Location:
- applications/editors/josm/plugins
- Files:
-
- 28 added
- 456 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/00_plugin_dir_template/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/ColumbusCSV/build.xml
- Property svn:keywords deleted
-
applications/editors/josm/plugins/CommandLine/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/Create_grid_of_ways/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/DirectDownload/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/DirectUpload/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/ElevationProfile/build.xml
- Property svn:keywords deleted
-
applications/editors/josm/plugins/FastDraw/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/FixAddresses/build.xml
- Property svn:keywords deleted
-
applications/editors/josm/plugins/HouseNumberTaggingTool/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/ImportImagePlugin/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/NanoLog/build.xml
-
Property svn:mime-type
changed from
application/xml
totext/xml
-
Property svn:mime-type
changed from
-
applications/editors/josm/plugins/OpeningHoursEditor/build.xml
- Property svn:executable deleted
-
Property svn:mime-type
set to
text/xml
-
applications/editors/josm/plugins/OsmInspectorPlugin/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/addrinterpolation/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/alignways/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/build-common.xml
r29007 r29435 117 117 <param name="propery.value" value="${plugin.stage}"/> 118 118 </antcall> 119 <antcall target="additional-manifest" /> 119 120 <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}" manifest="MANIFEST"> 120 121 <zipgroupfileset dir="${plugin.lib.dir}" includes="*.jar" erroronmissingdir="no"/> … … 130 131 <attribute name="${manifest.attribute}" value="${propery.value}" /> 131 132 </manifest> 133 </target> 134 <!-- target to add additional entries, empty in commons --> 135 <target name="additional-manifest"> 132 136 </target> 133 137 <target name="check-manifest-attribute"> -
applications/editors/josm/plugins/buildings_tools/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/cadastre-fr/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/canvec_helper/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/colorscheme/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/czechaddress/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/dataimport/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/download_along/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/editgpx/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/epci-fr/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/ext_tools/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/geotools/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/globalsat/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/gpsblam/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/gpxfilter/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/graphview/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/imagery-xml-bounds/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/imagery_offset_db
-
Property svn:ignore
set to
build
-
Property svn:ignore
set to
-
applications/editors/josm/plugins/imagery_offset_db/build.xml
-
Property svn:mime-type
changed from
application/xml
totext/xml
r29412 r29435 5 5 ** Maintaining versions 6 6 ** ==================== 7 ** see README.template7 ** See README.template 8 8 ** 9 9 ** Usage 10 10 ** ===== 11 ** To build it run 12 ** 13 ** > ant dist 14 ** 15 ** To install the generated plugin locally (in you default plugin directory) run 16 ** 17 ** > ant install 18 ** 19 ** The generated plugin jar is not automatically available in JOSMs plugin configuration 20 ** dialog. You have to check it in first. 21 ** 22 ** Use the ant target 'publish' to check in the plugin and make it available to other 23 ** JOSM users: 24 ** set the properties commit.message and plugin.main.version 25 ** and run 26 ** > ant publish 27 ** 11 ** Call "ant help" to get possible build targets. 28 12 ** 29 13 --> 30 14 <project name="imagery_offset_db" default="dist" basedir="."> 15 31 16 <!-- enter the SVN commit message --> 32 17 <property name="commit.message" value="Imagery Offset Database"/> 33 18 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 34 19 <property name="plugin.main.version" value="4666"/> 35 <!-- 36 ************************************************ 37 ** should not be necessary to change the following properties 38 --> 39 <property name="josm" location="../../core/dist/josm-custom.jar"/> 40 <property name="plugin.build.dir" value="build"/> 41 <property name="plugin.src.dir" value="src"/> 42 <!-- this is the directory where the plugin jar is copied to --> 43 <property name="plugin.dist.dir" value="../../dist"/> 44 <!--property name="plugin.dist.dir" value="/Users/Zverik/AppData/Roaming/JOSM/plugins"/--> 45 <property name="ant.build.javac.target" value="1.5"/> 46 <property name="ant.build.javac.source" value="1.5"/> 47 <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/> 48 <!-- 49 ********************************************************** 50 ** init - initializes the build 51 ********************************************************** 52 --> 53 <target name="init"> 54 <mkdir dir="${plugin.build.dir}"/> 20 21 <property name="plugin.author" value="Ilya Zverev"/> 22 <property name="plugin.class" value="iodb.ImageryOffsetPlugin"/> 23 <property name="plugin.description" value="Database of imagery offsets: share and aquire imagery offsets with one button."/> 24 <property name="plugin.icon" value="images/iodb.png"/> 25 <property name="plugin.link" value="http://wiki.openstreetmap.org/wiki/Imagery_Offset_Database"/> 26 27 <target name="additional-manifest"> 28 <manifest file="MANIFEST" mode="update"> 29 <attribute name="ru_Author" value="Илья Зверев"/> 30 <attribute name="ru_Plugin-Description" value="База данных смещений подложек: загружайте и делитесь смещениями одной кнопкой."/> 31 <attribute name="ru_Plugin-Link" value="http://wiki.openstreetmap.org/wiki/RU:Imagery_Offset_Database"/> 32 </manifest> 55 33 </target> 56 <!-- 57 ********************************************************** 58 ** compile - complies the source tree 59 ********************************************************** 60 --> 61 <target name="compile" depends="init"> 62 <echo message="compiling sources for ${plugin.jar} ... "/> 63 <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}"> 64 <compilerarg value="-Xlint:deprecation"/> 65 <compilerarg value="-Xlint:unchecked"/> 66 </javac> 67 </target> 68 <!-- 69 ********************************************************** 70 ** dist - creates the plugin jar 71 ********************************************************** 72 --> 73 <target name="dist" depends="compile,revision"> 74 <echo message="creating ${ant.project.name}.jar ... "/> 75 <copy todir="${plugin.build.dir}/images"> 76 <fileset dir="images"/> 77 </copy> 78 <copy todir="${plugin.build.dir}/data"> 79 <fileset dir="data"/> 80 </copy> 81 <copy todir="${plugin.build.dir}"> 82 <fileset dir="src" includes="**/*.txt"/> 83 </copy> 84 <copy todir="${plugin.build.dir}"> 85 <fileset dir="."> 86 <include name="README"/> 87 <include name="LICENSE"/> 88 </fileset> 89 </copy> 90 <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}"> 91 <!-- 92 ************************************************ 93 ** configure these properties. Most of them will be copied to the plugins 94 ** manifest file. Property values will also show up in the list available 95 ** plugins: http://josm.openstreetmap.de/wiki/Plugins. 96 ** 97 ************************************************ 98 --> 99 <manifest> 100 <attribute name="Author" value="Ilya Zverev"/> 101 <attribute name="ru_Author" value="Илья Зверев"/> 102 <attribute name="Plugin-Class" value="iodb.ImageryOffsetPlugin"/> 103 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/> 104 <attribute name="Plugin-Description" value="Database of imagery offsets: share and aquire imagery offsets with one button."/> 105 <attribute name="ru_Plugin-Description" value="База данных смещений подложек: загружайте и делитесь смещениями одной кнопкой."/> 106 <attribute name="Plugin-Icon" value="images/iodb.png"/> 107 <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/Imagery_Offset_Database"/> 108 <attribute name="ru_Plugin-Link" value="http://wiki.openstreetmap.org/wiki/RU:Imagery_Offset_Database"/> 109 <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/> 110 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 111 </manifest> 112 </jar> 113 </target> 114 <!-- 115 ********************************************************** 116 ** revision - extracts the current revision number for the 117 ** file build.number and stores it in the XML property 118 ** version.* 119 ********************************************************** 120 --> 121 <target name="revision"> 122 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false"> 123 <env key="LANG" value="C"/> 124 <arg value="info"/> 125 <arg value="--xml"/> 126 <arg value="."/> 127 </exec> 128 <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/> 129 <delete file="REVISION"/> 130 </target> 131 <!-- 132 ********************************************************** 133 ** clean - clean up the build environment 134 ********************************************************** 135 --> 136 <target name="clean"> 137 <delete dir="${plugin.build.dir}"/> 138 <delete file="${plugin.jar}"/> 139 </target> 140 <!-- 141 ********************************************************** 142 ** install - install the plugin in your local JOSM installation 143 ********************************************************** 144 --> 145 <target name="install" depends="dist"> 146 <property environment="env"/> 147 <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins"> 148 <and> 149 <os family="windows"/> 150 </and> 151 </condition> 152 <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/> 153 </target> 154 <!-- 155 ************************** Publishing the plugin *********************************** 156 --> 157 <!-- 158 ** extracts the JOSM release for the JOSM version in ../core and saves it in the 159 ** property ${coreversion.info.entry.revision} 160 ** 161 --> 162 <target name="core-info"> 163 <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false"> 164 <env key="LANG" value="C"/> 165 <arg value="info"/> 166 <arg value="--xml"/> 167 <arg value="../../core"/> 168 </exec> 169 <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/> 170 <echo>Building against core revision ${coreversion.info.entry.revision}.</echo> 171 <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo> 172 <delete file="core.info.xml"/> 173 </target> 174 <!-- 175 ** commits the source tree for this plugin 176 --> 177 <target name="commit-current"> 178 <echo>Commiting the plugin source with message '${commit.message}' ...</echo> 179 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false"> 180 <env key="LANG" value="C"/> 181 <arg value="commit"/> 182 <arg value="-m '${commit.message}'"/> 183 <arg value="."/> 184 </exec> 185 </target> 186 <!-- 187 ** updates (svn up) the source tree for this plugin 188 --> 189 <target name="update-current"> 190 <echo>Updating plugin source ...</echo> 191 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false"> 192 <env key="LANG" value="C"/> 193 <arg value="up"/> 194 <arg value="."/> 195 </exec> 196 <echo>Updating ${plugin.jar} ...</echo> 197 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false"> 198 <env key="LANG" value="C"/> 199 <arg value="up"/> 200 <arg value="../dist/${plugin.jar}"/> 201 </exec> 202 </target> 203 <!-- 204 ** commits the plugin.jar 205 --> 206 <target name="commit-dist"> 207 <echo> 208 ***** Properties of published ${plugin.jar} ***** 209 Commit message : '${commit.message}' 210 Plugin-Mainversion: ${plugin.main.version} 211 JOSM build version: ${coreversion.info.entry.revision} 212 Plugin-Version : ${version.entry.commit.revision} 213 ***** / Properties of published ${plugin.jar} ***** 214 215 Now commiting ${plugin.jar} ... 216 </echo> 217 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false"> 218 <env key="LANG" value="C"/> 219 <arg value="-m '${commit.message}'"/> 220 <arg value="commit"/> 221 <arg value="${plugin.jar}"/> 222 </exec> 223 </target> 224 <!-- ** make sure svn is present as a command line tool ** --> 225 <target name="ensure-svn-present"> 226 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code"> 227 <env key="LANG" value="C"/> 228 <arg value="--version"/> 229 </exec> 230 <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system."> 231 <!-- return code not set at all? Most likely svn isn't installed --> 232 <condition> 233 <not> 234 <isset property="svn.exit.code"/> 235 </not> 236 </condition> 237 </fail> 238 <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system."> 239 <!-- error code from SVN? Most likely svn is not what we are looking on this system --> 240 <condition> 241 <isfailure code="${svn.exit.code}"/> 242 </condition> 243 </fail> 244 </target> 245 <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist"> 246 </target> 34 35 <!-- ** include targets that all plugins have in common ** --> 36 <import file="../build-common.xml"/> 37 247 38 </project> -
Property svn:mime-type
changed from
-
applications/editors/josm/plugins/imageryadjust/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/imagerycache/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/imagewaypoint/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/importvec/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/infomode/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/irsrectify/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/jts/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/junctionchecking/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/lakewalker/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/livegps/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/log4j/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/mapdust/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/measurement/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/merge-overlap/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/michigan_left/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/mirrored_download/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/multipoly-convert/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/namemanager/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/native-password-manager/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/nearclick/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/no_more_mapping/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/opendata/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/openstreetbugs/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/openvisible/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/osmarender/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/pbf/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/pdfimport/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/photo_geotagging/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/piclayer/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/plastic_laf/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/poly/build.xml
-
Property svn:mime-type
changed from
application/xml
totext/xml
-
Property svn:mime-type
changed from
-
applications/editors/josm/plugins/print/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/proj4j/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/public_transport/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/reltoolbox/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/restart/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/reverter/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/roadsigns/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/routes/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/routing/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/sds/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/simplifyarea/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/smed/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/smed2/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/surveyor/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/surveyor2/build.xml
-
Property svn:mime-type
changed from
application/xml
totext/xml
-
Property svn:mime-type
changed from
-
applications/editors/josm/plugins/tag2link/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/tageditor/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/tagging-preset-tester/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/terracer/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/touchscreenhelper/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/tracer/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/trustosm/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/turnlanes/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/turnrestrictions/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/undelete/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/utilsplugin2/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/videomapping/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/walkingpapers/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/waydownloader/build.xml
-
Property svn:mime-type
set to
text/xml
r27852 r29435 5 5 ** Maintaining versions 6 6 ** ==================== 7 ** see README.template7 ** See README.template 8 8 ** 9 9 ** Usage 10 10 ** ===== 11 ** To build it run 12 ** 13 ** > ant dist 14 ** 15 ** To install the generated plugin locally (in you default plugin directory) run 16 ** 17 ** > ant install 18 ** 19 ** The generated plugin jar is not automatically available in JOSMs plugin configuration 20 ** dialog. You have to check it in first. 11 ** Call "ant help" to get possible build targets. 21 12 ** 22 13 --> 23 14 <project name="waydownloader" default="dist" basedir="."> 24 <!-- 25 ** update before publishing 26 --> 15 16 <!-- enter the SVN commit message --> 27 17 <property name="commit.message" value="Changed the constructor signature of the plugin main class"/> 18 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 28 19 <property name="plugin.main.version" value="4980"/> 29 <!-- 30 ************************************************ 31 ** should not be necessary to change the following properties 32 --> 33 <property name="josm" location="../../core/dist/josm-custom.jar"/> 34 <property name="plugin.build.dir" value="build"/> 35 <property name="plugin.src.dir" value="src"/> 36 <!-- this is the directory where the plugin jar is copied to --> 37 <property name="plugin.dist.dir" value="../../dist"/> 38 <property name="ant.build.javac.target" value="1.5"/> 39 <property name="plugin.dist.dir" value="../../dist"/> 40 <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/> 41 <!-- 42 ********************************************************** 43 ** init - initializes the build 44 ********************************************************** 45 --> 46 <target name="init"> 47 <mkdir dir="${plugin.build.dir}"/> 48 </target> 49 <!-- 50 ********************************************************** 51 ** compile - complies the source tree 52 ********************************************************** 53 --> 54 <target name="compile" depends="init"> 55 <echo message="compiling sources for ${plugin.jar} ... "/> 56 <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}"> 57 <compilerarg value="-Xlint:deprecation"/> 58 <compilerarg value="-Xlint:unchecked"/> 59 </javac> 60 </target> 61 <!-- 62 ********************************************************** 63 ** dist - creates the plugin jar 64 ********************************************************** 65 --> 66 <target name="dist" depends="compile,revision"> 67 <echo message="creating ${plugin.jar} ... "/> 68 <copy todir="${plugin.build.dir}/resources"> 69 <fileset dir="resources"/> 70 </copy> 71 <copy todir="${plugin.build.dir}/images"> 72 <fileset dir="images"/> 73 </copy> 74 <copy todir="${plugin.build.dir}/data"> 75 <fileset dir="data"/> 76 </copy> 77 <copy todir="${plugin.build.dir}"> 78 <fileset dir="."> 79 <include name="README"/> 80 <include name="LICENSE"/> 81 </fileset> 82 </copy> 83 <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}"> 84 <!-- 85 ************************************************ 86 ** configure these properties. Most of them will be copied to the plugins 87 ** manifest file. Property values will also show up in the list available 88 ** plugins: http://josm.openstreetmap.de/wiki/Plugins. 89 ** 90 ************************************************ 91 --> 92 <manifest> 93 <attribute name="Author" value="Harry Wood"/> 94 <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.waydownloader.WayDownloaderPlugin"/> 95 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/> 96 <attribute name="Plugin-Description" value="Easy downloading along a long set of interconnected ways"/> 97 <attribute name="Plugin-Icon" value="images/way-download.png"/> 98 <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/WayDownloaderPlugin"/> 99 <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/> 100 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 101 </manifest> 102 </jar> 103 </target> 104 <!-- 105 ********************************************************** 106 ** revision - extracts the current revision number for the 107 ** file build.number and stores it in the XML property 108 ** version.* 109 ********************************************************** 110 --> 111 <target name="revision"> 112 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false"> 113 <env key="LANG" value="C"/> 114 <arg value="info"/> 115 <arg value="--xml"/> 116 <arg value="."/> 117 </exec> 118 <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/> 119 <delete file="REVISION"/> 120 </target> 121 <!-- 122 ********************************************************** 123 ** clean - clean up the build environment 124 ********************************************************** 125 --> 126 <target name="clean"> 127 <delete dir="${plugin.build.dir}"/> 128 <delete file="${plugin.jar}"/> 129 </target> 130 <!-- 131 ********************************************************** 132 ** install - install the plugin in your local JOSM installation 133 ********************************************************** 134 --> 135 <target name="install" depends="dist"> 136 <property environment="env"/> 137 <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins"> 138 <and> 139 <os family="windows"/> 140 </and> 141 </condition> 142 <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/> 143 </target> 144 <!-- 145 ************************** Publishing the plugin *********************************** 146 --> 147 <!-- 148 ** extracts the JOSM release for the JOSM version in ../core and saves it in the 149 ** property ${coreversion.info.entry.revision} 150 ** 151 --> 152 <target name="core-info"> 153 <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false"> 154 <env key="LANG" value="C"/> 155 <arg value="info"/> 156 <arg value="--xml"/> 157 <arg value="../../core"/> 158 </exec> 159 <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/> 160 <echo>Building against core revision ${coreversion.info.entry.revision}.</echo> 161 <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo> 162 <delete file="core.info.xml"/> 163 </target> 164 <!-- 165 ** commits the source tree for this plugin 166 --> 167 <target name="commit-current"> 168 <echo>Commiting the plugin source with message '${commit.message}' ...</echo> 169 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false"> 170 <env key="LANG" value="C"/> 171 <arg value="-m '${commit.message}'"/> 172 <arg value="commit"/> 173 <arg value="."/> 174 </exec> 175 </target> 176 <!-- 177 ** updates (svn up) the source tree for this plugin 178 --> 179 <target name="update-current"> 180 <echo>Updating plugin source ...</echo> 181 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false"> 182 <env key="LANG" value="C"/> 183 <arg value="up"/> 184 <arg value="."/> 185 </exec> 186 <echo>Updating ${plugin.jar} ...</echo> 187 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false"> 188 <env key="LANG" value="C"/> 189 <arg value="up"/> 190 <arg value="../dist/${plugin.jar}"/> 191 </exec> 192 </target> 193 <!-- 194 ** commits the plugin.jar 195 --> 196 <target name="commit-dist"> 197 <echo> 198 ***** Properties of published ${plugin.jar} ***** 199 Commit message : '${commit.message}' 200 Plugin-Mainversion: ${plugin.main.version} 201 JOSM build version: ${coreversion.info.entry.revision} 202 Plugin-Version : ${version.entry.commit.revision} 203 ***** / Properties of published ${plugin.jar} ***** 204 205 Now commiting ${plugin.jar} ... 206 </echo> 207 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="true" failonerror="true"> 208 <env key="LANG" value="C"/> 209 <arg value="-m '${commit.message}'"/> 210 <arg value="commit"/> 211 <arg value="${plugin.jar}"/> 212 </exec> 213 </target> 214 <!-- ** make sure svn is present as a command line tool ** --> 215 <target name="ensure-svn-present"> 216 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code"> 217 <env key="LANG" value="C"/> 218 <arg value="--version"/> 219 </exec> 220 <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system."> 221 <!-- return code not set at all? Most likely svn isn't installed --> 222 <condition> 223 <not> 224 <isset property="svn.exit.code"/> 225 </not> 226 </condition> 227 </fail> 228 <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system."> 229 <!-- error code from SVN? Most likely svn is not what we are looking for on this system --> 230 <condition> 231 <isfailure code="${svn.exit.code}"/> 232 </condition> 233 </fail> 234 </target> 235 <target name="publish" depends="ensure-svn-present, core-info,commit-current,update-current,clean,dist,commit-dist"> 236 </target> 20 21 <property name="plugin.author" value="Harry Wood"/> 22 <property name="plugin.class" value="org.openstreetmap.josm.plugins.waydownloader.WayDownloaderPlugin"/> 23 <property name="plugin.description" value="Easy downloading along a long set of interconnected ways"/> 24 <property name="plugin.icon" value="images/way-download.png"/> 25 <property name="plugin.link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/WayDownloaderPlugin"/> 26 27 <!-- ** include targets that all plugins have in common ** --> 28 <import file="../build-common.xml"/> 29 237 30 </project> -
Property svn:mime-type
set to
-
applications/editors/josm/plugins/waypoint_search/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
-
applications/editors/josm/plugins/wayselector/build.xml
-
Property svn:mime-type
set to
text/xml
r27852 r29435 5 5 ** Maintaining versions 6 6 ** ==================== 7 ** see README.template7 ** See README.template 8 8 ** 9 9 ** Usage 10 10 ** ===== 11 ** To build it run 12 ** 13 ** > ant dist 14 ** 15 ** To install the generated plugin locally (in you default plugin directory) run 16 ** 17 ** > ant install 18 ** 19 ** The generated plugin jar is not automatically available in JOSMs plugin configuration 20 ** dialog. You have to check it in first. 21 ** 22 ** Use the ant target 'publish' to check in the plugin and make it available to other 23 ** JOSM users: 24 ** set the properties commit.message and plugin.main.version 25 ** and run 26 ** > ant publish 27 ** 11 ** Call "ant help" to get possible build targets. 28 12 ** 29 13 --> 30 14 <project name="wayselector" default="dist" basedir="."> 15 31 16 <!-- enter the SVN commit message --> 32 17 <property name="commit.message" value="recompile due to core change"/> 33 18 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 34 19 <property name="plugin.main.version" value="4980"/> 35 <!--36 ************************************************37 ** should not be necessary to change the following properties38 -->39 <property name="josm" location="../../core/dist/josm-custom.jar"/>40 <property name="plugin.build.dir" value="build"/>41 <property name="plugin.src.dir" value="src"/>42 <!-- this is the directory where the plugin jar is copied to -->43 <property name="plugin.dist.dir" value="../../dist"/>44 <property name="ant.build.javac.target" value="1.5"/>45 <property name="plugin.dist.dir" value="../../dist"/>46 <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>47 <!--48 **********************************************************49 ** init - initializes the build50 **********************************************************51 -->52 <target name="init">53 <mkdir dir="${plugin.build.dir}"/>54 </target>55 <!--56 **********************************************************57 ** compile - compiles the source tree58 **********************************************************59 -->60 <target name="compile" depends="init">61 <echo message="compiling sources for ${plugin.jar} ... "/>62 <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}" includeantruntime="false">63 <compilerarg value="-Xlint:deprecation"/>64 <compilerarg value="-Xlint:unchecked"/>65 </javac>66 </target>67 <!--68 **********************************************************69 ** dist - creates the plugin jar70 **********************************************************71 -->72 <target name="dist" depends="compile,revision">73 <echo message="creating ${ant.project.name}.jar ... "/>74 <copy todir="${plugin.build.dir}/resources">75 <fileset dir="resources"/>76 </copy>77 <copy todir="${plugin.build.dir}/images">78 <fileset dir="images"/>79 </copy>80 <copy todir="${plugin.build.dir}/data">81 <fileset dir="data"/>82 </copy>83 <copy todir="${plugin.build.dir}">84 <fileset dir=".">85 <include name="README"/>86 <include name="LICENSE"/>87 </fileset>88 </copy>89 <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">90 <!--91 ************************************************92 ** configure these properties. Most of them will be copied to the plugins93 ** manifest file. Property values will also show up in the list available94 ** plugins: http://josm.openstreetmap.de/wiki/Plugins.95 **96 ************************************************97 -->98 <manifest>99 <attribute name="Author" value="Marko Mäkelä"/>100 <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.wayselector.WaySelectorPlugin"/>101 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>102 <attribute name="Plugin-Description" value="Select a sequence of non-branching connected ways"/>103 <attribute name="Plugin-Icon" value="images/way-select.png"/>104 <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/WaySelectorPlugin"/>105 <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>106 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>107 </manifest>108 </jar>109 </target>110 <!--111 **********************************************************112 ** revision - extracts the current revision number for the113 ** file build.number and stores it in the XML property114 ** version.*115 **********************************************************116 -->117 <target name="revision">118 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">119 <env key="LANG" value="C"/>120 <arg value="info"/>121 <arg value="--xml"/>122 <arg value="."/>123 </exec>124 <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>125 <delete file="REVISION"/>126 </target>127 <!--128 **********************************************************129 ** clean - clean up the build environment130 **********************************************************131 -->132 <target name="clean">133 <delete dir="${plugin.build.dir}"/>134 <delete file="${plugin.jar}"/>135 </target>136 <!--137 **********************************************************138 ** install - install the plugin in your local JOSM installation139 **********************************************************140 -->141 <target name="install" depends="dist">142 <property environment="env"/>143 <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">144 <and>145 <os family="windows"/>146 </and>147 </condition>148 <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>149 </target>150 <!--151 ************************** Publishing the plugin ***********************************152 -->153 <!--154 ** extracts the JOSM release for the JOSM version in ../core and saves it in the155 ** property ${coreversion.info.entry.revision}156 **157 -->158 <target name="core-info">159 <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">160 <env key="LANG" value="C"/>161 <arg value="info"/>162 <arg value="--xml"/>163 <arg value="../../core"/>164 </exec>165 <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>166 <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>167 <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>168 <delete file="core.info.xml"/>169 </target>170 <!--171 ** commits the source tree for this plugin172 -->173 <target name="commit-current">174 <echo>Commiting the plugin source with message '${commit.message}' ...</echo>175 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">176 <env key="LANG" value="C"/>177 <arg value="commit"/>178 <arg value="-m '${commit.message}'"/>179 <arg value="."/>180 </exec>181 </target>182 <!--183 ** updates (svn up) the source tree for this plugin184 -->185 <target name="update-current">186 <echo>Updating plugin source ...</echo>187 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">188 <env key="LANG" value="C"/>189 <arg value="up"/>190 <arg value="."/>191 </exec>192 <echo>Updating ${plugin.jar} ...</echo>193 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">194 <env key="LANG" value="C"/>195 <arg value="up"/>196 <arg value="../dist/${plugin.jar}"/>197 </exec>198 </target>199 <!--200 ** commits the plugin.jar201 -->202 <target name="commit-dist">203 <echo>204 ***** Properties of published ${plugin.jar} *****205 Commit message : '${commit.message}'206 Plugin-Mainversion: ${plugin.main.version}207 JOSM build version: ${coreversion.info.entry.revision}208 Plugin-Version : ${version.entry.commit.revision}209 ***** / Properties of published ${plugin.jar} *****210 20 211 Now commiting ${plugin.jar} ... 212 </echo> 213 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="true" failonerror="true"> 214 <env key="LANG" value="C"/> 215 <arg value="-m '${commit.message}'"/> 216 <arg value="commit"/> 217 <arg value="${plugin.jar}"/> 218 </exec> 219 </target> 220 <!-- ** make sure svn is present as a command line tool ** --> 221 <target name="ensure-svn-present"> 222 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code"> 223 <env key="LANG" value="C"/> 224 <arg value="--version"/> 225 </exec> 226 <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system."> 227 <!-- return code not set at all? Most likely svn isn't installed --> 228 <condition> 229 <not> 230 <isset property="svn.exit.code"/> 231 </not> 232 </condition> 233 </fail> 234 <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system."> 235 <!-- error code from SVN? Most likely svn is not what we are looking on this system --> 236 <condition> 237 <isfailure code="${svn.exit.code}"/> 238 </condition> 239 </fail> 240 </target> 241 <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist"> 242 </target> 21 <property name="plugin.author" value="Marko Mäkelä"/> 22 <property name="plugin.class" value="org.openstreetmap.josm.plugins.wayselector.WaySelectorPlugin"/> 23 <property name="plugin.description" value="Select a sequence of non-branching connected ways"/> 24 <property name="plugin.icon" value="images/way-select.png"/> 25 <property name="plugin.link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/WaySelectorPlugin"/> 26 27 <!-- ** include targets that all plugins have in common ** --> 28 <import file="../build-common.xml"/> 29 243 30 </project> -
Property svn:mime-type
set to
-
applications/editors/josm/plugins/wms-turbo-challenge2/build.xml
-
Property svn:mime-type
set to
text/xml
-
Property svn:mime-type
set to
Note:
See TracChangeset
for help on using the changeset viewer.