Changeset 27462 in osm
- Timestamp:
- 2012-01-15T11:35:56+01:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed/build.xml
r27461 r27462 33 33 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 34 34 <property name="plugin.main.version" value="4549"/> 35 <!-- 36 ************************************************ 37 ** should not be necessary to change the following properties 38 --> 35 <!-- should not be necessary to change the following properties --> 39 36 <property name="josm" location="../../core/dist/josm-custom.jar"/> 40 37 <property name="plugin.build.dir" value="build/"/> … … 109 106 <attribute name="Plugin-Link" value="http://openseamap.org/"/> 110 107 <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/> 111 <!--112 <attribute name="Plugin-Version" value="23456"/>113 -->114 108 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 115 109 </manifest> … … 162 156 </target> 163 157 <!-- 164 ** commits the source tree for this plugin 165 --> 158 ************************** Publishing the plugin *********************************** 159 --> 160 <!-- 161 ** extracts the JOSM release for the JOSM version in ../core and saves it in the 162 ** property ${coreversion.info.entry.revision} 163 --> 164 <target name="core-info"> 165 <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false"> 166 <env key="LANG" value="C"/> 167 <arg value="info"/> 168 <arg value="--xml"/> 169 <arg value="../../core"/> 170 </exec> 171 <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/> 172 <echo>Building against core revision ${coreversion.info.entry.revision}.</echo> 173 <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo> 174 <delete file="core.info.xml"/> 175 </target> 176 <!-- commits the source tree for this plugin --> 166 177 <target name="commit-current"> 167 178 <echo>Commiting the plugin source with message '${commit.message}' ...</echo> … … 173 184 </exec> 174 185 </target> 175 <!-- 176 ** updates (svn up) the source tree for this plugin 177 --> 186 <!-- updates (svn up) the source tree for this plugin --> 178 187 <target name="update-current"> 179 188 <echo>Updating plugin source ...</echo> … … 190 199 </exec> 191 200 </target> 201 <!-- commits the plugin.jar --> 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> 192 243 </project>
Note:
See TracChangeset
for help on using the changeset viewer.