Changeset 16002 in josm for trunk


Ignore:
Timestamp:
2020-03-02T23:50:44+01:00 (5 years ago)
Author:
Don-vip
Message:

see #18140 - refactor build

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/build.xml

    r16001 r16002  
    194194      ** Main target that builds JOSM and checks XML against schemas
    195195    -->
    196     <target name="dist" depends="compile,create-revision,check-schemas,epsg">
     196    <target name="dist" depends="compile,extract-libraries,create-revision,check-schemas,epsg">
    197197        <echo>Revision ${version.entry.commit.revision}</echo>
    198198        <copy file="CONTRIBUTION" todir="${build.dir}"/>
     
    201201        <!-- create josm-custom.jar -->
    202202        <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>
    211203        <jar destfile="${dist.jar}" basedir="${build.dir}" level="${clevel}">
    212204            <!-- add attribute excludes="**/*BZip2*,**/*Bzip2*" to create a non-bzip2 supporting jar -->
     
    11351127        <move file="${modules.dir}/dots/summary.dot.png" tofile="${modules.dir}/josm-with-all-dependencies.png"/>
    11361128    </target>
    1137     <target name="resolve" depends="init-ivy">
     1129    <target name="resolve" depends="init-ivy" unless="resolve.notRequired">
    11381130        <ivy:resolve keep="true"/>
    11391131        <ivy:report todir="${tools.dir}/ivy-report" graph="false"/>
     
    11441136        <ivy:retrieve pattern="${tools.dir}/ivy/[artifact]-[type].[ext]" conf="ivy"/>
    11451137    </target>
     1138    <target name="extract-libraries" depends="resolve" description="extract libraries to build dir">
     1139        <unzip dest="${build.dir}">
     1140            <fileset refid="runtime.fileset"/>
     1141            <patternset>
     1142                <exclude name="META-INF/**"/>
     1143                <exclude name="*"/>
     1144            </patternset>
     1145        </unzip>
     1146    </target>
    11461147    <target name="bootstrap-workspace" description="Copy libraries from ivy cache to workspace folders for IDE" depends="resolve">
    11471148        <delete dir="${lib.dir}"/>
Note: See TracChangeset for help on using the changeset viewer.