Changeset 15977 in josm for trunk/build.xml
- Timestamp:
- 2020-03-01T20:47:38+01:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/build.xml
r15974 r15977 9 9 ** 10 10 --> 11 <project xmlns:as="antlib:org.codehaus.mojo.animal_sniffer" name="josm" default="dist" xmlns:jacoco="antlib:org.jacoco.ant" xmlns:if="ant:if" xmlns:unless="ant:unless"> 12 <target name="init-properties"> 11 <project name="josm" default="dist" 12 xmlns:as="antlib:org.codehaus.mojo.animal_sniffer" 13 xmlns:if="ant:if" 14 xmlns:ivy="antlib:org.apache.ivy.ant" 15 xmlns:jacoco="antlib:org.jacoco.ant" 16 xmlns:unless="ant:unless" 17 > 18 <target name="init-ivy"> 19 <dirname property="base.dir" file="${ant.file.josm}"/> 20 <property name="lib.dir" location="${base.dir}/lib"/> 21 <property name="tools.dir" location="${base.dir}/tools"/> 22 <taskdef resource="org/apache/ivy/ant/antlib.xml" uri="antlib:org.apache.ivy.ant" classpath="${tools.dir}/ivy/ivy.jar"/> 23 </target> 24 <target name="init-properties" depends="resolve"> 13 25 <property environment="env"/> 14 26 <!-- Load properties in a target and not at top level, so this build file can be … … 17 29 of the importing ant file. Use ${base.dir} instead, which is always the parent 18 30 directory of this file. --> 19 <dirname property="base.dir" file="${ant.file.josm}"/>20 31 <property name="test.dir" location="${base.dir}/test"/> 21 32 <property name="src.dir" location="${base.dir}/src"/> … … 190 201 <!-- create josm-custom.jar --> 191 202 <delete file="${dist.jar}"/> 203 <!-- extract libraries to build dir to create uber-jar --> 204 <unzip dest="${build.dir}"> 205 <fileset refid="runtime.fileset"/> 206 <patternset> 207 <exclude name="META-INF/**"/> 208 <exclude name="*"/> 209 </patternset> 210 </unzip> 192 211 <jar destfile="${dist.jar}" basedir="${build.dir}" level="${clevel}"> 193 212 <!-- add attribute excludes="**/*BZip2*,**/*Bzip2*" to create a non-bzip2 supporting jar --> … … 388 407 <compilerarg line="-Xmaxwarns 1000"/> 389 408 <exclude name="org/openstreetmap/josm/io/audio/fx/*.java" if:set="noJavaFX"/> 409 <classpath> 410 <path refid="runtime.path"/> 411 </classpath> 390 412 </javac> 391 413 … … 981 1003 reportLevel="low" 982 1004 > 1005 <classpath> 1006 <path refid="spotbugs-classpath"/> 1007 <path refid="compile.path"/> 1008 </classpath> 983 1009 <sourcePath path="${base.dir}/src" /> 984 1010 <class location="${dist.jar}" /> … … 1108 1134 <move file="${modules.dir}/dots/summary.dot.png" tofile="${modules.dir}/josm-with-all-dependencies.png"/> 1109 1135 </target> 1136 <target name="resolve" depends="init-ivy"> 1137 <ivy:resolve keep="true"/> 1138 <ivy:report todir="${tools.dir}/ivy-report" graph="false"/> 1139 <ivy:cachepath pathid="compile.path" conf="compile"/> 1140 <ivy:cachepath pathid="runtime.path" conf="runtime"/> 1141 <ivy:cachefileset setid="runtime.fileset" conf="runtime"/> 1142 <ivy:cachepath pathid="test.path" conf="test"/> 1143 <ivy:retrieve pattern="${tools.dir}/ivy/[artifact]-[type].[ext]" conf="ivy"/> 1144 </target> 1145 <target name="bootstrap-workspace" description="Copy libraries from ivy cache to workspace folders for IDE" depends="resolve"> 1146 <delete dir="${lib.dir}"/> 1147 <ivy:retrieve pattern="${lib.dir}/compile/[artifact]-[type].[ext]" conf="compile"/> 1148 <ivy:retrieve pattern="${lib.dir}/runtime/[artifact]-[type].[ext]" conf="runtime"/> 1149 </target> 1110 1150 </project>
Note:
See TracChangeset
for help on using the changeset viewer.