Ignore:
Timestamp:
2020-03-14T17:20:37+01:00 (5 years ago)
Author:
donvip
Message:

fix #josm18916 - Switch to Apache Ivy, add Commons Math (patch by taylor.smock)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/apache-commons/build.xml

    r35340 r35362  
    11<?xml version="1.0" encoding="utf-8"?>
    2 <project name="apache-commons" default="dist" basedir=".">
     2<project name="apache-commons" default="dist" basedir="." xmlns:ivy="antlib:org.apache.ivy.ant">
    33
    44    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
     
    1111    <property name="plugin.class" value="org.openstreetmap.josm.plugins.commons.CommonsPlugin"/>
    1212    <property name="plugin.description" value="Provides Apache Commons library components. Not meant to be installed directly by users, but rather as a dependency for other plugins."/>
    13    
    14         <property name="josm" location="../../core/dist/josm-custom.jar"/>
    15         <property name="plugin.dist.dir" value="../../dist"/>
     13
    1614    <!--<property name="plugin.requires" value=""/>-->
    1715    <property name="plugin.stage" value="10"/>
     
    2220    <import file="../build-common.xml"/>
    2321
    24     <!--
    25     ***************************************************************
    26     ** compile_lang3 - compiles Apache Commons Lang 3 (not UTF-8 !)
    27     ***************************************************************
    28     -->
    29     <target name="compile_lang3" depends="init">
    30         <echo message="compiling Apache Commons Lang 3 ... "/>
    31         <javac srcdir="src" includes="org/apache/commons/lang3/**" debug="false" destdir="${plugin.build.dir}" includeAntRuntime="false" encoding="ISO-8859-1" />
     22    <target name="resolve" description="--> retrieve dependencies with Ivy">
     23        <ivy:retrieve/>
    3224    </target>
    3325
    34     <!--
    35     **********************************************************
    36     ** compile - compiles the source tree
    37     **********************************************************
    38     -->
    39     <target name="compile" depends="compile_lang3">
    40         <echo message="compiling sources for ${plugin.jar} ... "/>
    41         <javac srcdir="src" debug="true" destdir="${plugin.build.dir}" includeAntRuntime="false" encoding="UTF-8">
    42             <exclude name="**/org/apache/commons/lang3/**" />
    43             <exclude name="**/org/apache/commons/collections4/bloomfilter/hasher/function/Murmur*.java" />
    44             <classpath>
    45                 <pathelement path="${plugin.build.dir}"/>
    46                 <path refid="plugin.classpath"/>
    47             </classpath>
    48         </javac>
    49     </target>
    50 
    51         <target name="pre-javadoc">
    52         <delete><fileset dir="src" includes="**/org/apache/commons/collections4/bloomfilter/hasher/function/Murmur*.java"/></delete>
    53     </target>
     26    <target name="dist" depends="resolve,plugin_common.dist"/>
    5427
    5528</project>
Note: See TracChangeset for help on using the changeset viewer.