maven script cleanups

This commit is contained in:
zzz
2019-05-30 10:58:09 +00:00
parent 040e092153
commit 16ac93c36b
2 changed files with 2 additions and 9 deletions

View File

@@ -2426,14 +2426,6 @@
</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>

View File

@@ -4,6 +4,7 @@ I2P_SOURCE_DIR="$(realpath $SCRIPT_DIR/../..)"
if [[ -z "$1" ]]; then
echo "You must run the script with the build number as first argument. Example ./script 6"
exit 1
fi
BUILD_NUMBER="$1"
@@ -11,7 +12,7 @@ cd $I2P_SOURCE_DIR
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
cd $I2P_SOURCE_DIR/pkg-mavencentral || (echo "Build failed!!!" && exit 1)
for file in `ls -1`; do
filename=$(basename -- "$file")
extension="${filename##*.}"