Changeset 26174 in osm for applications/editors/josm/plugins/reltoolbox
- Timestamp:
- 2011-06-25T19:02:31+02:00 (14 years ago)
- Location:
- applications/editors/josm/plugins/reltoolbox
- Files:
-
- 31 added
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/reltoolbox/build.xml
r25696 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="reltoolbox" default="dist" basedir="."> 31 32 31 <!-- enter the SVN commit message --> 33 <property name="commit.message" value="RelToolbox" 32 <property name="commit.message" value="RelToolbox"/> 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="plugin.dist.dir" value="/Users/Zverik/AppData/Roaming/JOSM/plugins"/--> 48 45 <property name="ant.build.javac.target" value="1.5"/> 49 <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/> 50 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 <fileset dir="src" includes="**/*.txt" 81 <fileset dir="src" includes="**/*.txt"/> 85 82 </copy> 86 83 <copy todir="${plugin.build.dir}"> 87 84 <fileset dir="."> 88 <include name="README" 89 <include name="LICENSE" 85 <include name="README"/> 86 <include name="LICENSE"/> 90 87 </fileset> 91 88 </copy> … … 113 110 </jar> 114 111 </target> 115 116 112 <!-- 117 113 ********************************************************** … … 122 118 --> 123 119 <target name="revision"> 124 125 120 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false"> 126 121 <env key="LANG" value="C"/> … … 132 127 <delete file="REVISION"/> 133 128 </target> 134 135 129 <!-- 136 130 ********************************************************** … … 142 136 <delete file="${plugin.jar}"/> 143 137 </target> 144 145 138 <!-- 146 139 ********************************************************** … … 157 150 <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/> 158 151 </target> 159 160 161 152 <!-- 162 153 ************************** Publishing the plugin *********************************** … … 177 168 <echo>Building against core revision ${coreversion.info.entry.revision}.</echo> 178 169 <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo> 179 <delete file="core.info.xml" /> 180 </target> 181 170 <delete file="core.info.xml"/> 171 </target> 182 172 <!-- 183 173 ** commits the source tree for this plugin … … 192 182 </exec> 193 183 </target> 194 195 184 <!-- 196 185 ** updates (svn up) the source tree for this plugin … … 210 199 </exec> 211 200 </target> 212 213 201 <!-- 214 202 ** commits the plugin.jar … … 232 220 </exec> 233 221 </target> 234 235 222 <!-- ** make sure svn is present as a command line tool ** --> 236 223 <target name="ensure-svn-present"> 237 224 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code"> 238 <env key="LANG" value="C" 239 <arg value="--version" 225 <env key="LANG" value="C"/> 226 <arg value="--version"/> 240 227 </exec> 241 228 <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system."> … … 243 230 <condition> 244 231 <not> 245 <isset property="svn.exit.code" 232 <isset property="svn.exit.code"/> 246 233 </not> 247 234 </condition> … … 250 237 <!-- error code from SVN? Most likely svn is not what we are looking on this system --> 251 238 <condition> 252 <isfailure code="${svn.exit.code}" 239 <isfailure code="${svn.exit.code}"/> 253 240 </condition> 254 241 </fail> 255 242 </target> 256 257 243 <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist"> 258 244 </target>
Note:
See TracChangeset
for help on using the changeset viewer.