Changeset 27481 in osm for applications
- Timestamp:
- 2012-01-18T09:31:23+01:00 (13 years ago)
- Location:
- applications/editors/josm/plugins/smed/plugs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed/plugs/harbour/build.xml
r27479 r27481 148 148 </delete> 149 149 </target> 150 <!--151 **********************************************************152 ** install - install the plugin in your local JOSM installation153 ** for developing154 **********************************************************155 -->156 <target name="install-develop" depends="dist">157 <property environment="env"/>158 <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins/splug" else="${user.home}/.josm/plugins/splug">159 <and>160 <os family="windows"/>161 </and>162 </condition>163 <delete>164 <fileset dir="${josm.plugins.dir}">165 <include name="${delete_string}"/>166 </fileset>167 </delete>168 <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>169 <delete file="${plugin.jar}"/>170 </target>171 <!--172 ************************** Publishing the plugin ***********************************173 -->174 <!--175 ** extracts the JOSM release for the JOSM version in ../core and saves it in the176 ** property ${coreversion.info.entry.revision}177 **178 -->179 <target name="core-info">180 <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">181 <env key="LANG" value="C"/>182 <arg value="info"/>183 <arg value="--xml"/>184 <arg value="../../core"/>185 </exec>186 <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>187 <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>188 <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>189 <delete file="core.info.xml"/>190 </target>191 <!--192 ** commits the source tree for this plugin193 -->194 <target name="commit-current">195 <echo>Commiting the plugin source with message '${commit.message}' ...</echo>196 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">197 <env key="LANG" value="C"/>198 <arg value="commit"/>199 <arg value="-m '${commit.message}'"/>200 <arg value="."/>201 </exec>202 </target>203 <!--204 ** updates (svn up) the source tree for this plugin205 -->206 <target name="update-current">207 <echo>Updating plugin source ...</echo>208 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">209 <env key="LANG" value="C"/>210 <arg value="up"/>211 <arg value="."/>212 </exec>213 <echo>Updating ${plugin.jar} ...</echo>214 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">215 <env key="LANG" value="C"/>216 <arg value="up"/>217 <arg value="../dist/${plugin.jar}"/>218 </exec>219 </target>220 <!--221 ** commits the plugin.jar222 -->223 <target name="commit-dist">224 <echo>225 ***** Properties of published ${plugin.jar} *****226 Commit message : '${commit.message}'227 Plugin-Mainversion: ${plugin.main.version}228 JOSM build version: ${coreversion.info.entry.revision}229 Plugin-Version : ${version.entry.commit.revision}230 ***** / Properties of published ${plugin.jar} *****231 232 Now commiting ${plugin.jar} ...233 </echo>234 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">235 <env key="LANG" value="C"/>236 <arg value="-m '${commit.message}'"/>237 <arg value="commit"/>238 <arg value="${plugin.jar}"/>239 </exec>240 </target>241 <!-- ** make sure svn is present as a command line tool ** -->242 <target name="ensure-svn-present">243 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">244 <env key="LANG" value="C"/>245 <arg value="--version"/>246 </exec>247 <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">248 <!-- return code not set at all? Most likely svn isn't installed -->249 <condition>250 <not>251 <isset property="svn.exit.code"/>252 </not>253 </condition>254 </fail>255 <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">256 <!-- error code from SVN? Most likely svn is not what we are looking on this system -->257 <condition>258 <isfailure code="${svn.exit.code}"/>259 </condition>260 </fail>261 </target>262 <target name="publish">263 <!-- depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist" -->264 <echo>No normal josm-plugin, publishing over smed !!!265 1. ant - dist to each subplugin266 2. ant publish to smed267 </echo>268 </target>269 150 </project> -
applications/editors/josm/plugins/smed/plugs/smed_about/build.xml
r27479 r27481 148 148 </delete> 149 149 </target> 150 <!--151 **********************************************************152 ** install - install the plugin in your local JOSM installation153 **********************************************************154 -->155 <target name="install-develop" depends="dist">156 <property environment="env"/>157 <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins/splug" else="${user.home}/.josm/plugins/splug">158 <and>159 <os family="windows"/>160 </and>161 </condition>162 <delete>163 <fileset dir="${josm.plugins.dir}">164 <include name="*${ant.project.name}.jar"/>165 </fileset>166 </delete>167 <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>168 <delete file="${plugin.jar}"/>169 </target>170 <!--171 ************************** Publishing the plugin ***********************************172 -->173 <!--174 ** extracts the JOSM release for the JOSM version in ../core and saves it in the175 ** property ${coreversion.info.entry.revision}176 **177 -->178 <target name="core-info">179 <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">180 <env key="LANG" value="C"/>181 <arg value="info"/>182 <arg value="--xml"/>183 <arg value="../../core"/>184 </exec>185 <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>186 <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>187 <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>188 <delete file="core.info.xml"/>189 </target>190 <!--191 ** commits the source tree for this plugin192 -->193 <target name="commit-current">194 <echo>Commiting the plugin source with message '${commit.message}' ...</echo>195 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">196 <env key="LANG" value="C"/>197 <arg value="commit"/>198 <arg value="-m '${commit.message}'"/>199 <arg value="."/>200 </exec>201 </target>202 <!--203 ** updates (svn up) the source tree for this plugin204 -->205 <target name="update-current">206 <echo>Updating plugin source ...</echo>207 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">208 <env key="LANG" value="C"/>209 <arg value="up"/>210 <arg value="."/>211 </exec>212 <echo>Updating ${plugin.jar} ...</echo>213 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">214 <env key="LANG" value="C"/>215 <arg value="up"/>216 <arg value="../dist/${plugin.jar}"/>217 </exec>218 </target>219 <!--220 ** commits the plugin.jar221 -->222 <target name="commit-dist">223 <echo>224 ***** Properties of published ${plugin.jar} *****225 Commit message : '${commit.message}'226 Plugin-Mainversion: ${plugin.main.version}227 JOSM build version: ${coreversion.info.entry.revision}228 Plugin-Version : ${version.entry.commit.revision}229 ***** / Properties of published ${plugin.jar} *****230 231 Now commiting ${plugin.jar} ...232 </echo>233 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">234 <env key="LANG" value="C"/>235 <arg value="-m '${commit.message}'"/>236 <arg value="commit"/>237 <arg value="${plugin.jar}"/>238 </exec>239 </target>240 <!-- ** make sure svn is present as a command line tool ** -->241 <target name="ensure-svn-present">242 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">243 <env key="LANG" value="C"/>244 <arg value="--version"/>245 </exec>246 <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">247 <!-- return code not set at all? Most likely svn isn't installed -->248 <condition>249 <not>250 <isset property="svn.exit.code"/>251 </not>252 </condition>253 </fail>254 <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">255 <!-- error code from SVN? Most likely svn is not what we are looking on this system -->256 <condition>257 <isfailure code="${svn.exit.code}"/>258 </condition>259 </fail>260 </target>261 <target name="publish">262 <!-- depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist" -->263 <echo>No normal josm-plugin, publishing over smed !!!264 1. ant - dist to each subplugin265 2. ant publish to smed266 </echo>267 </target>268 150 </project>
Note:
See TracChangeset
for help on using the changeset viewer.