Changeset 26174 in osm for applications/editors/josm/plugins/irsrectify
- Timestamp:
- 2011-06-25T19:02:31+02:00 (14 years ago)
- Location:
- applications/editors/josm/plugins/irsrectify
- Files:
-
- 11 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified applications/editors/josm/plugins/irsrectify/build.xml ¶
r25199 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="irsrectify" default="dist" basedir="."> 31 32 31 <!-- enter the SVN commit message --> 33 <property name="commit.message" value="New plugin - irsrectify" 32 <property name="commit.message" value="New plugin - irsrectify"/> 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.5"/> 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> … … 109 106 </jar> 110 107 </target> 111 112 108 <!-- 113 109 ********************************************************** … … 118 114 --> 119 115 <target name="revision"> 120 121 116 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false"> 122 117 <env key="LANG" value="C"/> … … 128 123 <delete file="REVISION"/> 129 124 </target> 130 131 125 <!-- 132 126 ********************************************************** … … 138 132 <delete file="${plugin.jar}"/> 139 133 </target> 140 141 134 <!-- 142 135 ********************************************************** … … 153 146 <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/> 154 147 </target> 155 156 157 148 <!-- 158 149 ************************** Publishing the plugin *********************************** … … 173 164 <echo>Building against core revision ${coreversion.info.entry.revision}.</echo> 174 165 <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo> 175 <delete file="core.info.xml" /> 176 </target> 177 166 <delete file="core.info.xml"/> 167 </target> 178 168 <!-- 179 169 ** commits the source tree for this plugin … … 188 178 </exec> 189 179 </target> 190 191 180 <!-- 192 181 ** updates (svn up) the source tree for this plugin … … 206 195 </exec> 207 196 </target> 208 209 197 <!-- 210 198 ** commits the plugin.jar … … 228 216 </exec> 229 217 </target> 230 231 218 <!-- ** make sure svn is present as a command line tool ** --> 232 219 <target name="ensure-svn-present"> 233 220 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code"> 234 <env key="LANG" value="C" 235 <arg value="--version" 221 <env key="LANG" value="C"/> 222 <arg value="--version"/> 236 223 </exec> 237 224 <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system."> … … 239 226 <condition> 240 227 <not> 241 <isset property="svn.exit.code" 228 <isset property="svn.exit.code"/> 242 229 </not> 243 230 </condition> … … 246 233 <!-- error code from SVN? Most likely svn is not what we are looking on this system --> 247 234 <condition> 248 <isfailure code="${svn.exit.code}" 235 <isfailure code="${svn.exit.code}"/> 249 236 </condition> 250 237 </fail> 251 238 </target> 252 253 239 <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist"> 254 240 </target>
Note:
See TracChangeset
for help on using the changeset viewer.