Changeset 34045 in osm for applications/editors


Ignore:
Timestamp:
2018-02-05T22:18:41+01:00 (7 years ago)
Author:
donvip
Message:

publish sources and javadoc jars for plugins

Location:
applications/editors/josm
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins

    • Property svn:ignore
      •  

        old new  
        1616osm-obj-info.git
        1717tofix.git
         18atlas.git
  • applications/editors/josm/plugins/build-common.xml

    r34039 r34045  
    2323    <property name="plugin.test.dir"        location="test"/>
    2424    <property name="plugin.src.dir"         location="src"/>
     25    <property name="plugin.doc.dir"         location="javadoc"/>
    2526    <property name="plugin.lib.dir"         location="lib"/>
    2627    <!-- this is the directory where the plugin jar is copied to -->
     
    2930    <property name="ant.build.javac.source" value="1.8"/>
    3031    <property name="plugin.jar"             location="${plugin.dist.dir}/${ant.project.name}.jar"/>
     32    <property name="plugin.sources.jar"     location="${plugin.dist.dir}/${ant.project.name}-sources.jar"/>
     33    <property name="plugin.javadoc.jar"     location="${plugin.dist.dir}/${ant.project.name}-javadoc.jar"/>
    3134    <property name="javac.compiler"         value="com.google.errorprone.ErrorProneAntCompilerAdapter" />
    3235
     
    120123    <!--
    121124    **********************************************************
    122     ** dist - creates the plugin jar
    123     **********************************************************
    124     -->
    125     <target name="dist" depends="compile,revision" unless="skip-dist">
     125    ** dist - creates the plugin jars
     126    **********************************************************
     127    -->
     128    <target name="dist" depends="compile,javadoc,revision" unless="skip-dist">
    126129        <echo message="creating ${ant.project.name}.jar ... "/>
    127130        <antcall target="setup-dist" />
     
    183186            </restrict>
    184187        </jar>
     188        <jar destfile="${plugin.sources.jar}" basedir="${plugin.src.dir}"/>
     189        <jar destfile="${plugin.javadoc.jar}" basedir="${plugin.doc.dir}"/>
    185190        <delete file="MANIFEST" failonerror="no"/>
    186191        <antcall target="post-dist" />
     
    211216    </target>
    212217    <target name="javadoc">
    213         <javadoc destdir="javadoc"
     218        <javadoc destdir="${plugin.doc.dir}"
    214219                sourcepath="${plugin.src.dir}"
    215220                encoding="UTF-8"
     
    220225                author="false">
    221226            <classpath refid="plugin.classpath"/>
    222             <link href="http://docs.oracle.com/javase/8/docs/api"/>
     227            <link href="https://docs.oracle.com/javase/8/docs/api"/>
    223228            <link href="https://josm.openstreetmap.de/doc"/>
    224229            <doctitle><![CDATA[<h2>JOSM-${ant.project.name} - Javadoc</h2>]]></doctitle>
     
    323328    <target name="clean">
    324329        <delete dir="${plugin.build.dir}"/>
     330        <delete dir="${plugin.doc.dir}"/>
    325331        <delete dir="${checkstyle-build.dir}"/>
    326332        <delete file="${plugin.jar}"/>
     333        <delete file="${plugin.sources.jar}"/>
     334        <delete file="${plugin.javadoc.jar}"/>
    327335    </target>
    328336    <!--
     
    399407            <arg value="up"/>
    400408            <arg value="../dist/${plugin.jar}"/>
     409            <arg value="../dist/${plugin.javadoc.jar}"/>
     410            <arg value="../dist/${plugin.sources.jar}"/>
    401411        </exec>
    402412    </target>
     
    421431            <arg value="commit"/>
    422432            <arg value="${plugin.jar}"/>
     433            <arg value="${plugin.sources.jar}"/>
     434            <arg value="${plugin.javadoc.jar}"/>
    423435        </exec>
    424436    </target>
Note: See TracChangeset for help on using the changeset viewer.