New ant target 'mavenLocal' + changes in the script to support this.

This commit is contained in:
meeh
2019-05-29 18:22:33 +00:00
parent f94d2d5578
commit 098bde2a32
2 changed files with 26 additions and 2 deletions

View File

@ -2425,6 +2425,31 @@
<echo message="Now upload mavencentral-*.jar to Maven Central." />
</target>
<target name="mavenLocal.deps" depends="buildRouter, buildStreaming">
<ant dir="core/java/">
</ant>
<ant dir="router/java/">
</ant>
<ant dir="apps/ministreaming/java/">
</ant>
<ant dir="apps/streaming/java/">
</ant>
<ant dir="apps/jetty/">
<target name="servletJar" />
</ant>
</target>
<target name="mavenLocal" depends="-pre-release, distclean, testscripts, mavenLocal.deps">
<mkdir dir="./pkg-mavencentral" />
<!-- Libraries -->
<copy file="build/i2p.jar" tofile="pkg-mavencentral/i2p-${release.number}.jar" />
<copy file="build/router.jar" tofile="pkg-mavencentral/router-${release.number}.jar" />
<copy file="build/mstreaming.jar" tofile="pkg-mavencentral/mstreaming-${release.number}.jar" />
<copy file="build/streaming.jar" tofile="pkg-mavencentral/streaming-${release.number}.jar" />
<copy file="apps/jetty/build/servlet-i2p-${release.number}.jar" todir="pkg-mavencentral/" />
</target>
<target name="debian" depends="debian-clean, debchange, debian-binary" />
<target name="precise" depends="copy-precise, debian" />
<target name="wheezy" depends="precise" />

View File

@ -8,11 +8,10 @@ fi
BUILD_NUMBER="$1"
cd $I2P_SOURCE_DIR
ant mavenCentral || (echo "Build failed!!!" && exit 1)
ant mavenLocal || (echo "Build failed!!!" && exit 1)
# Append right build number to jar files (and everything else but we don't care)
cd $I2P_SOURCE_DIR/pkg-mavencentral
rm -f *-javadoc.jar *-sources.jar
for file in `ls -1`; do
filename=$(basename -- "$file")
extension="${filename##*.}"