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: Ie53f396820e0e0022a949799b2b433b5ae11c4d1
This commit is contained in:
Craig Bryant 2015-08-21 11:40:07 -06:00
parent 237c752e6a
commit 9aeec27d13
1 changed files with 3 additions and 1 deletions

View File

@ -42,7 +42,9 @@ RC=$?
# Copy the jars where the publisher will find them
if [ $RUN_BUILD = "true" ]; then
ln -sf thresh/target target
if [ ! -L target ]; then
ln -sf thresh/target target
fi
fi
rm -fr apache-maven-3.2.1*