Changeset 26174 in osm for applications/editors/josm/plugins/OpeningHoursEditor
- Timestamp:
- 2011-06-25T19:02:31+02:00 (14 years ago)
- Location:
- applications/editors/josm/plugins/OpeningHoursEditor
- Files:
-
- 31 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/OpeningHoursEditor/build.xml
r25190 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="OpeningHoursEditor" default="dist" basedir="."> 31 32 31 <!-- enter the SVN commit message --> 33 <property name="commit.message" value="fixed main version" 32 <property name="commit.message" value="fixed main version"/> 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.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/> 49 50 51 <!-- 45 <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/> 46 <!-- 52 47 ********************************************************** 53 48 ** javacc-otc - compiles OpeningTimeCompiler 54 49 ** 55 ** can be changed see http://www.engr.mun.ca/~theo/JavaCC-FAQ/javacc-faq-moz.htm#tth_sEc2.5 56 ********************************************************** 57 --> 58 <target name="javacc-otc"> 59 <echo message="compiling OpeningTimeCompiler with javacc ... " /> 60 <exec executable="javacc" dir="src/org/openstreetmap/josm/plugins/ohe/parser/"> 61 <arg value="OpeningTimeCompiler.jj" /> 62 </exec> 63 </target> 64 65 50 ** can be changed see http://www.engr.mun.ca/~theo/JavaCC-FAQ/javacc-faq-moz.htm#tth_sEc2.5 51 ********************************************************** 52 --> 53 <target name="javacc-otc"> 54 <echo message="compiling OpeningTimeCompiler with javacc ... "/> 55 <exec executable="javacc" dir="src/org/openstreetmap/josm/plugins/ohe/parser/"> 56 <arg value="OpeningTimeCompiler.jj"/> 57 </exec> 58 </target> 66 59 <!-- 67 60 ********************************************************** … … 72 65 <mkdir dir="${plugin.build.dir}"/> 73 66 </target> 74 75 67 <!-- 76 68 ********************************************************** … … 85 77 </javac> 86 78 </target> 87 88 79 <!-- 89 80 ********************************************************** … … 96 87 <fileset dir="images"/> 97 88 </copy> 89 <copy todir="${plugin.build.dir}/data"> 90 <fileset dir="data"/> 91 </copy> 98 92 <copy todir="${plugin.build.dir}"> 99 93 <fileset dir="."> 100 <include name="README" 101 <include name="LICENSE" 94 <include name="README"/> 95 <include name="LICENSE"/> 102 96 </fileset> 103 97 </copy> … … 111 105 ************************************************ 112 106 --> 113 114 115 116 117 107 <manifest> 108 <attribute name="Author" value="Falko Thomale"/> 109 <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.ohe.OhePlugin"/> 110 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/> 111 <attribute name="Plugin-Description" value="extended options for editing opening_hours"/> 118 112 <attribute name="Plugin-Icon" value="images/opening_hours.png"/> 119 120 121 122 113 <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/OpeningHoursEditor"/> 114 <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/> 115 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 116 </manifest> 123 117 </jar> 124 118 </target> 125 126 119 <!-- 127 120 ********************************************************** … … 132 125 --> 133 126 <target name="revision"> 134 135 127 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false"> 136 128 <env key="LANG" value="C"/> … … 142 134 <delete file="REVISION"/> 143 135 </target> 144 145 136 <!-- 146 137 ********************************************************** … … 152 143 <delete file="${plugin.jar}"/> 153 144 </target> 154 155 145 <!-- 156 146 ********************************************************** … … 167 157 <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/> 168 158 </target> 169 170 171 159 <!-- 172 160 ************************** Publishing the plugin *********************************** … … 187 175 <echo>Building against core revision ${coreversion.info.entry.revision}.</echo> 188 176 <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo> 189 <delete file="core.info.xml" /> 190 </target> 191 177 <delete file="core.info.xml"/> 178 </target> 192 179 <!-- 193 180 ** commits the source tree for this plugin … … 202 189 </exec> 203 190 </target> 204 205 191 <!-- 206 192 ** updates (svn up) the source tree for this plugin … … 220 206 </exec> 221 207 </target> 222 223 208 <!-- 224 209 ** commits the plugin.jar … … 242 227 </exec> 243 228 </target> 244 245 229 <!-- ** make sure svn is present as a command line tool ** --> 246 230 <target name="ensure-svn-present"> 247 231 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code"> 248 <env key="LANG" value="C" 249 <arg value="--version" 232 <env key="LANG" value="C"/> 233 <arg value="--version"/> 250 234 </exec> 251 235 <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system."> … … 253 237 <condition> 254 238 <not> 255 <isset property="svn.exit.code" 239 <isset property="svn.exit.code"/> 256 240 </not> 257 241 </condition> … … 260 244 <!-- error code from SVN? Most likely svn is not what we are looking on this system --> 261 245 <condition> 262 <isfailure code="${svn.exit.code}" 246 <isfailure code="${svn.exit.code}"/> 263 247 </condition> 264 248 </fail> 265 249 </target> 266 267 250 <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist"> 268 251 </target>
Note:
See TracChangeset
for help on using the changeset viewer.