You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nlpcraft.apache.org by se...@apache.org on 2020/12/06 15:18:16 UTC

[incubator-nlpcraft-java-client] branch master updated: prepare.sh file fixes.

This is an automated email from the ASF dual-hosted git repository.

sergeykamov pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft-java-client.git


The following commit(s) were added to refs/heads/master by this push:
     new f00188c  prepare.sh file fixes.
f00188c is described below

commit f00188c6cb5a0177e79650ead7b4073107256310
Author: Sergey Kamov <se...@apache.org>
AuthorDate: Sun Dec 6 18:18:02 2020 +0300

    prepare.sh file fixes.
---
 bin/prepare.sh | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/bin/prepare.sh b/bin/prepare.sh
index 64f23ac..cdae77f 100755
--- a/bin/prepare.sh
+++ b/bin/prepare.sh
@@ -18,7 +18,7 @@
 
 if [[ $1 = "" ]] ; then
     echo "Version must be set as input parameter."
-    exit -1
+    exit 1
 fi
 
 #
@@ -35,7 +35,7 @@ curDir=$(pwd)
 
 cd ../
 
-mvn clean package -Prelease
+mvn clean package -P release
 
 rm -R ${zipDir} 2> /dev/null
 
@@ -50,7 +50,7 @@ cp bindist/NOTICE ${zipDir}/${tmpDir}
 cp DISCLAIMER ${zipDir}/${tmpDir}
 cp src/main/resources/log4j2.xml ${zipDir}/${tmpDir}/build
 
-cp target/*all-deps.jar ${zipDir}/${tmpDir}/build
+cp target/*$1.jar ${zipDir}/${tmpDir}/build
 rsync -avzq target/apidocs/** ${zipDir}/${tmpDir}/javadoc --exclude '**/.DS_Store'
 
 # Prepares bin zip.
@@ -68,6 +68,8 @@ cp NOTICE ${zipDir}/${tmpDir}
 cp pom.xml ${zipDir}/${tmpDir}
 cp assembly.xml ${zipDir}/${tmpDir}
 cp README.md ${zipDir}/${tmpDir}
+mkdir ${zipDir}/${tmpDir}/javadoc
+cp javadoc/stylesheet.css ${zipDir}/${tmpDir}/javadoc
 
 # Prepares src zip.
 cd ${zipDir}
@@ -86,4 +88,4 @@ sign "${zipFileSrc}"
 cd ${curDir}
 
 echo
-echo "Files prepared in folder: ${zipDir}"
\ No newline at end of file
+echo "ZIPs are prepared in folder: ${zipDir}"
\ No newline at end of file