Changeset 7133 in josm for trunk/build.xml
- Timestamp:
- 2014-05-15T17:01:12+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/build.xml
r7085 r7133 5 5 ** ant clean 6 6 ** ant dist 7 ** This will create 'josm-custom.jar' 7 ** This will create 'josm-custom.jar' in directory 'dist'. See also 8 8 ** https://josm.openstreetmap.de/wiki/CreateBuild 9 9 ** … … 15 15 <property name="javacc.home" location="tools"/> 16 16 <property name="mapcss.dir" location="${src.dir}/org/openstreetmap/josm/gui/mappaint/mapcss"/> 17 <property name="imagerytypes.dir" location="${src.dir}/org/openstreetmap/josm/data/imagery/types"/> 17 18 <!-- build parameter: compression level (ant -Dclevel=N) 18 19 N ranges from 0 (no compression) to 9 (maximum compression) … … 125 126 <zipfileset dir="data" prefix="data"/> 126 127 <zipfileset dir="styles" prefix="styles"/> 127 <zipfileset dir=" src/org/openstreetmap/gui/jmapviewer/images" prefix="org/openstreetmap/gui/jmapviewer/images"/>128 <zipfileset dir="${src.dir}/org/openstreetmap/gui/jmapviewer/images" prefix="org/openstreetmap/gui/jmapviewer/images"/> 128 129 <!-- All jar files necessary to run only JOSM (no tests) --> 129 130 <!-- <zipfileset src="lib/metadata-extractor-2.3.1-nosun.jar"/> --> … … 198 199 </exec> 199 200 </target> 200 <target name="compile" depends="init,javacc"> 201 <target name="jaxb" depends="init" unless="jaxb.notRequired"> 202 <taskdef name="xjc" classname="com.sun.tools.xjc.XJCTask"> 203 <classpath> 204 <fileset dir="tools/jaxb" includes="*.jar"/> 205 </classpath> 206 </taskdef> 207 <xjc schema="data_nodist/wms-cache.xsd" destdir="${src.dir}" encoding="UTF-8"> 208 <depends dir="${src.dir}/org/openstreetmap/josm/data/imagery" includes="WmsCache.java"/> 209 <produces dir="${imagerytypes.dir}" includes="*.java"/> 210 </xjc> 211 </target> 212 <target name="compile" depends="init,javacc,jaxb"> 201 213 <!-- COTS --> 202 <javac srcdir=" src" includes="com/**,oauth/**,org/apache/commons/codec/**,org/glassfish/**" nowarn="on"214 <javac srcdir="${src.dir}" includes="com/**,oauth/**,org/apache/commons/codec/**,org/glassfish/**" nowarn="on" 203 215 destdir="build" target="1.7" source="1.7" debug="on" includeantruntime="false" createMissingPackageInfoClass="false" encoding="iso-8859-1"> 204 216 <!-- get rid of "internal proprietary API" warning --> … … 206 218 </javac> 207 219 <!-- JMapViewer/JOSM --> 208 <javac srcdir=" src" excludes="com/**,oauth/**,org/apache/commons/codec/**,org/glassfish/**,org/openstreetmap/gui/jmapviewer/Demo.java"220 <javac srcdir="${src.dir}" excludes="com/**,oauth/**,org/apache/commons/codec/**,org/glassfish/**,org/openstreetmap/gui/jmapviewer/Demo.java" 209 221 destdir="build" target="1.7" source="1.7" debug="on" includeantruntime="false" createMissingPackageInfoClass="false" encoding="UTF-8"> 210 222 <compilerarg value="-Xlint:cast"/> … … 233 245 <target name="javadoc"> 234 246 <javadoc destdir="javadoc" 235 sourcepath=" src"247 sourcepath="${src.dir}" 236 248 encoding="UTF-8" 237 249 packagenames="org.openstreetmap.josm.*,org.openstreetmap.gui.jmapviewer.*" … … 250 262 <delete dir="dist"/> 251 263 <delete dir="${mapcss.dir}/parsergen"/> 264 <delete dir="${imagerytypes.dir}"/> 252 265 </target> 253 266 <path id="test.classpath"> … … 351 364 </macrodef> 352 365 <target name="test" depends="test-compile" 353 366 description="Run unit, functional and performance tests. OSM API (TEST) account shall be set with -Dosm.username and -Dosm.password"> 354 367 <taskdef uri="antlib:org.jacoco.ant" resource="org/jacoco/ant/antlib.xml" classpath="tools/jacocoant.jar" /> 355 368 <call-junit testfamily="unit"/> … … 431 444 <mkdir dir="${dir}"/> 432 445 <!-- List of deprecated plugins --> 433 <loadfile property="deprecated-plugins" srcFile=" src/org/openstreetmap/josm/plugins/PluginHandler.java">446 <loadfile property="deprecated-plugins" srcFile="${src.dir}/org/openstreetmap/josm/plugins/PluginHandler.java"> 434 447 <filterchain> 435 448 <linecontains>
Note:
See TracChangeset
for help on using the changeset viewer.