target link was being created incorrectly
If the target symbolic link already existed, an invalid link in target was created to java/target. Fixed by checking if the link exists before creating it Change-Id: If0ab57bfd8989f7c9d0facd8d1e8b9aaa98bc578
This commit is contained in:
parent
9297275bd9
commit
c7fca66e0e
|
@ -1,4 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
set -x
|
||||||
# Download maven 3 if the system maven isn't maven 3
|
# Download maven 3 if the system maven isn't maven 3
|
||||||
VERSION=`mvn -v | grep "Apache Maven 3"`
|
VERSION=`mvn -v | grep "Apache Maven 3"`
|
||||||
if [ -z "${VERSION}" ]; then
|
if [ -z "${VERSION}" ]; then
|
||||||
|
@ -42,7 +43,9 @@ RC=$?
|
||||||
|
|
||||||
# Copy the jars where the publisher will find them
|
# Copy the jars where the publisher will find them
|
||||||
if [ $RUN_BUILD = "true" ]; then
|
if [ $RUN_BUILD = "true" ]; then
|
||||||
ln -sf java/target target
|
if [ ! -L target ]; then
|
||||||
|
ln -sf java/target target
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rm -fr apache-maven-3.2.1*
|
rm -fr apache-maven-3.2.1*
|
||||||
|
|
Loading…
Reference in New Issue