Changeset 27339 in osm for applications/editors
- Timestamp:
- 2011-12-29T00:03:23+01:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/FixAddresses/build.xml
r27327 r27339 140 140 <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/> 141 141 </target> 142 143 <!-- 144 ************************** Publishing the plugin *********************************** 145 --> 146 <!-- 147 ** extracts the JOSM release for the JOSM version in ../core and saves it in the 148 ** property ${coreversion.info.entry.revision} 149 ** 150 --> 151 <target name="core-info"> 152 <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false"> 153 <env key="LANG" value="C"/> 154 <arg value="info"/> 155 <arg value="--xml"/> 156 <arg value="../../core"/> 157 </exec> 158 <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/> 159 <echo>Building against core revision ${coreversion.info.entry.revision}.</echo> 160 <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo> 161 <delete file="core.info.xml"/> 162 </target> 163 <!-- 164 ** commits the source tree for this plugin 165 --> 166 <target name="commit-current"> 167 <echo>Commiting the plugin source with message '${commit.message}' ...</echo> 168 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false"> 169 <env key="LANG" value="C"/> 170 <arg value="commit"/> 171 <arg value="-m '${commit.message}'"/> 172 <arg value="."/> 173 </exec> 174 </target> 175 <!-- 176 ** updates (svn up) the source tree for this plugin 177 --> 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 <!-- 193 ** commits the plugin.jar 194 --> 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> 142 236 </project>
Note:
See TracChangeset
for help on using the changeset viewer.