Changeset 27481 in osm for applications/editors/josm/plugins/smed/plugs/smed_about
- Timestamp:
- 2012-01-18T09:31:23+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.
