Changeset 26174 in osm for applications/editors/josm/plugins/rgisopen
- Timestamp:
- 2011-06-25T19:02:31+02:00 (13 years ago)
- Location:
- applications/editors/josm/plugins/rgisopen
- Files:
-
- 20 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/rgisopen/build.xml
r23351 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="rgisopen" default="dist" basedir="."> 31 32 31 <!-- enter the SVN commit message --> 33 <property name="commit.message" value="New plugin, rgisopen" 32 <property name="commit.message" value="New plugin, rgisopen"/> 34 33 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 35 <property name="plugin.main.version" value="3400" /> 36 37 34 <property name="plugin.main.version" value="3400"/> 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="../../josm-latest.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 ********************************************************** … … 84 78 <fileset dir="images"/> 85 79 </copy> 80 <copy todir="${plugin.build.dir}/data"> 81 <fileset dir="data"/> 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> … … 108 105 <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/> 109 106 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 110 107 <attribute name="Plugin-Requires" value="PicLayer"/> 111 108 </manifest> 112 109 </jar> 113 110 </target> 114 115 111 <!-- 116 112 ********************************************************** … … 121 117 --> 122 118 <target name="revision"> 123 124 119 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false"> 125 120 <env key="LANG" value="C"/> … … 131 126 <delete file="REVISION"/> 132 127 </target> 133 134 128 <!-- 135 129 ********************************************************** … … 141 135 <delete file="${plugin.jar}"/> 142 136 </target> 143 144 137 <!-- 145 138 ********************************************************** … … 156 149 <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/> 157 150 </target> 158 159 160 151 <!-- 161 152 ************************** Publishing the plugin *********************************** … … 176 167 <echo>Building against core revision ${coreversion.info.entry.revision}.</echo> 177 168 <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo> 178 <delete file="core.info.xml" /> 179 </target> 180 169 <delete file="core.info.xml"/> 170 </target> 181 171 <!-- 182 172 ** commits the source tree for this plugin … … 191 181 </exec> 192 182 </target> 193 194 183 <!-- 195 184 ** updates (svn up) the source tree for this plugin … … 209 198 </exec> 210 199 </target> 211 212 200 <!-- 213 201 ** commits the plugin.jar … … 231 219 </exec> 232 220 </target> 233 234 221 <!-- ** make sure svn is present as a command line tool ** --> 235 222 <target name="ensure-svn-present"> 236 223 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code"> 237 <env key="LANG" value="C" 238 <arg value="--version" 224 <env key="LANG" value="C"/> 225 <arg value="--version"/> 239 226 </exec> 240 227 <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system."> … … 242 229 <condition> 243 230 <not> 244 <isset property="svn.exit.code" 231 <isset property="svn.exit.code"/> 245 232 </not> 246 233 </condition> … … 249 236 <!-- error code from SVN? Most likely svn is not what we are looking on this system --> 250 237 <condition> 251 <isfailure code="${svn.exit.code}" 238 <isfailure code="${svn.exit.code}"/> 252 239 </condition> 253 240 </fail> 254 241 </target> 255 256 242 <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist"> 257 243 </target>
Note:
See TracChangeset
for help on using the changeset viewer.