Changeset 26174 in osm for applications/editors/josm/plugins/proj4j
- Timestamp:
- 2011-06-25T19:02:31+02:00 (15 years ago)
- Location:
- applications/editors/josm/plugins/proj4j
- Files:
-
- 29 added
- 1 edited
-
build.xml (modified) (16 diffs)
-
data (added)
-
data/bg.lang (added)
-
data/cs.lang (added)
-
data/da.lang (added)
-
data/de.lang (added)
-
data/el.lang (added)
-
data/en.lang (added)
-
data/en_AU.lang (added)
-
data/en_GB.lang (added)
-
data/es.lang (added)
-
data/eu.lang (added)
-
data/fi.lang (added)
-
data/fr.lang (added)
-
data/gl.lang (added)
-
data/he.lang (added)
-
data/is.lang (added)
-
data/it.lang (added)
-
data/ja.lang (added)
-
data/nb.lang (added)
-
data/nl.lang (added)
-
data/pl.lang (added)
-
data/pt_BR.lang (added)
-
data/ru.lang (added)
-
data/sk.lang (added)
-
data/sv.lang (added)
-
data/tr.lang (added)
-
data/uk.lang (added)
-
data/zh_CN.lang (added)
-
data/zh_TW.lang (added)
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/proj4j/build.xml
r25454 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="proj4j" default="dist" basedir="."> 31 32 31 <!-- read build.properties for local settings --> 33 <property file="build.properties" />32 <property file="build.properties"/> 34 33 <!-- enter the SVN command file name --> 35 <property name="svn" value="svn" />34 <property name="svn" value="svn"/> 36 35 <!-- enter the SVN commit message --> 37 <property name="commit.message" value="Commit message" />36 <property name="commit.message" value="Commit message"/> 38 37 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 39 <property name="plugin.main.version" value="3872" /> 40 41 <property name="libproj4j" value="lib/proj4j-0.1.0.jar"/> 42 38 <property name="plugin.main.version" value="3872"/> 39 <property name="libproj4j" value="lib/proj4j-0.1.0.jar"/> 43 40 <!-- 44 41 ************************************************ 45 42 ** should not be necessary to change the following properties 46 43 --> 47 <property name="josm" location="../../core/dist/josm-custom.jar"/>48 <property name="plugin.build.dir" value="build"/>49 <property name="plugin.src.dir" value="src"/>44 <property name="josm" location="../../core/dist/josm-custom.jar"/> 45 <property name="plugin.build.dir" value="build"/> 46 <property name="plugin.src.dir" value="src"/> 50 47 <!-- this is the directory where the plugin jar is copied to --> 51 <property name="plugin.dist.dir" value="../../dist"/>48 <property name="plugin.dist.dir" value="../../dist"/> 52 49 <property name="ant.build.javac.target" value="1.5"/> 53 <property name="plugin.dist.dir" value="../../dist"/> 54 <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/> 55 50 <property name="plugin.dist.dir" value="../../dist"/> 51 <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/> 56 52 <!-- 57 53 ********************************************************** … … 62 58 <mkdir dir="${plugin.build.dir}"/> 63 59 </target> 64 65 60 <!-- 66 61 ********************************************************** … … 72 67 <javac srcdir="src" debug="true" destdir="${plugin.build.dir}"> 73 68 <classpath> 74 <pathelement location="${josm}"/> 75 <pathelement location="${libproj4j}"/> 76 </classpath> 69 <pathelement location="${josm}"/> 70 <pathelement location="${libproj4j}"/> 71 </classpath> 77 72 <compilerarg value="-Xlint:deprecation"/> 78 73 <compilerarg value="-Xlint:unchecked"/> 79 74 </javac> 80 75 </target> 81 82 76 <!-- 83 77 ********************************************************** … … 93 87 <fileset dir="images"/> 94 88 </copy> 89 <copy todir="${plugin.build.dir}/data"> 90 <fileset dir="data"/> 91 </copy> 95 92 <copy todir="${plugin.build.dir}"> 96 93 <fileset dir="."> 97 <include name="README" />98 <include name="LICENSE" />94 <include name="README"/> 95 <include name="LICENSE"/> 99 96 </fileset> 100 97 </copy> … … 121 118 </jar> 122 119 </target> 123 124 120 <!-- 125 121 ********************************************************** … … 130 126 --> 131 127 <target name="revision"> 132 133 128 <exec append="false" output="REVISION" executable="${svn}" failifexecutionfails="false"> 134 129 <env key="LANG" value="C"/> … … 140 135 <delete file="REVISION"/> 141 136 </target> 142 143 137 <!-- 144 138 ********************************************************** … … 150 144 <delete file="${plugin.jar}"/> 151 145 </target> 152 153 146 <!-- 154 147 ********************************************************** … … 165 158 <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/> 166 159 </target> 167 168 169 160 <!-- 170 161 ************************** Publishing the plugin *********************************** … … 185 176 <echo>Building against core revision ${coreversion.info.entry.revision}.</echo> 186 177 <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo> 187 <delete file="core.info.xml" /> 188 </target> 189 178 <delete file="core.info.xml"/> 179 </target> 190 180 <!-- 191 181 ** commits the source tree for this plugin … … 198 188 <arg value="-m '${commit.message}'"/> 199 189 <arg value="."/> 200 <arg value="${svn.username_arg}"/> 201 <arg value="${svn.username}"/> 202 <arg value="${svn.password_arg}"/> 203 <arg value="${svn.password}"/> 204 </exec> 205 </target> 206 190 <arg value="${svn.username_arg}"/> 191 <arg value="${svn.username}"/> 192 <arg value="${svn.password_arg}"/> 193 <arg value="${svn.password}"/> 194 </exec> 195 </target> 207 196 <!-- 208 197 ** updates (svn up) the source tree for this plugin … … 222 211 </exec> 223 212 </target> 224 225 213 <!-- 226 214 ** commits the plugin.jar … … 242 230 <arg value="commit"/> 243 231 <arg value="${plugin.jar}"/> 244 <arg value="${svn.username_arg}"/> 245 <arg value="${svn.username}"/> 246 <arg value="${svn.password_arg}"/> 247 <arg value="${svn.password}"/> 248 </exec> 249 </target> 250 232 <arg value="${svn.username_arg}"/> 233 <arg value="${svn.username}"/> 234 <arg value="${svn.password_arg}"/> 235 <arg value="${svn.password}"/> 236 </exec> 237 </target> 251 238 <!-- ** make sure svn is present as a command line tool ** --> 252 239 <target name="ensure-svn-present"> 253 240 <exec append="true" output="svn.log" executable="${svn}" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code"> 254 <env key="LANG" value="C" />255 <arg value="--version" />241 <env key="LANG" value="C"/> 242 <arg value="--version"/> 256 243 </exec> 257 244 <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system."> … … 259 246 <condition> 260 247 <not> 261 <isset property="svn.exit.code" />248 <isset property="svn.exit.code"/> 262 249 </not> 263 250 </condition> … … 266 253 <!-- error code from SVN? Most likely svn is not what we are looking on this system --> 267 254 <condition> 268 <isfailure code="${svn.exit.code}" />255 <isfailure code="${svn.exit.code}"/> 269 256 </condition> 270 257 </fail> 271 258 </target> 272 273 259 <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist"> 274 260 </target>
Note:
See TracChangeset
for help on using the changeset viewer.
