Changeset 1751 in josm for trunk/build.xml
- Timestamp:
- 2009-07-08T22:06:58+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/build.xml
r1683 r1751 1 1 <project name="josm" default="dist" basedir="."> 2 <property name="test.dir" value="test" /> 3 <property name="src.dir" value="src" /> 4 <property name="build.dir" value="build"/> 2 5 3 6 <!-- Java classpath addition (all jar files to compile tests with this) --> … … 9 12 10 13 <target name="dist" depends="compile"> 11 14 12 15 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false"> 13 16 <env key="LANG" value="C"/> … … 39 42 <zipfileset dir="images" prefix="images" /> 40 43 <zipfileset src="lib/josm-translation.jar" /> 41 42 <!-- All jar files necessary to run only JOSM (no tests) --> 44 45 <!-- All jar files necessary to run only JOSM (no tests) --> 43 46 <zipfileset src="lib/gettext-commons-0.9.6.jar" /> 44 47 <zipfileset src="lib/metadata-extractor-2.3.1-nosun.jar" /> … … 77 80 </target> 78 81 82 <path id="test.classpath"> 83 <fileset dir="${test.dir}/lib"> 84 <include name="**/*.jar"/> 85 </fileset> 86 <fileset dir="lib"> 87 <include name="**/*.jar"/> 88 </fileset> 89 </path> 90 91 <target name="test-init"> 92 <mkdir dir="${test.dir}/${build.dir}" /> 93 <mkdir dir="${test.dir}/report" /> 94 </target> 95 96 <target name="test-clean"> 97 <delete dir="${test.dir}/${build.dir}"/> 98 <delete dir="${test.dir}/report"/> 99 </target> 100 101 <target name="test-compile" depends="test-init"> 102 <javac srcdir="${src.dir}:${test.dir}/unit" classpathref="test.classpath" destdir="${test.dir}/${build.dir}" 103 target="1.5" source="1.5" debug="on" encoding="UTF-8"> 104 <compilerarg value="-Xlint:deprecation"/> 105 </javac> 106 </target> 107 108 <target name="test" depends="test-compile"> 109 <junit printsummary="yes"> 110 <sysproperty key="josm.home" value="${test.dir}/config/unit-josm.home"/> 111 <classpath> 112 <path refid="test.classpath"/> 113 <pathelement path="${test.dir}/${build.dir}"/> 114 <pathelement path="${test.dir}/config"/> 115 </classpath> 116 <formatter type="plain"/> 117 <batchtest fork="no" todir="${test.dir}/report"> 118 <fileset dir="${test.dir}/unit" includes="**/*.java"/> 119 </batchtest> 120 </junit> 121 </target> 79 122 80 123 </project>
Note:
See TracChangeset
for help on using the changeset viewer.