Ignore:
Timestamp:
2019-06-23T04:58:53+02:00 (5 years ago)
Author:
donvip
Message:

see #josm17835 - fix plugin build files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/routing/build.xml

    r34554 r35039  
    77    <property name="plugin.main.version" value="14153"/>
    88
     9    <property name="plugin.author" value="Jose Vidal &lt;vidalfree@gmail.com&gt;, Juangui Jordán &lt;juangui@gmail.com&gt;, Hassan S &lt;hassan.sabirin@gmail.com&gt;"/>
     10    <property name="plugin.class" value="com.innovant.josm.plugin.routing.RoutingPlugin"/>
     11    <property name="plugin.description" value="Provides routing capabilities."/>
     12    <property name="plugin.icon" value="images/preferences/routing.png"/>
     13    <property name="plugin.link" value="https://wiki.openstreetmap.org/index.php/JOSM/Plugins/Routing"/>
     14    <property name="plugin.requires" value="log4j"/>
     15
    916    <!--
    1017    **********************************************************
     
    1421    <import file="../build-common.xml"/>
    1522
    16     <!-- classpath -->
    17     <path id="classpath">
    18         <fileset dir="${plugin.lib.dir}" includes="**/*.jar"/>
    19         <pathelement path="${josm}"/>
    20         <fileset dir="../log4j/lib">
    21             <include name="**/*.jar"/>
    22         </fileset>
    23     </path>
    24     <!--
    25     **********************************************************
    26     ** compile - complies the source tree
    27     ** Overrides the target from build-common.xml
    28     **********************************************************
    29     -->
    30     <target name="compile" depends="init">
    31         <echo message="compiling sources for ${plugin.jar} ..."/>
    32         <javac srcdir="src" classpathref="classpath" debug="true" destdir="${plugin.build.dir}" includeantruntime="false">
    33             <compilerarg value="-Xlint:deprecation"/>
    34             <compilerarg value="-Xlint:unchecked"/>
    35         </javac>
    36     </target>
     23    <fileset id="plugin.requires.jars" dir="${plugin.dist.dir}">
     24        <include name="log4j.jar"/>
     25    </fileset>
    3726
    38     <!-- Generate distribution -->
    39     <target name="dist" depends="compile,revision" description="Generate distribution">
    40         <copy todir="${plugin.build.dir}/images">
    41             <fileset dir="images"/>
    42         </copy>
    43         <copy todir="${plugin.build.dir}/data">
    44             <fileset dir="data"/>
    45         </copy>
    46         <copy todir="${plugin.build.dir}/">
     27    <target name="setup-dist">
     28        <antcall target="setup-dist-default" />
     29        <copy todir="${plugin.build.dir}">
    4730            <fileset dir="resources">
    4831                <include name="*.xml"/>
    4932            </fileset>
    5033        </copy>
    51         <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}" manifestencoding="UTF-8">
    52         <!--
    53         ************************************************
    54         ** configure these properties. Most of them will be copied to the plugins
    55         ** manifest file. Property values will also show up in the list available
    56         ** plugins: https://josm.openstreetmap.de/wiki/Plugins.
    57         **
    58         ************************************************
    59         -->
    60             <manifest>
    61                 <attribute name="Author" value="Jose Vidal &lt;vidalfree@gmail.com&gt;, Juangui Jordán &lt;juangui@gmail.com&gt;, Hassan S &lt;hassan.sabirin@gmail.com&gt;"/>
    62                 <attribute name="Plugin-Class" value="com.innovant.josm.plugin.routing.RoutingPlugin"/>
    63                 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
    64                 <attribute name="Plugin-Description" value="Provides routing capabilities."/>
    65                 <attribute name="Plugin-Icon" value="images/preferences/routing.png"/>
    66                 <attribute name="Plugin-Link" value="https://wiki.openstreetmap.org/index.php/JOSM/Plugins/Routing"/>
    67                 <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
    68                 <attribute name="Plugin-Stage" value="50"/>
    69                 <attribute name="Plugin-Requires" value="log4j"/>
    70                 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    71             </manifest>
    72             <zipfileset src="${plugin.lib.dir}/jgrapht-jdk1.5.jar"/>
    73         </jar>
    7434    </target>
    7535</project>
Note: See TracChangeset for help on using the changeset viewer.