Changeset 26174 in osm for applications/editors/josm/plugins/waypoint_search/build.xml
- Timestamp:
- 2011-06-25T19:02:31+02:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/waypoint_search/build.xml
r25191 r26174 1 <?xml version="1.0" encoding=" UTF-8"?>1 <?xml version="1.0" encoding="utf-8"?> 2 2 <!-- 3 3 ** This is a template build file for a JOSM plugin. … … 29 29 --> 30 30 <project name="waypoint_search" default="dist" basedir="."> 31 32 31 <!-- enter the SVN commit message --> 33 <property name="commit.message" value="bugfix of search when layer is added" 32 <property name="commit.message" value="bugfix of search when layer is added"/> 34 33 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 35 <property name="plugin.main.version" value="3835" /> 36 37 34 <property name="plugin.main.version" value="3835"/> 38 35 <!-- 39 36 ************************************************ 40 37 ** should not be necessary to change the following properties 41 38 --> 42 <property name="josm" 43 <property name="plugin.build.dir" 44 <property name="plugin.src.dir" 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"/> 45 42 <!-- this is the directory where the plugin jar is copied to --> 46 <property name="plugin.dist.dir" 43 <property name="plugin.dist.dir" value="../../dist"/> 47 44 <property name="ant.build.javac.target" value="1.6"/> 48 <property name="plugin.dist.dir" value="../../dist"/> 49 <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/> 50 45 <property name="plugin.dist.dir" value="../../dist"/> 46 <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/> 51 47 <!-- 52 48 ********************************************************** … … 57 53 <mkdir dir="${plugin.build.dir}"/> 58 54 </target> 59 60 55 <!-- 61 56 ********************************************************** … … 70 65 </javac> 71 66 </target> 72 73 67 <!-- 74 68 ********************************************************** … … 81 75 <fileset dir="images"/> 82 76 </copy> 77 <copy todir="${plugin.build.dir}/data"> 78 <fileset dir="data"/> 79 </copy> 83 80 <copy todir="${plugin.build.dir}"> 84 81 <fileset dir="."> 85 <include name="README" 86 <include name="LICENSE" 82 <include name="README"/> 83 <include name="LICENSE"/> 87 84 </fileset> 88 85 </copy> … … 107 104 </jar> 108 105 </target> 109 110 106 <!-- 111 107 ********************************************************** … … 115 111 ********************************************************** 116 112 --> 117 118 119 <target name="revision"> 120 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false"> 113 <target name="revision"> 114 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false"> 121 115 <env key="LANG" value="C"/> 122 116 <arg value="info"/> … … 125 119 </exec> 126 120 <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/> 127 <delete file="REVISION"/> 128 </target> 129 121 <delete file="REVISION"/> 122 </target> 130 123 <!-- 131 124 ********************************************************** … … 137 130 <delete file="${plugin.jar}"/> 138 131 </target> 139 140 132 <!-- 141 133 ********************************************************** … … 152 144 <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/> 153 145 </target> 154 155 156 146 <!-- 157 147 ************************** Publishing the plugin *********************************** … … 172 162 <echo>Building against core revision ${coreversion.info.entry.revision}.</echo> 173 163 <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo> 174 <delete file="core.info.xml" /> 175 </target> 176 164 <delete file="core.info.xml"/> 165 </target> 177 166 <!-- 178 167 ** commits the source tree for this plugin … … 187 176 </exec> 188 177 </target> 189 190 178 <!-- 191 179 ** updates (svn up) the source tree for this plugin … … 205 193 </exec> 206 194 </target> 207 208 195 <!-- 209 196 ** commits the plugin.jar … … 227 214 </exec> 228 215 </target> 229 230 216 <!-- ** make sure svn is present as a command line tool ** --> 231 217 <target name="ensure-svn-present"> 232 218 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code"> 233 <env key="LANG" value="C" 234 <arg value="--version" 219 <env key="LANG" value="C"/> 220 <arg value="--version"/> 235 221 </exec> 236 222 <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system."> … … 238 224 <condition> 239 225 <not> 240 <isset property="svn.exit.code" 226 <isset property="svn.exit.code"/> 241 227 </not> 242 228 </condition> … … 245 231 <!-- error code from SVN? Most likely svn is not what we are looking on this system --> 246 232 <condition> 247 <isfailure code="${svn.exit.code}" 233 <isfailure code="${svn.exit.code}"/> 248 234 </condition> 249 235 </fail> 250 236 </target> 251 252 237 <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist"> 253 238 </target>
Note:
See TracChangeset
for help on using the changeset viewer.