Ticket #19421: 19421.patch

File 19421.patch, 3.5 KB (added by taylor.smock, 5 years ago)

Convert to ivy for dependencies, instead of carrying a copy in the repository

  • .classpath

     
    33        <classpathentry kind="src" path="src"/>
    44        <classpathentry combineaccessrules="false" kind="src" path="/JOSM"/>
    55        <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
     6        <classpathentry exported="true" kind="con" path="org.apache.ivyde.eclipse.cpcontainer.IVYDE_CONTAINER/?project=JOSM-apache-http&amp;ivyXmlPath=ivy.xml&amp;confs=*"/>
    67        <classpathentry combineaccessrules="false" kind="src" path="/JOSM-apache-commons"/>
    7         <classpathentry exported="true" kind="lib" path="lib/httpclient-4.5.6.jar"/>
    8         <classpathentry exported="true" kind="lib" path="lib/httpcore-4.4.10.jar"/>
    9         <classpathentry exported="true" kind="lib" path="lib/httpmime-4.5.6.jar"/>
    108        <classpathentry kind="output" path="bin"/>
    119</classpath>
  • build.xml

     
    11<?xml version="1.0" encoding="utf-8"?>
    2 <project name="apache-http" default="dist" basedir=".">
     2<project name="apache-http" default="dist" basedir="." xmlns:ivy="antlib:org.apache.ivy.ant">
    33
    44    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    55    <property name="plugin.main.version" value="10580"/>
     
    1010    <property name="plugin.author" value="Don-vip"/>
    1111    <property name="plugin.class" value="org.openstreetmap.josm.plugins.http.HttpPlugin"/>
    1212    <property name="plugin.description" value="Provides Apache HTTP library. 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="apache-commons;jna"/>
    1715    <property name="plugin.stage" value="15"/>
    1816
     
    1917    <!-- ** include targets that all plugins have in common ** -->
    2018    <import file="../build-common.xml"/>
    2119
     20    <target name="resolve" description="--> retrieve dependencies with Ivy">
     21        <ivy:retrieve/>
     22    </target>
     23
     24    <target name="dist" depends="resolve,plugin_common.dist"/>
     25
    2226</project>