Changeset 2618 in josm for trunk/build.xml
- Timestamp:
- 2009-12-12T16:38:28+01:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/build.xml
r2507 r2618 14 14 <property name="src.dir" value="src" /> 15 15 <property name="build.dir" value="build"/> 16 16 <!-- build parameter: compression level (ant -Dclevel=N) 17 17 N ranges from 0 (no compression) to 9 (maximum compression) 18 18 default: 9 --> 19 20 21 19 <condition property="clevel" value="${clevel}" else="9"> 20 <isset property="clevel" /> 21 </condition> 22 22 23 23 <!-- Java classpath addition (all jar files to compile tests with this) --> … … 28 28 </path> 29 29 30 30 31 31 <!-- 32 32 ** Used by Eclipse ant builder for updating 33 33 ** the REVISION file used by JOSM 34 --> 34 --> 35 35 <target name="create-revision-eclipse"> 36 36 <property name="revision.dir" value="bin"/> … … 40 40 <!-- 41 41 ** Creates the REVISION file to be included in the distribution 42 --> 42 --> 43 43 <target name="create-revision"> 44 44 <property name="revision.dir" value="${build.dir}"/> 45 45 <exec append="false" output="REVISION.XML" executable="svn" failifexecutionfails="false"> 46 47 48 49 46 <env key="LANG" value="C"/> 47 <arg value="info"/> 48 <arg value="--xml"/> 49 <arg value="."/> 50 50 </exec> 51 51 <xmlproperty file="REVISION.XML" prefix="version" keepRoot="false" collapseAttributes="true"/> 52 52 <delete file="REVISION.XML" /> 53 53 <tstamp> 54 54 <format property="build.tstamp" pattern="yyyy-MM-dd HH:mm:ss"/> 55 55 </tstamp> 56 56 … … 62 62 Is-Local-Build: true 63 63 Build-Date: ${build.tstamp} 64 </echo> 64 </echo> 65 65 </target> 66 66 67 67 68 68 <target name="dist" depends="compile,create-revision"> … … 78 78 <property name="version.entry.commit.revision" value="UNKNOWN"/> 79 79 <property name="version.entry.commit.date" value="UNKNOWN"/> 80 80 <echo>Revision ${version.entry.commit.revision}</echo> 81 81 <copy file="CONTRIBUTION" todir="build"/> 82 82 <copy file="README" todir="build"/> 83 83 <copy file="LICENSE" todir="build"/> 84 84 85 85 <!-- styles --> 86 86 <copy file="styles/standard/elemstyles.xml" todir="build/styles/standard"/> 87 87 88 88 <!-- css--> 89 89 <copy file="src/org/openstreetmap/josm/gui/help/help-browser.css" todir="build/org/openstreetmap/josm/gui/help"/> 90 90 … … 92 92 <delete file="dist/josm-custom.jar"/> 93 93 <jar destfile="dist/josm-custom.jar" basedir="build" level="${clevel}"> 94 94 <!-- add attribute excludes="**/*BZip2*,**/*Bzip2*" to create a non-bzip2 supporting jar --> 95 95 <manifest> 96 96 <attribute name="Main-class" value="JOSM" /> … … 166 166 <compilerarg value="-Xlint:unchecked"/> 167 167 </javac> 168 <javac srcdir="${src.dir}:${test.dir}/functional" classpathref="test.classpath" destdir="${test.dir}/${build.dir}" 169 target="1.5" source="1.5" debug="on" encoding="UTF-8"> 170 <compilerarg value="-Xlint:deprecation"/> 171 <compilerarg value="-Xlint:unchecked"/> 172 </javac> 168 173 </target> 169 174 170 171 172 173 174 175 176 177 178 179 180 181 182 183 175 <target name="test" depends="test-compile"> 176 <junit printsummary="yes"> 177 <sysproperty key="josm.home" value="${test.dir}/config/unit-josm.home"/> 178 <classpath> 179 <path refid="test.classpath"/> 180 <pathelement path="${test.dir}/${build.dir}"/> 181 <pathelement path="${test.dir}/config"/> 182 </classpath> 183 <formatter type="plain"/> 184 <batchtest fork="no" todir="${test.dir}/report"> 185 <fileset dir="${test.dir}/unit" includes="**/*.java"/> 186 </batchtest> 187 </junit> 188 </target> 184 189 185 190 </project>
Note: See TracChangeset
for help on using the changeset viewer.