Changeset 28807 in osm for applications/editors/josm/plugins
- Timestamp:
- 2012-10-14T15:25:54+02:00 (12 years ago)
- Location:
- applications/editors/josm/plugins
- Files:
-
- 13 added
- 276 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/00_plugin_dir_template
-
Property svn:ignore
set to
build
-
Property svn:ignore
set to
-
applications/editors/josm/plugins/00_plugin_dir_template/build.xml
r28743 r28807 29 29 --> 30 30 <project name="myPluginName" default="dist" basedir="."> 31 31 32 <!-- enter the SVN commit message --> 32 33 <property name="commit.message" value="Commit message"/> 33 34 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 34 35 <property name="plugin.main.version" value="4394"/> 35 <!-- should not be necessary to change the following properties --> 36 <property name="josm" location="../../core/dist/josm-custom.jar"/> 37 <property name="plugin.build.dir" value="build"/> 38 <property name="plugin.src.dir" value="src"/> 39 <!-- this is the directory where the plugin jar is copied to --> 40 <property name="plugin.dist.dir" value="../../dist"/> 41 <property name="ant.build.javac.target" value="1.5"/> 42 <property name="plugin.dist.dir" value="../../dist"/> 43 <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/> 36 44 37 <!-- 45 38 ********************************************************** 46 ** in it - initializes the build39 ** include targets that all plugins have in common 47 40 ********************************************************** 48 41 --> 49 <target name="init"> 50 <mkdir dir="${plugin.build.dir}"/> 51 </target> 52 <!-- 53 ********************************************************** 54 ** compile - complies the source tree 55 ********************************************************** 56 --> 57 <target name="compile" depends="init"> 58 <echo message="compiling sources for ${plugin.jar} ... "/> 59 <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}"> 60 <compilerarg value="-Xlint:deprecation"/> 61 <compilerarg value="-Xlint:unchecked"/> 62 </javac> 63 </target> 42 <import file="../build-common.xml"/> 43 64 44 <!-- 65 45 ********************************************************** … … 105 85 </jar> 106 86 </target> 107 <!--108 **********************************************************109 ** revision - extracts the current revision number for the110 ** file build.number and stores it in the XML property111 ** version.*112 **********************************************************113 -->114 <target name="revision">115 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">116 <env key="LANG" value="C"/>117 <arg value="info"/>118 <arg value="--xml"/>119 <arg value="."/>120 </exec>121 <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>122 <delete file="REVISION"/>123 </target>124 <!--125 **********************************************************126 ** clean - clean up the build environment127 **********************************************************128 -->129 <target name="clean">130 <delete dir="${plugin.build.dir}"/>131 <delete file="${plugin.jar}"/>132 </target>133 <!--134 **********************************************************135 ** install - install the plugin in your local JOSM installation136 **********************************************************137 -->138 <target name="install" depends="dist">139 <property environment="env"/>140 <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">141 <and>142 <os family="windows"/>143 </and>144 </condition>145 <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>146 </target>147 <!--148 ************************** Publishing the plugin ***********************************149 -->150 <!--151 ** extracts the JOSM release for the JOSM version in ../core and saves it in the152 ** property ${coreversion.info.entry.revision}153 -->154 <target name="core-info">155 <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">156 <env key="LANG" value="C"/>157 <arg value="info"/>158 <arg value="--xml"/>159 <arg value="../../core"/>160 </exec>161 <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>162 <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>163 <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>164 <delete file="core.info.xml"/>165 </target>166 <!-- commits the source tree for this plugin -->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="commit"/>172 <arg value="-m '${commit.message}'"/>173 <arg value="."/>174 </exec>175 </target>176 <!-- updates (svn up) the source tree for this plugin -->177 <target name="update-current">178 <echo>Updating plugin source ...</echo>179 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">180 <env key="LANG" value="C"/>181 <arg value="up"/>182 <arg value="."/>183 </exec>184 <echo>Updating ${plugin.jar} ...</echo>185 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">186 <env key="LANG" value="C"/>187 <arg value="up"/>188 <arg value="../dist/${plugin.jar}"/>189 </exec>190 </target>191 <!-- commits the plugin.jar -->192 <target name="commit-dist">193 <echo>194 ***** Properties of published ${plugin.jar} *****195 Commit message : '${commit.message}'196 Plugin-Mainversion: ${plugin.main.version}197 JOSM build version: ${coreversion.info.entry.revision}198 Plugin-Version : ${version.entry.commit.revision}199 ***** / Properties of published ${plugin.jar} *****200 201 Now commiting ${plugin.jar} ...202 </echo>203 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">204 <env key="LANG" value="C"/>205 <arg value="-m '${commit.message}'"/>206 <arg value="commit"/>207 <arg value="${plugin.jar}"/>208 </exec>209 </target>210 <!-- make sure svn is present as a command line tool -->211 <target name="ensure-svn-present">212 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">213 <env key="LANG" value="C"/>214 <arg value="--version"/>215 </exec>216 <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">217 <!-- return code not set at all? Most likely svn isn't installed -->218 <condition>219 <not>220 <isset property="svn.exit.code"/>221 </not>222 </condition>223 </fail>224 <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">225 <!-- error code from SVN? Most likely svn is not what we are looking on this system -->226 <condition>227 <isfailure code="${svn.exit.code}"/>228 </condition>229 </fail>230 </target>231 <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">232 </target>233 87 </project> -
applications/editors/josm/plugins/build-common.xml
r28400 r28807 19 19 <!-- this is the directory where the plugin jar is copied to --> 20 20 <property name="plugin.dist.dir" value="../../dist"/> 21 <property name="ant.build.javac.target" value="1.5"/> 21 <property name="ant.build.javac.target" value="1.6"/> 22 <property name="ant.build.javac.source" value="1.6"/> 22 23 <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/> 23 24 … … 37 38 <target name="compile" depends="init"> 38 39 <echo message="compiling sources for ${plugin.jar} ..."/> 39 <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}" >40 <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}" includeantruntime="false"> 40 41 <compilerarg value="-Xlint:deprecation"/> 41 42 <compilerarg value="-Xlint:unchecked"/> … … 57 58 </exec> 58 59 <xmlproperty prefix="version" keepRoot="false" collapseAttributes="true"> 59 60 60 <propertyresource name="svn.revision.output"/> 61 </xmlproperty> 61 62 </target> 62 63 <!-- … … 176 177 </fail> 177 178 </target> 179 178 180 <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist"> 181 </target> 182 183 <target name="runjosm" depends="install"> 184 <java jar="${josm}" fork="true"> 185 </java> 186 </target> 187 188 <target name="profilejosm" depends="install"> 189 <nbprofiledirect> 190 </nbprofiledirect> 191 <java jar="${josm}" fork="true"> 192 <jvmarg value="${profiler.info.jvmargs.agent}"/> 193 </java> 179 194 </target> 180 195 </project> -
applications/editors/josm/plugins/build.xml
r28596 r28807 32 32 <ant antfile="build.xml" target="dist" dir="geotools"/> 33 33 <ant antfile="build.xml" target="dist" dir="globalsat"/> 34 <ant antfile="build.xml" target="dist" dir="gpsblam"/> 34 35 <ant antfile="build.xml" target="dist" dir="gpxfilter"/> 35 36 <ant antfile="build.xml" target="dist" dir="graphview"/> … … 56 57 <ant antfile="build.xml" target="dist" dir="native-password-manager"/> 57 58 <ant antfile="build.xml" target="dist" dir="nearclick"/> 59 <ant antfile="build.xml" target="dist" dir="no_more_mapping"/> 58 60 <ant antfile="build.xml" target="dist" dir="OpeningHoursEditor"/> 59 61 <ant antfile="build.xml" target="dist" dir="opendata"/> … … 61 63 <ant antfile="build.xml" target="dist" dir="openvisible"/> 62 64 <ant antfile="build.xml" target="dist" dir="osmarender"/> 63 <ant antfile="build.xml" target="dist" dir="pbf"/>64 65 <ant antfile="build.xml" target="dist" dir="pdfimport"/> 65 66 <ant antfile="build.xml" target="dist" dir="photo_geotagging"/> 66 67 <ant antfile="build.xml" target="dist" dir="piclayer"/> 67 68 <ant antfile="build.xml" target="dist" dir="plastic_laf"/> 69 <ant antfile="build.xml" target="dist" dir="poly"/> 68 70 <ant antfile="build.xml" target="dist" dir="print"/> 69 71 <ant antfile="build.xml" target="dist" dir="proj4j"/> … … 99 101 <target name="build_defect" depends="compile"> 100 102 <ant antfile="build.xml" target="dist" dir="trustosm"/> 103 <ant antfile="build.xml" target="dist" dir="pbf"/> 101 104 </target> 102 105 <target name="clean"> 106 <ant antfile="build.xml" target="clean" dir="00_plugin_dir_template"/> 103 107 <ant antfile="build.xml" target="clean" dir="addrinterpolation"/> 104 108 <ant antfile="build.xml" target="clean" dir="alignways"/> … … 123 127 <ant antfile="build.xml" target="clean" dir="geotools"/> 124 128 <ant antfile="build.xml" target="clean" dir="globalsat"/> 129 <ant antfile="build.xml" target="clean" dir="gpsblam"/> 125 130 <ant antfile="build.xml" target="clean" dir="gpxfilter"/> 126 131 <ant antfile="build.xml" target="clean" dir="graphview"/> … … 147 152 <ant antfile="build.xml" target="clean" dir="native-password-manager"/> 148 153 <ant antfile="build.xml" target="clean" dir="nearclick"/> 154 <ant antfile="build.xml" target="clean" dir="no_more_mapping"/> 149 155 <ant antfile="build.xml" target="clean" dir="OpeningHoursEditor"/> 150 156 <ant antfile="build.xml" target="clean" dir="opendata"/> … … 157 163 <ant antfile="build.xml" target="clean" dir="piclayer"/> 158 164 <ant antfile="build.xml" target="clean" dir="plastic_laf"/> 165 <ant antfile="build.xml" target="clean" dir="poly"/> 159 166 <ant antfile="build.xml" target="clean" dir="print"/> 160 167 <ant antfile="build.xml" target="clean" dir="proj4j"/> -
applications/editors/josm/plugins/gpsblam
-
Property svn:ignore
set to
build
-
Property svn:ignore
set to
-
applications/editors/josm/plugins/gpsblam/build.xml
r28744 r28807 29 29 --> 30 30 <project name="gpsblam" default="dist" basedir="."> 31 31 32 <!-- enter the SVN commit message --> 32 33 <property name="commit.message" value="Commit message"/> 33 34 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 34 35 <property name="plugin.main.version" value="4394"/> 35 <!-- should not be necessary to change the following properties --> 36 <property name="josm" location="../../core/dist/josm-custom.jar"/> 37 <property name="plugin.build.dir" value="build"/> 38 <property name="plugin.src.dir" value="src"/> 39 <!-- this is the directory where the plugin jar is copied to --> 40 <property name="plugin.dist.dir" value="../../dist"/> 41 <property name="ant.build.javac.target" value="1.5"/> 42 <property name="plugin.dist.dir" value="../../dist"/> 43 <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/> 36 44 37 <!-- 45 38 ********************************************************** 46 ** in it - initializes the build39 ** include targets that all plugins have in common 47 40 ********************************************************** 48 41 --> 49 <target name="init"> 50 <mkdir dir="${plugin.build.dir}"/> 51 </target> 52 <!-- 53 ********************************************************** 54 ** compile - complies the source tree 55 ********************************************************** 56 --> 57 <target name="compile" depends="init"> 58 <echo message="compiling sources for ${plugin.jar} ... "/> 59 <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}"> 60 <compilerarg value="-Xlint:deprecation"/> 61 <compilerarg value="-Xlint:unchecked"/> 62 </javac> 63 </target> 42 <import file="../build-common.xml"/> 43 64 44 <!-- 65 45 ********************************************************** … … 105 85 </jar> 106 86 </target> 107 <!--108 **********************************************************109 ** revision - extracts the current revision number for the110 ** file build.number and stores it in the XML property111 ** version.*112 **********************************************************113 -->114 <target name="revision">115 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">116 <env key="LANG" value="C"/>117 <arg value="info"/>118 <arg value="--xml"/>119 <arg value="."/>120 </exec>121 <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>122 <delete file="REVISION"/>123 </target>124 <!--125 **********************************************************126 ** clean - clean up the build environment127 **********************************************************128 -->129 <target name="clean">130 <delete dir="${plugin.build.dir}"/>131 <delete file="${plugin.jar}"/>132 </target>133 <!--134 **********************************************************135 ** install - install the plugin in your local JOSM installation136 **********************************************************137 -->138 <target name="install" depends="dist">139 <property environment="env"/>140 <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">141 <and>142 <os family="windows"/>143 </and>144 </condition>145 <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>146 </target>147 <!--148 ************************** Publishing the plugin ***********************************149 -->150 <!--151 ** extracts the JOSM release for the JOSM version in ../core and saves it in the152 ** property ${coreversion.info.entry.revision}153 -->154 <target name="core-info">155 <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">156 <env key="LANG" value="C"/>157 <arg value="info"/>158 <arg value="--xml"/>159 <arg value="../../core"/>160 </exec>161 <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>162 <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>163 <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>164 <delete file="core.info.xml"/>165 </target>166 <!-- commits the source tree for this plugin -->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="commit"/>172 <arg value="-m '${commit.message}'"/>173 <arg value="."/>174 </exec>175 </target>176 <!-- updates (svn up) the source tree for this plugin -->177 <target name="update-current">178 <echo>Updating plugin source ...</echo>179 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">180 <env key="LANG" value="C"/>181 <arg value="up"/>182 <arg value="."/>183 </exec>184 <echo>Updating ${plugin.jar} ...</echo>185 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">186 <env key="LANG" value="C"/>187 <arg value="up"/>188 <arg value="../dist/${plugin.jar}"/>189 </exec>190 </target>191 <!-- commits the plugin.jar -->192 <target name="commit-dist">193 <echo>194 ***** Properties of published ${plugin.jar} *****195 Commit message : '${commit.message}'196 Plugin-Mainversion: ${plugin.main.version}197 JOSM build version: ${coreversion.info.entry.revision}198 Plugin-Version : ${version.entry.commit.revision}199 ***** / Properties of published ${plugin.jar} *****200 201 Now commiting ${plugin.jar} ...202 </echo>203 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">204 <env key="LANG" value="C"/>205 <arg value="-m '${commit.message}'"/>206 <arg value="commit"/>207 <arg value="${plugin.jar}"/>208 </exec>209 </target>210 <!-- make sure svn is present as a command line tool -->211 <target name="ensure-svn-present">212 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">213 <env key="LANG" value="C"/>214 <arg value="--version"/>215 </exec>216 <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">217 <!-- return code not set at all? Most likely svn isn't installed -->218 <condition>219 <not>220 <isset property="svn.exit.code"/>221 </not>222 </condition>223 </fail>224 <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">225 <!-- error code from SVN? Most likely svn is not what we are looking on this system -->226 <condition>227 <isfailure code="${svn.exit.code}"/>228 </condition>229 </fail>230 </target>231 <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">232 </target>233 87 </project> -
applications/editors/josm/plugins/mapdust
- Property svn:ignore
-
old new 1 1 build 2 doc
-
- Property svn:ignore
-
applications/editors/josm/plugins/mapdust/build.xml
r27852 r28807 4 4 <property name="commit.message" value="MapDust bug reporter plugin"/> 5 5 <property name="plugin.main.version" value="4980"/> 6 <property name="josm" location="../../core/dist/josm-custom.jar"/> 7 <property name="plugin.build.dir" value="build/classes"/> 8 <property name="apidoc.dir" value="build/doc"/> 9 <property name="plugin.src.dir" value="src"/> 10 <property name="plugin.lib.dir" value="lib"/> 11 <property name="plugin.dist.dir" value="../../dist"/> 12 <property name="ant.build.javac.target" value="1.5"/> 13 <property name="plugin.dist.dir" value="../../dist"/> 14 <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/> 6 7 <property name="apidoc.dir" value="doc"/> 8 9 <!-- 10 ********************************************************** 11 ** include targets that all plugins have in common 12 ********************************************************** 13 --> 14 <import file="../build-common.xml"/> 15 15 16 <!-- classpath --> 16 17 <path id="classpath"> … … 18 19 <pathelement path="${josm}"/> 19 20 </path> 20 <!-- clean the build --> 21 <target name="clean"> 22 <delete dir="${plugin.build.dir}"/> 23 <delete file="${plugin.jar}"/> 24 </target> 25 <!-- initialize the build --> 26 <target name="init" depends="clean"> 27 <mkdir dir="${plugin.build.dir}"/> 28 </target> 29 <!-- compiles the sources --> 21 22 <!-- 23 ********************************************************** 24 ** compile - complies the source tree 25 ********************************************************** 26 --> 30 27 <target name="compile" depends="init"> 31 <echo message="compiling sources for ${plugin.jar} ..."/>32 <javac srcdir="src" classpathref="classpath" debug="true" destdir="${plugin.build.dir}" includeantruntime=" true" target="1.5" source="1.5">28 <echo message="compiling sources for ${plugin.jar} ..."/> 29 <javac srcdir="src" classpathref="classpath" debug="true" destdir="${plugin.build.dir}" includeantruntime="false"> 33 30 <compilerarg value="-Xlint:deprecation"/> 34 31 <compilerarg value="-Xlint:unchecked"/> 35 32 </javac> 36 33 </target> 34 35 <target name="clean"> 36 <delete dir="${plugin.build.dir}"/> 37 <delete dir="${apidoc.dir}"/> 38 <delete file="${plugin.jar}"/> 39 </target> 40 37 41 <!-- creates the javadocs --> 38 42 <target name="javadoc"> … … 45 49 </javadoc> 46 50 </target> 47 <!-- revision --> 48 <target name="revision"> 49 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false"> 50 <env key="LANG" value="C"/> 51 <arg value="info"/> 52 <arg value="--xml"/> 53 <arg value="."/> 54 </exec> 55 <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/> 56 <delete file="REVISION"/> 57 </target> 51 58 52 <!-- creates the .jar file of the plugin --> 59 53 <target name="dist" depends="compile,revision"> … … 80 74 <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.mapdust.MapdustPlugin"/> 81 75 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/> 82 <attribute name="Plugin-Description" value="The MapDust Plug-In shows the MapDust bug reports on the map. You can create, close,invalidate, re-open and commentbug reports by using this plugin."/>76 <attribute name="Plugin-Description" value="The MapDust Plug-In shows the MapDust bug reports on the map. You can create, close,invalidate, re-open and comment bug reports by using this plugin."/> 83 77 <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/MapDust"/> 84 78 <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/> … … 88 82 </jar> 89 83 </target> 90 <!-- installs the plugin -->91 <target name="install" depends="dist">92 <property environment="env"/>93 <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">94 <and>95 <os family="windows"/>96 </and>97 </condition>98 <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>99 </target>100 <!-- displays the information about the core josm -->101 <target name="core-info">102 <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">103 <env key="LANG" value="C"/>104 <arg value="info"/>105 <arg value="--xml"/>106 <arg value="../../core"/>107 </exec>108 <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>109 <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>110 <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>111 <delete file="core.info.xml"/>112 </target>113 <!-- commits the current sources -->114 <target name="commit-current">115 <echo>Commiting the plugin source with message '${commit.message}' ...</echo>116 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">117 <env key="LANG" value="C"/>118 <arg value="commit"/>119 <arg value="-m '${commit.message}'"/>120 <arg value="."/>121 </exec>122 </target>123 <!-- updates the plugin -->124 <target name="update-current">125 <echo>Updating plugin source ...</echo>126 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">127 <env key="LANG" value="C"/>128 <arg value="up"/>129 <arg value="."/>130 </exec>131 <echo>Updating ${plugin.jar} ...</echo>132 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">133 <env key="LANG" value="C"/>134 <arg value="up"/>135 <arg value="../dist/${plugin.jar}"/>136 </exec>137 </target>138 <!-- commit the .jar of the plugin -->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 <!-- ** make sure svn is present as a command line tool ** -->158 <target name="ensure-svn-present">159 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">160 <env key="LANG" value="C"/>161 <arg value="--version"/>162 </exec>163 <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">164 <!-- return code not set at all? Most likely svn isn't installed -->165 <condition>166 <not>167 <isset property="svn.exit.code"/>168 </not>169 </condition>170 </fail>171 <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">172 <!-- error code from SVN? Most likely svn is not what we are looking on this system -->173 <condition>174 <isfailure code="${svn.exit.code}"/>175 </condition>176 </fail>177 </target>178 <!-- publish the plugin -->179 <target name="publish" depends="ensure-svn-present,core-info,commit-current, update-current,clean,dist,commit-dist">180 </target>181 84 </project> -
applications/editors/josm/plugins/no_more_mapping
-
Property svn:ignore
set to
build
-
Property svn:ignore
set to
-
applications/editors/josm/plugins/no_more_mapping/build.xml
-
Property svn:mime-type
changed from
application/xml
totext/xml
r28783 r28807 29 29 --> 30 30 <project name="no_more_mapping" default="dist" basedir="."> 31 31 32 <!-- enter the SVN commit message --> 32 33 <property name="commit.message" value="Commit message"/> 33 34 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 34 35 <property name="plugin.main.version" value="4000"/> 35 <!-- should not be necessary to change the following properties --> 36 <property name="josm" location="../../core/dist/josm-custom.jar"/> 37 <property name="plugin.build.dir" value="build"/> 38 <property name="plugin.src.dir" value="src"/> 39 <!-- this is the directory where the plugin jar is copied to --> 40 <property name="plugin.dist.dir" value="../../dist"/> 41 <property name="ant.build.javac.source" value="1.6"/> 42 <property name="ant.build.javac.target" value="1.6"/> 43 <property name="plugin.dist.dir" value="../../dist"/> 44 <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/> 36 45 37 <!-- 46 38 ********************************************************** 47 ** in it - initializes the build39 ** include targets that all plugins have in common 48 40 ********************************************************** 49 41 --> 50 <target name="init"> 51 <mkdir dir="${plugin.build.dir}"/> 52 </target> 53 <!-- 54 ********************************************************** 55 ** compile - complies the source tree 56 ********************************************************** 57 --> 58 <target name="compile" depends="init"> 59 <echo message="compiling sources for ${plugin.jar} ... "/> 60 <javac classpath="${josm}" debug="true" destdir="${plugin.build.dir}" includeAntRuntime="false"> 61 <compilerarg value="-Xlint:deprecation"/> 62 <compilerarg value="-Xlint:unchecked"/> 63 <src path="src" /> 64 </javac> 65 </target> 42 <import file="../build-common.xml"/> 43 66 44 <!-- 67 45 ********************************************************** … … 107 85 </jar> 108 86 </target> 109 <!--110 **********************************************************111 ** revision - extracts the current revision number for the112 ** file build.number and stores it in the XML property113 ** version.*114 **********************************************************115 -->116 <target name="revision">117 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">118 <env key="LANG" value="C"/>119 <arg value="info"/>120 <arg value="--xml"/>121 <arg value="."/>122 </exec>123 <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>124 <delete file="REVISION"/>125 </target>126 <!--127 **********************************************************128 ** clean - clean up the build environment129 **********************************************************130 -->131 <target name="clean">132 <delete dir="${plugin.build.dir}"/>133 <delete file="${plugin.jar}"/>134 </target>135 <!--136 **********************************************************137 ** install - install the plugin in your local JOSM installation138 **********************************************************139 -->140 <target name="install" depends="dist">141 <property environment="env"/>142 <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">143 <and>144 <os family="windows"/>145 </and>146 </condition>147 <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>148 </target>149 <!--150 ************************** Publishing the plugin ***********************************151 -->152 <!--153 ** extracts the JOSM release for the JOSM version in ../core and saves it in the154 ** property ${coreversion.info.entry.revision}155 -->156 <target name="core-info">157 <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">158 <env key="LANG" value="C"/>159 <arg value="info"/>160 <arg value="--xml"/>161 <arg value="../../core"/>162 </exec>163 <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>164 <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>165 <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>166 <delete file="core.info.xml"/>167 </target>168 <!-- commits the source tree for this plugin -->169 <target name="commit-current">170 <echo>Commiting the plugin source with message '${commit.message}' ...</echo>171 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">172 <env key="LANG" value="C"/>173 <arg value="commit"/>174 <arg value="-m '${commit.message}'"/>175 <arg value="."/>176 </exec>177 </target>178 <!-- updates (svn up) the source tree for this plugin -->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 <!-- commits the plugin.jar -->194 <target name="commit-dist">195 <echo>196 ***** Properties of published ${plugin.jar} *****197 Commit message : '${commit.message}'198 Plugin-Mainversion: ${plugin.main.version}199 JOSM build version: ${coreversion.info.entry.revision}200 Plugin-Version : ${version.entry.commit.revision}201 ***** / Properties of published ${plugin.jar} *****202 203 Now commiting ${plugin.jar} ...204 </echo>205 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">206 <env key="LANG" value="C"/>207 <arg value="-m '${commit.message}'"/>208 <arg value="commit"/>209 <arg value="${plugin.jar}"/>210 </exec>211 </target>212 <!-- make sure svn is present as a command line tool -->213 <target name="ensure-svn-present">214 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">215 <env key="LANG" value="C"/>216 <arg value="--version"/>217 </exec>218 <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">219 <!-- return code not set at all? Most likely svn isn't installed -->220 <condition>221 <not>222 <isset property="svn.exit.code"/>223 </not>224 </condition>225 </fail>226 <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">227 <!-- error code from SVN? Most likely svn is not what we are looking on this system -->228 <condition>229 <isfailure code="${svn.exit.code}"/>230 </condition>231 </fail>232 </target>233 <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">234 </target>235 87 </project> -
Property svn:mime-type
changed from
-
applications/editors/josm/plugins/pbf/build.xml
r27300 r28807 29 29 --> 30 30 <project name="pbf" default="dist" basedir="."> 31 31 32 <!-- enter the SVN commit message --> 32 33 <property name="commit.message" value="Commit message"/> 33 34 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 34 35 <property name="plugin.main.version" value="4687"/> 35 <!-- should not be necessary to change the following properties --> 36 <property name="josm" location="../../core/dist/josm-custom.jar"/> 37 <property name="plugin.build.dir" value="build"/> 38 <property name="plugin.src.dir" value="src"/> 39 <!-- this is the directory where the plugin jar is copied to --> 40 <property name="plugin.dist.dir" value="../../dist"/> 41 <property name="ant.build.javac.source" value="1.6"/> 42 <property name="ant.build.javac.target" value="1.6"/> 43 <property name="plugin.dist.dir" value="../../dist"/> 44 <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/> 36 45 37 <!-- 46 38 ********************************************************** 47 ** in it - initializes the build39 ** include targets that all plugins have in common 48 40 ********************************************************** 49 41 --> 50 <target name="init"> 51 <mkdir dir="${plugin.build.dir}"/> 52 </target> 42 <import file="../build-common.xml"/> 43 53 44 <!-- 54 45 ********************************************************** … … 61 52 <compilerarg value="-Xlint:deprecation"/> 62 53 <compilerarg value="-Xlint:unchecked"/> 63 54 <src path="src" /> 64 55 <src path="gen" /> 65 56 </javac> … … 109 100 </jar> 110 101 </target> 111 <!--112 **********************************************************113 ** revision - extracts the current revision number for the114 ** file build.number and stores it in the XML property115 ** version.*116 **********************************************************117 -->118 <target name="revision">119 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">120 <env key="LANG" value="C"/>121 <arg value="info"/>122 <arg value="--xml"/>123 <arg value="."/>124 </exec>125 <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>126 <delete file="REVISION"/>127 </target>128 <!--129 **********************************************************130 ** clean - clean up the build environment131 **********************************************************132 -->133 <target name="clean">134 <delete dir="${plugin.build.dir}"/>135 <delete file="${plugin.jar}"/>136 </target>137 <!--138 **********************************************************139 ** install - install the plugin in your local JOSM installation140 **********************************************************141 -->142 <target name="install" depends="dist">143 <property environment="env"/>144 <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">145 <and>146 <os family="windows"/>147 </and>148 </condition>149 <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>150 </target>151 <!--152 ************************** Publishing the plugin ***********************************153 -->154 <!--155 ** extracts the JOSM release for the JOSM version in ../core and saves it in the156 ** property ${coreversion.info.entry.revision}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 <!-- commits the source tree for this plugin -->171 <target name="commit-current">172 <echo>Commiting the plugin source with message '${commit.message}' ...</echo>173 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">174 <env key="LANG" value="C"/>175 <arg value="commit"/>176 <arg value="-m '${commit.message}'"/>177 <arg value="."/>178 </exec>179 </target>180 <!-- updates (svn up) the source tree for this plugin -->181 <target name="update-current">182 <echo>Updating plugin source ...</echo>183 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">184 <env key="LANG" value="C"/>185 <arg value="up"/>186 <arg value="."/>187 </exec>188 <echo>Updating ${plugin.jar} ...</echo>189 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">190 <env key="LANG" value="C"/>191 <arg value="up"/>192 <arg value="../dist/${plugin.jar}"/>193 </exec>194 </target>195 <!-- commits the plugin.jar -->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="false">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 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>237 102 </project> -
applications/editors/josm/plugins/smed/build.xml
r27945 r28807 136 136 <target name="clean"> 137 137 <delete dir="${plugin.build.dir}"/> 138 <delete dir="${smed_core.dist.dir}"/> 139 <delete dir="${smed.dist.dir}"/> 138 140 <delete file="${plugin.jar}"/> 139 141 </target> -
applications/editors/josm/plugins/tag2link/build.xml
r27857 r28807 29 29 --> 30 30 <project name="tag2link" default="dist" basedir="."> 31 31 32 <!-- enter the SVN commit message --> 32 33 <property name="commit.message" value="Commit message"/> 33 34 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 34 35 <property name="plugin.main.version" value="4968"/> 35 <!-- should not be necessary to change the following properties --> 36 <property name="josm" location="../../core/dist/josm-custom.jar"/> 37 <property name="plugin.build.dir" value="build"/> 38 <property name="plugin.src.dir" value="src"/> 39 <!-- this is the directory where the plugin jar is copied to --> 40 <property name="plugin.dist.dir" value="../../dist"/> 41 <property name="ant.build.javac.source" value="1.6"/> 42 <property name="ant.build.javac.target" value="1.6"/> 43 <property name="plugin.dist.dir" value="../../dist"/> 44 <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/> 36 45 37 <!-- 46 38 ********************************************************** 47 ** in it - initializes the build39 ** include targets that all plugins have in common 48 40 ********************************************************** 49 41 --> 50 <target name="init"> 51 <mkdir dir="${plugin.build.dir}"/> 52 </target> 53 <!-- 54 ********************************************************** 55 ** compile - complies the source tree 56 ********************************************************** 57 --> 58 <target name="compile" depends="init"> 59 <echo message="compiling sources for ${plugin.jar} ... "/> 60 <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}" includeAntRuntime="false"> 61 <compilerarg value="-Xlint:deprecation"/> 62 <compilerarg value="-Xlint:unchecked"/> 63 </javac> 64 </target> 42 <import file="../build-common.xml"/> 43 65 44 <!-- 66 45 ********************************************************** … … 108 87 </jar> 109 88 </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 <target name="core-info">158 <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">159 <env key="LANG" value="C"/>160 <arg value="info"/>161 <arg value="--xml"/>162 <arg value="../../core"/>163 </exec>164 <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>165 <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>166 <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>167 <delete file="core.info.xml"/>168 </target>169 <!-- commits the source tree for this plugin -->170 <target name="commit-current">171 <echo>Commiting the plugin source with message '${commit.message}' ...</echo>172 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">173 <env key="LANG" value="C"/>174 <arg value="commit"/>175 <arg value="-m '${commit.message}'"/>176 <arg value="."/>177 </exec>178 </target>179 <!-- updates (svn up) the source tree for this plugin -->180 <target name="update-current">181 <echo>Updating plugin source ...</echo>182 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">183 <env key="LANG" value="C"/>184 <arg value="up"/>185 <arg value="."/>186 </exec>187 <echo>Updating ${plugin.jar} ...</echo>188 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">189 <env key="LANG" value="C"/>190 <arg value="up"/>191 <arg value="../dist/${plugin.jar}"/>192 </exec>193 </target>194 <!-- commits the plugin.jar -->195 <target name="commit-dist">196 <echo>197 ***** Properties of published ${plugin.jar} *****198 Commit message : '${commit.message}'199 Plugin-Mainversion: ${plugin.main.version}200 JOSM build version: ${coreversion.info.entry.revision}201 Plugin-Version : ${version.entry.commit.revision}202 ***** / Properties of published ${plugin.jar} *****203 204 Now commiting ${plugin.jar} ...205 </echo>206 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">207 <env key="LANG" value="C"/>208 <arg value="-m '${commit.message}'"/>209 <arg value="commit"/>210 <arg value="${plugin.jar}"/>211 </exec>212 </target>213 <!-- make sure svn is present as a command line tool -->214 <target name="ensure-svn-present">215 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">216 <env key="LANG" value="C"/>217 <arg value="--version"/>218 </exec>219 <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">220 <!-- return code not set at all? Most likely svn isn't installed -->221 <condition>222 <not>223 <isset property="svn.exit.code"/>224 </not>225 </condition>226 </fail>227 <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">228 <!-- error code from SVN? Most likely svn is not what we are looking on this system -->229 <condition>230 <isfailure code="${svn.exit.code}"/>231 </condition>232 </fail>233 </target>234 <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">235 </target>236 89 </project> -
applications/editors/josm/plugins/turnlanes/build.xml
r27927 r28807 29 29 --> 30 30 <project name="turnlanes" default="dist" basedir="."> 31 31 32 <!-- enter the SVN commit message --> 32 33 <property name="commit.message" value="fix toolbar warnings - toolbar still does not work"/> 33 34 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 34 35 <property name="plugin.main.version" value="5018"/> 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="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"/> 36 47 37 <!-- 48 38 ********************************************************** 49 ** in it - initializes the build39 ** include targets that all plugins have in common 50 40 ********************************************************** 51 41 --> 52 <target name="init"> 53 <mkdir dir="${plugin.build.dir}"/> 54 </target> 55 <!-- 56 ********************************************************** 57 ** compile - complies the source tree 58 ********************************************************** 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}"> 63 <compilerarg value="-Xlint:deprecation"/> 64 <compilerarg value="-Xlint:unchecked"/> 65 </javac> 66 </target> 42 <import file="../build-common.xml"/> 43 67 44 <!-- 68 45 ********************************************************** … … 88 65 </copy> 89 66 <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}"> 90 67 <!-- 91 68 ************************************************ 92 69 ** configure these properties. Most of them will be copied to the plugins … … 95 72 ** 96 73 ************************************************ 97 -->74 --> 98 75 <manifest> 99 76 <attribute name="Author" value="Benjamin Schulz"/> … … 108 85 </jar> 109 86 </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 211 Now commiting ${plugin.jar} ...212 </echo>213 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">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>243 87 </project> -
applications/editors/josm/plugins/turnrestrictions/build.xml
r27876 r28807 33 33 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 34 34 <property name="plugin.main.version" value="4980"/> 35 36 <property name="test.build.dir" value="test/build"/> 37 <property name="eclipse.plugin.dir" value="C:\software\eclipse-3.6.1\plugins"/> 38 35 39 <!-- 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="ant.build.javac.target" value="1.6"/> 45 <property name="plugin.jar" value="../../dist/${ant.project.name}.jar"/> 46 <property name="test.build.dir" value="test/build"/> 40 ********************************************************** 41 ** include targets that all plugins have in common 42 ********************************************************** 43 --> 44 <import file="../build-common.xml"/> 45 47 46 <!-- 48 47 ********************************************************** … … 54 53 <mkdir dir="${test.build.dir}"/> 55 54 </target> 55 56 56 <!-- 57 57 ********************************************************** 58 ** c ompile - complies the source tree58 ** clean - clean up the build environment 59 59 ********************************************************** 60 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> 61 <target name="clean"> 62 <delete dir="${plugin.build.dir}"/> 63 <delete dir="${test.build.dir}"/> 64 <delete file="${plugin.jar}"/> 67 65 </target> 66 68 67 <!-- 69 68 ********************************************************** … … 89 88 </copy> 90 89 <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}"> 91 90 <!-- 92 91 ************************************************ 93 92 ** configure these properties. Most of them will be copied to the plugins … … 96 95 ** 97 96 ************************************************ 98 -->97 --> 99 98 <manifest> 100 99 <attribute name="Author" value="Karl Guggisberg"/> … … 109 108 </jar> 110 109 </target> 111 <!--112 **********************************************************113 ** revision - extracts the current revision number for the114 ** file build.number and stores it in the XML property115 ** version.*116 **********************************************************117 -->118 <target name="revision">119 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">120 <env key="LANG" value="C"/>121 <arg value="info"/>122 <arg value="--xml"/>123 <arg value="."/>124 </exec>125 <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>126 <delete file="REVISION"/>127 </target>128 <!--129 **********************************************************130 ** clean - clean up the build environment131 **********************************************************132 -->133 <target name="clean">134 <delete dir="${plugin.build.dir}"/>135 <delete file="${plugin.jar}"/>136 </target>137 <!--138 **********************************************************139 ** install - install the plugin in your local JOSM installation140 **********************************************************141 -->142 <target name="install" depends="dist">143 <property environment="env"/>144 <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">145 <and>146 <os family="windows"/>147 </and>148 </condition>149 <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>150 </target>151 <!--152 ************************** Publishing the plugin ***********************************153 -->154 <!--155 ** extracts the JOSM release for the JOSM version in ../core and saves it in the156 ** property ${coreversion.info.entry.revision}157 **158 -->159 <target name="core-info">160 <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">161 <env key="LANG" value="C"/>162 <arg value="info"/>163 <arg value="--xml"/>164 <arg value="../../core"/>165 </exec>166 <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>167 <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>168 <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>169 <delete file="core.info.xml"/>170 </target>171 <!--172 ** commits the source tree for this plugin173 -->174 <target name="commit-current">175 <echo>Commiting the plugin source with message '${commit.message}' ...</echo>176 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">177 <env key="LANG" value="C"/>178 <arg value="commit"/>179 <arg value="-m '${commit.message}'"/>180 <arg value="."/>181 </exec>182 </target>183 <!--184 ** updates (svn up) the source tree for this plugin185 -->186 <target name="update-current">187 <echo>Updating plugin source ...</echo>188 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">189 <env key="LANG" value="C"/>190 <arg value="up"/>191 <arg value="."/>192 </exec>193 <echo>Updating ${plugin.jar} ...</echo>194 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">195 <env key="LANG" value="C"/>196 <arg value="up"/>197 <arg value="../dist/${plugin.jar}"/>198 </exec>199 </target>200 <!--201 ** commits the plugin.jar202 -->203 <target name="commit-dist">204 <echo>205 ***** Properties of published ${plugin.jar} *****206 Commit message : '${commit.message}'207 Plugin-Mainversion: ${plugin.main.version}208 JOSM build version: ${coreversion.info.entry.revision}209 Plugin-Version : ${version.entry.commit.revision}210 ***** / Properties of published ${plugin.jar} *****211 110 212 Now commiting ${plugin.jar} ...213 </echo>214 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">215 <env key="LANG" value="C"/>216 <arg value="-m '${commit.message}'"/>217 <arg value="commit"/>218 <arg value="${plugin.jar}"/>219 </exec>220 </target>221 <!-- ** make sure svn is present as a command line tool ** -->222 <target name="ensure-svn-present">223 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">224 <env key="LANG" value="C"/>225 <arg value="--version"/>226 </exec>227 <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">228 <!-- return code not set at all? Most likely svn isn't installed -->229 <condition>230 <not>231 <isset property="svn.exit.code"/>232 </not>233 </condition>234 </fail>235 <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">236 <!-- error code from SVN? Most likely svn is not what we are looking on this system -->237 <condition>238 <isfailure code="${svn.exit.code}"/>239 </condition>240 </fail>241 </target>242 <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">243 </target>244 111 <!-- ************************************************************************************ --> 245 112 <!-- * Targets for compiling and running tests --> 246 113 <!-- ************************************************************************************ --> 247 <property name="eclipse.plugin.dir" value="C:\software\eclipse-3.6.1\plugins"/>248 114 <path id="groovy.path"> 249 115 <pathelement location="${eclipse.plugin.dir}/org.codehaus.groovy_1.7.5.xx-20100926-2000-e36-RC1\lib\groovy-all-1.7.5.jar"/> -
applications/editors/josm/plugins/undelete/build.xml
r28376 r28807 29 29 --> 30 30 <project name="undelete" default="dist" basedir="."> 31 31 32 <!-- enter the SVN commit message --> 32 33 <property name="commit.message" value="adapt to core changes (backwards compatible)"/> 33 34 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 34 35 <property name="plugin.main.version" value="5211"/> 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="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"/> 36 47 37 <!-- 48 38 ********************************************************** 49 ** in it - initializes the build39 ** include targets that all plugins have in common 50 40 ********************************************************** 51 41 --> 52 <target name="init"> 53 <mkdir dir="${plugin.build.dir}"/> 54 </target> 55 <!-- 56 ********************************************************** 57 ** compile - complies the source tree 58 ********************************************************** 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}"> 63 <compilerarg value="-Xlint:deprecation"/> 64 <compilerarg value="-Xlint:unchecked"/> 65 </javac> 66 </target> 42 <import file="../build-common.xml"/> 43 67 44 <!-- 68 45 ********************************************************** … … 85 62 </copy> 86 63 <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}"> 87 64 <!-- 88 65 ************************************************ 89 66 ** configure these properties. Most of them will be copied to the plugins … … 92 69 ** 93 70 ************************************************ 94 -->71 --> 95 72 <manifest> 96 73 <attribute name="Author" value="Nakor"/> … … 104 81 </jar> 105 82 </target> 106 <!--107 **********************************************************108 ** revision - extracts the current revision number for the109 ** file build.number and stores it in the XML property110 ** version.*111 **********************************************************112 -->113 <target name="revision">114 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">115 <env key="LANG" value="C"/>116 <arg value="info"/>117 <arg value="--xml"/>118 <arg value="."/>119 </exec>120 <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>121 <delete file="REVISION"/>122 </target>123 <!--124 **********************************************************125 ** clean - clean up the build environment126 **********************************************************127 -->128 <target name="clean">129 <delete dir="${plugin.build.dir}"/>130 <delete file="${plugin.jar}"/>131 </target>132 <!--133 **********************************************************134 ** install - install the plugin in your local JOSM installation135 **********************************************************136 -->137 <target name="install" depends="dist">138 <property environment="env"/>139 <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">140 <and>141 <os family="windows"/>142 </and>143 </condition>144 <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>145 </target>146 <!--147 ************************** Publishing the plugin ***********************************148 -->149 <!--150 ** extracts the JOSM release for the JOSM version in ../core and saves it in the151 ** property ${coreversion.info.entry.revision}152 **153 -->154 <target name="core-info">155 <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">156 <env key="LANG" value="C"/>157 <arg value="info"/>158 <arg value="--xml"/>159 <arg value="../../core"/>160 </exec>161 <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>162 <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>163 <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>164 <delete file="core.info.xml"/>165 </target>166 <!--167 ** commits the source tree for this plugin168 -->169 <target name="commit-current">170 <echo>Commiting the plugin source with message '${commit.message}' ...</echo>171 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">172 <env key="LANG" value="C"/>173 <arg value="commit"/>174 <arg value="-m '${commit.message}'"/>175 <arg value="."/>176 </exec>177 </target>178 <!--179 ** updates (svn up) the source tree for this plugin180 -->181 <target name="update-current">182 <echo>Updating plugin source ...</echo>183 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">184 <env key="LANG" value="C"/>185 <arg value="up"/>186 <arg value="."/>187 </exec>188 <echo>Updating ${plugin.jar} ...</echo>189 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">190 <env key="LANG" value="C"/>191 <arg value="up"/>192 <arg value="../dist/${plugin.jar}"/>193 </exec>194 </target>195 <!--196 ** commits the plugin.jar197 -->198 <target name="commit-dist">199 <echo>200 ***** Properties of published ${plugin.jar} *****201 Commit message : '${commit.message}'202 Plugin-Mainversion: ${plugin.main.version}203 JOSM build version: ${coreversion.info.entry.revision}204 Plugin-Version : ${version.entry.commit.revision}205 ***** / Properties of published ${plugin.jar} *****206 207 Now commiting ${plugin.jar} ...208 </echo>209 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">210 <env key="LANG" value="C"/>211 <arg value="-m '${commit.message}'"/>212 <arg value="commit"/>213 <arg value="${plugin.jar}"/>214 </exec>215 </target>216 <!-- ** make sure svn is present as a command line tool ** -->217 <target name="ensure-svn-present">218 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">219 <env key="LANG" value="C"/>220 <arg value="--version"/>221 </exec>222 <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">223 <!-- return code not set at all? Most likely svn isn't installed -->224 <condition>225 <not>226 <isset property="svn.exit.code"/>227 </not>228 </condition>229 </fail>230 <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">231 <!-- error code from SVN? Most likely svn is not what we are looking on this system -->232 <condition>233 <isfailure code="${svn.exit.code}"/>234 </condition>235 </fail>236 </target>237 <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">238 </target>239 83 </project> -
applications/editors/josm/plugins/utilsplugin2/build.xml
r28556 r28807 29 29 --> 30 30 <project name="utilsplugin2" default="dist" basedir="."> 31 31 32 <!-- enter the SVN commit message --> 32 33 <property name="commit.message" value="Utilsplugin2: SplitObjects exception fix when closed way only is selected"/> 33 34 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 34 35 <property name="plugin.main.version" value="4980"/> 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="ant.build.javac.target" value="1.5"/> 45 <property name="ant.build.javac.source" value="1.5"/> 46 <property name="plugin.dist.dir" value="../../dist"/> 47 <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/> 36 48 37 <!-- 49 38 ********************************************************** 50 ** in it - initializes the build39 ** include targets that all plugins have in common 51 40 ********************************************************** 52 41 --> 53 <target name="init"> 54 <mkdir dir="${plugin.build.dir}"/> 55 </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> 42 <import file="../build-common.xml"/> 43 68 44 <!-- 69 45 ********************************************************** … … 88 64 </copy> 89 65 <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}"> 90 66 <!-- 91 67 ************************************************ 92 68 ** configure these properties. Most of them will be copied to the plugins … … 95 71 ** 96 72 ************************************************ 97 -->73 --> 98 74 <manifest> 99 75 <attribute name="Author" value="Kalle Lampila, Upliner, and others"/> … … 108 84 </jar> 109 85 </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 211 Now commiting ${plugin.jar} ...212 </echo>213 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">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>243 <target name="runjosm" depends="install">244 <java jar="${josm}" fork="true">245 <arg line="e:/test.osm"/>246 </java>247 </target>248 249 250 <target name="profilejosm" depends="install">251 <nbprofiledirect>252 </nbprofiledirect>253 <java jar="${josm}" fork="true">254 <arg line="e:/test.osm"/>255 <jvmarg value="${profiler.info.jvmargs.agent}"/>256 </java>257 </target>258 86 </project> -
applications/editors/josm/plugins/videomapping/build.xml
r28289 r28807 55 55 <pathelement location="${log4j}"/> 56 56 </path> 57 <!--58 **********************************************************59 ** compile - complies the source tree60 ** Overrides the target from build-common.xml61 **********************************************************62 -->63 <target name="compile" depends="init">64 <echo message="compiling sources for ${plugin.jar} ..."/>65 <javac srcdir="src" classpathref="classpath" debug="true" destdir="${plugin.build.dir}">66 <compilerarg value="-Xlint:deprecation"/>67 <compilerarg value="-Xlint:unchecked"/>68 </javac>69 </target>70 57 71 58 <!-- -
applications/editors/josm/plugins/wikipedia/build.xml
r28481 r28807 29 29 --> 30 30 <project name="wikipedia" default="dist" basedir="."> 31 31 32 <!-- enter the SVN commit message --> 32 33 <property name="commit.message" value="Commit message"/> 33 34 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 34 35 <property name="plugin.main.version" value="5089"/> 35 <!-- should not be necessary to change the following properties --> 36 <property name="josm" location="../../core/dist/josm-custom.jar"/> 37 <property name="plugin.build.dir" value="build"/> 38 <property name="plugin.src.dir" value="src"/> 39 <!-- this is the directory where the plugin jar is copied to --> 40 <property name="plugin.dist.dir" value="../../dist"/> 41 <property name="ant.build.javac.target" value="1.6"/> 42 <property name="ant.build.javac.source" value="1.6"/> 43 <property name="plugin.dist.dir" value="../../dist"/> 44 <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/> 36 45 37 <!-- 46 38 ********************************************************** 47 ** in it - initializes the build39 ** include targets that all plugins have in common 48 40 ********************************************************** 49 41 --> 50 <target name="init"> 51 <mkdir dir="${plugin.build.dir}"/> 52 </target> 53 <!-- 54 ********************************************************** 55 ** compile - complies the source tree 56 ********************************************************** 57 --> 58 <target name="compile" depends="init"> 59 <echo message="compiling sources for ${plugin.jar} ... "/> 60 <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}"> 61 <compilerarg value="-Xlint:deprecation"/> 62 <compilerarg value="-Xlint:unchecked"/> 63 </javac> 64 </target> 42 <import file="../build-common.xml"/> 43 65 44 <!-- 66 45 ********************************************************** … … 106 85 </jar> 107 86 </target> 108 <!--109 **********************************************************110 ** revision - extracts the current revision number for the111 ** file build.number and stores it in the XML property112 ** version.*113 **********************************************************114 -->115 <target name="revision">116 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">117 <env key="LANG" value="C"/>118 <arg value="info"/>119 <arg value="--xml"/>120 <arg value="."/>121 </exec>122 <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>123 <delete file="REVISION"/>124 </target>125 <!--126 **********************************************************127 ** clean - clean up the build environment128 **********************************************************129 -->130 <target name="clean">131 <delete dir="${plugin.build.dir}"/>132 <delete file="${plugin.jar}"/>133 </target>134 <!--135 **********************************************************136 ** install - install the plugin in your local JOSM installation137 **********************************************************138 -->139 <target name="install" depends="dist">140 <property environment="env"/>141 <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">142 <and>143 <os family="windows"/>144 </and>145 </condition>146 <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>147 </target>148 <!--149 ************************** Publishing the plugin ***********************************150 -->151 <!--152 ** extracts the JOSM release for the JOSM version in ../core and saves it in the153 ** property ${coreversion.info.entry.revision}154 -->155 <target name="core-info">156 <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">157 <env key="LANG" value="C"/>158 <arg value="info"/>159 <arg value="--xml"/>160 <arg value="../../core"/>161 </exec>162 <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>163 <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>164 <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>165 <delete file="core.info.xml"/>166 </target>167 <!-- commits the source tree for this plugin -->168 <target name="commit-current">169 <echo>Commiting the plugin source with message '${commit.message}' ...</echo>170 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">171 <env key="LANG" value="C"/>172 <arg value="commit"/>173 <arg value="-m '${commit.message}'"/>174 <arg value="."/>175 </exec>176 </target>177 <!-- updates (svn up) the source tree for this plugin -->178 <target name="update-current">179 <echo>Updating plugin source ...</echo>180 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">181 <env key="LANG" value="C"/>182 <arg value="up"/>183 <arg value="."/>184 </exec>185 <echo>Updating ${plugin.jar} ...</echo>186 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">187 <env key="LANG" value="C"/>188 <arg value="up"/>189 <arg value="../dist/${plugin.jar}"/>190 </exec>191 </target>192 <!-- commits the plugin.jar -->193 <target name="commit-dist">194 <echo>195 ***** Properties of published ${plugin.jar} *****196 Commit message : '${commit.message}'197 Plugin-Mainversion: ${plugin.main.version}198 JOSM build version: ${coreversion.info.entry.revision}199 Plugin-Version : ${version.entry.commit.revision}200 ***** / Properties of published ${plugin.jar} *****201 202 Now commiting ${plugin.jar} ...203 </echo>204 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">205 <env key="LANG" value="C"/>206 <arg value="-m '${commit.message}'"/>207 <arg value="commit"/>208 <arg value="${plugin.jar}"/>209 </exec>210 </target>211 <!-- make sure svn is present as a command line tool -->212 <target name="ensure-svn-present">213 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">214 <env key="LANG" value="C"/>215 <arg value="--version"/>216 </exec>217 <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">218 <!-- return code not set at all? Most likely svn isn't installed -->219 <condition>220 <not>221 <isset property="svn.exit.code"/>222 </not>223 </condition>224 </fail>225 <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">226 <!-- error code from SVN? Most likely svn is not what we are looking on this system -->227 <condition>228 <isfailure code="${svn.exit.code}"/>229 </condition>230 </fail>231 </target>232 <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">233 </target>234 87 </project> -
applications/editors/josm/plugins/wms-turbo-challenge2/build.xml
r27019 r28807 10 10 --> 11 11 <project name="wms-turbo-challenge2" default="dist" basedir="."> 12 <property name="josm" location="../../core/dist/josm-custom.jar"/> 13 <property name="plugin.build.dir" value="build"/> 14 <property name="plugin.src.dir" value="src"/> 15 <!-- this is the directory where the plugin jar is copied to --> 16 <property name="ant.build.javac.target" value="1.5"/> 17 <property name="plugin.dist.dir" value="../../dist"/> 18 <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/> 12 13 <!-- enter the SVN commit message --> 14 <property name="commit.message" value="Commit message"/> 15 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 16 <property name="plugin.main.version" value="4549"/> 17 19 18 <!-- 20 19 ********************************************************** 21 ** in it - initializes the build20 ** include targets that all plugins have in common 22 21 ********************************************************** 23 22 --> 24 <target name="init"> 25 <mkdir dir="${plugin.build.dir}"/> 26 </target> 27 <!-- 28 ********************************************************** 29 ** compile - compiles the source tree 30 ********************************************************** 31 --> 32 <target name="compile" depends="init"> 33 <echo message="compiling sources for ${plugin.jar} ... "/> 34 <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}"> 35 <compilerarg value="-Xlint:deprecation"/> 36 <compilerarg value="-Xlint:unchecked"/> 37 </javac> 38 </target> 23 <import file="../build-common.xml"/> 24 39 25 <!-- 40 26 ********************************************************** … … 67 53 <attribute name="Plugin-Icon" value="images/wmsracer.png"/> 68 54 <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/WMS_Racer"/> 69 <attribute name="Plugin-Mainversion" value=" 4549"/>55 <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/> 70 56 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 71 57 </manifest> 72 58 </jar> 73 59 </target> 74 <!--75 **********************************************************76 ** revision - extracts the current revision number for the77 ** file build.number and stores it in the XML property78 ** version.*79 **********************************************************80 -->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 <!--92 **********************************************************93 ** clean - clean up the build environment94 **********************************************************95 -->96 <target name="clean">97 <delete dir="${plugin.build.dir}"/>98 <delete file="${plugin.jar}"/>99 </target>100 <!--101 **********************************************************102 ** install - install the plugin in your local JOSM installation103 **********************************************************104 -->105 <target name="install" depends="dist">106 <property environment="env"/>107 <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">108 <and>109 <os family="windows"/>110 </and>111 </condition>112 <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>113 </target>114 60 </project>
Note:
See TracChangeset
for help on using the changeset viewer.