Changeset 2397 in josm for trunk


Ignore:
Timestamp:
2009-11-07T12:43:31+01:00 (15 years ago)
Author:
bastiK
Message:

New build option: jar compression level. (ant -Dclevel=N)
Default is not changed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/build.xml

    r2369 r2397  
    1414        <property name="src.dir" value="src" />
    1515        <property name="build.dir" value="build"/>
     16    <!-- build parameter: compression level (ant -Dclevel=N)
     17             N ranges from 0 (no compression) to 9 (maximum compression)
     18             default: 9 -->
     19    <condition property="clevel" value="${clevel}" else="9">
     20        <isset property="clevel" />
     21    </condition>
    1622
    1723        <!-- Java classpath addition (all jar files to compile tests with this) -->
     
    7379                <!-- create josm-custom.jar -->
    7480                <delete file="dist/josm-custom.jar"/>
    75                 <jar destfile="dist/josm-custom.jar" basedir="build" level="9">
     81                <jar destfile="dist/josm-custom.jar" basedir="build" level="${clevel}">
    7682        <!-- add attribute excludes="**/*BZip2*,**/*Bzip2*" to create a non-bzip2 supporting jar -->
    7783                        <manifest>
Note: See TracChangeset for help on using the changeset viewer.