Changeset 9a91443 for core


Ignore:
Timestamp:
Jun 13, 2016 6:02:48 AM (4 years ago)
Author:
str4d <str4d@…>
Branches:
master
Children:
47f0bbb
Parents:
249e6f0
Message:

Add build target for Maven Central

Requires the Maven Ant Tasks to be installed. On Debian:

sudo apt-get install libmaven-ant-tasks-java

File:
1 edited

Legend:

Unmodified
Added
Removed
  • core/java/build.xml

    r249e6f0 r9a91443  
    106106        <mkdir dir="./build/javadoc" />
    107107        <javadoc sourcepath="./src:./test/junit" destdir="./build/javadoc" packagenames="*" use="true" splitindex="true" windowtitle="I2P SDK" />
     108    </target>
     109
     110    <!-- for Maven Central -->
     111    <target name="javadocJar" depends="javadoc">
     112        <jar jarfile="./build/i2p-${release.number}-javadoc.jar">
     113            <fileset dir="./build/javadoc" />
     114        </jar>
     115    </target>
     116    <target name="sourcesJar">
     117        <jar jarfile="./build/i2p-${release.number}-sources.jar">
     118            <fileset dir="./src" />
     119        </jar>
    108120    </target>
    109121
Note: See TracChangeset for help on using the changeset viewer.