Changeset 14136 in josm


Ignore:
Timestamp:
2018-08-12T00:29:40+02:00 (6 weeks ago)
Author:
Don-vip
Message:

see #15229 - add new ant target to generate jdeps dependencies graphs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/build.xml

    r14109 r14136  
    3030        <property name="build.dir" location="${base.dir}/build"/>
    3131        <property name="dist.dir" location="${base.dir}/dist"/>
     32        <property name="modules.dir" location="${dist.dir}/modules"/>
    3233        <property name="tools.dir" location="${base.dir}/tools"/>
    3334        <property name="pmd.dir" location="${tools.dir}/pmd"/>
     
    958959        </java>
    959960    </target>
     961    <!--
     962      ** generate jdeps dependency graph
     963    -->
     964    <target name="jdeps" depends="compile">
     965        <delete dir="${modules.dir}"/>
     966        <mkdir dir="${modules.dir}"/>
     967        <!-- JOSM only -->
     968        <jar basedir="${build.dir}" level="${clevel}" destfile="${modules.dir}/josm-main.jar" includes="org/openstreetmap/josm/Main.class"/>
     969        <jar basedir="${build.dir}" level="${clevel}" destfile="${modules.dir}/josm-actions.jar" includes="org/openstreetmap/josm/actions/**/*.class"/>
     970        <jar basedir="${build.dir}" level="${clevel}" destfile="${modules.dir}/josm-cli.jar" includes="org/openstreetmap/josm/cli/**/*.class"/>
     971        <jar basedir="${build.dir}" level="${clevel}" destfile="${modules.dir}/josm-command.jar" includes="org/openstreetmap/josm/command/**/*.class"/>
     972        <jar basedir="${build.dir}" level="${clevel}" destfile="${modules.dir}/josm-corrector.jar" includes="org/openstreetmap/josm/corrector/**/*.class"/>
     973        <jar basedir="${build.dir}" level="${clevel}" destfile="${modules.dir}/josm-data.jar" includes="org/openstreetmap/josm/data/**/*.class"/>
     974        <jar basedir="${build.dir}" level="${clevel}" destfile="${modules.dir}/josm-gui.jar" includes="org/openstreetmap/josm/gui/**/*.class"/>
     975        <jar basedir="${build.dir}" level="${clevel}" destfile="${modules.dir}/josm-io.jar" includes="org/openstreetmap/josm/io/**/*.class"/>
     976        <jar basedir="${build.dir}" level="${clevel}" destfile="${modules.dir}/josm-plugins.jar" includes="org/openstreetmap/josm/plugins/**/*.class"/>
     977        <jar basedir="${build.dir}" level="${clevel}" destfile="${modules.dir}/josm-spi.jar" includes="org/openstreetmap/josm/spi/**/*.class"/>
     978        <jar basedir="${build.dir}" level="${clevel}" destfile="${modules.dir}/josm-tools.jar" includes="org/openstreetmap/josm/tools/**/*.class"/>
     979        <exec executable="jdeps" dir="${modules.dir}">
     980            <arg line="-f 'java.*|org.xml.*|org.w3c.*|sun.*|com.*|gnu.*|oauth.*|org.apache.*|org.glassfish.*|org.jdesktop.*|org.openstreetmap.gui.*'"/>
     981            <arg line="-dotoutput dots *.jar"/>
     982        </exec>
     983        <exec executable="dot" dir="${modules.dir}/dots">
     984            <arg line="-O -Tpng summary.dot"/>
     985        </exec>
     986        <move file="${modules.dir}/dots/summary.dot.png" tofile="${modules.dir}/josm-without-dependencies.png"/>
     987        <!-- Direct dependencies -->
     988        <jar basedir="${build.dir}" level="${clevel}" destfile="${modules.dir}/metadata-extractor.jar" includes="com/drew/**/*.class"/>
     989        <jar basedir="${build.dir}" level="${clevel}" destfile="${modules.dir}/svgSalamander.jar" includes="com/kitfox/**/*.class"/>
     990        <jar basedir="${build.dir}" level="${clevel}" destfile="${modules.dir}/gnu-getopt.jar" includes="gnu/**/*.class"/>
     991        <jar basedir="${build.dir}" level="${clevel}" destfile="${modules.dir}/javax-json.jar" includes="javax/**/*.class"/>
     992        <jar basedir="${build.dir}" level="${clevel}" destfile="${modules.dir}/oauth-signpost.jar" includes="oauth/**/*.class"/>
     993        <jar basedir="${build.dir}" level="${clevel}" destfile="${modules.dir}/commons-compress.jar" includes="org/apache/commons/compress/**/*.class"/>
     994        <jar basedir="${build.dir}" level="${clevel}" destfile="${modules.dir}/commons-jcs.jar" includes="org/apache/commons/jcs/**/*.class"/>
     995        <jar basedir="${build.dir}" level="${clevel}" destfile="${modules.dir}/glassfish-json.jar" includes="org/glassfish/**/*.class"/>
     996        <jar basedir="${build.dir}" level="${clevel}" destfile="${modules.dir}/jdesktop.jar" includes="org/jdesktop/**/*.class"/>
     997        <jar basedir="${build.dir}" level="${clevel}" destfile="${modules.dir}/jmapviewer.jar" includes="org/openstreetmap/gui/**/*.class"/>
     998        <exec executable="jdeps" dir="${modules.dir}">
     999            <arg line="-f 'java.*|org.xml.*|org.w3c.*|sun.*|com.sun.*|com.google.*|org.tukaani.*|org.apache.commons.logging.*'"/>
     1000            <arg line="-dotoutput dots *.jar"/>
     1001        </exec>
     1002        <exec executable="dot" dir="${modules.dir}/dots">
     1003            <arg line="-O -Tpng summary.dot"/>
     1004        </exec>
     1005        <move file="${modules.dir}/dots/summary.dot.png" tofile="${modules.dir}/josm-with-direct-dependencies.png"/>
     1006        <!-- All dependencies -->
     1007        <jar basedir="${build.dir}" level="${clevel}" destfile="${modules.dir}/commons-logging.jar" includes="org/apache/commons/logging/**/*.class"/>
     1008        <jar basedir="${build.dir}" level="${clevel}" destfile="${modules.dir}/google-gdata.jar" includes="com/google/**/*.class"/>
     1009        <jar basedir="${build.dir}" level="${clevel}" destfile="${modules.dir}/tukaani-xz.jar" includes="org/tukaani/**/*.class"/>
     1010        <exec executable="jdeps" dir="${modules.dir}">
     1011            <arg line="-dotoutput dots *.jar"/>
     1012        </exec>
     1013        <exec executable="dot" dir="${modules.dir}/dots">
     1014            <arg line="-O -Tpng summary.dot"/>
     1015        </exec>
     1016        <move file="${modules.dir}/dots/summary.dot.png" tofile="${modules.dir}/josm-with-all-dependencies.png"/>
     1017    </target>
    9601018</project>
Note: See TracChangeset for help on using the changeset viewer.