bind generating local p2 repo to mvn compile goal

This commit is contained in:
Fredrik Teschke committed 2014-11-22 18:57:58 +01:00
1 parent 76ee054a29
commit d25757fd3f
3 files changed
+24 -9

No files matched your search

+2 -2
View File
@@ -556,9 +556,9 @@ if [[ "$@" == "build" ]] || [[ "$@" == "all" ]]; then
if [ $p2local -eq 1 ]; then
echo "INFO: Building and using local p2 repo"
#build local p2 repo
echo "Using following command (pwd: java/com.sap.sailing.targetplatform.base): mvn -fae -s $MAVEN_SETTINGS $clean tycho-p2-extras:publish-features-and-bundles"
echo "Using following command (pwd: java/com.sap.sailing.targetplatform.base): mvn -fae -s $MAVEN_SETTINGS $clean compile"
echo "Maven version used: `mvn --version`"
(cd com.sap.$PROJECT_TYPE.targetplatform.base; mvn -fae -s $MAVEN_SETTINGS $clean tycho-p2-extras:publish-features-and-bundles 2>&1 | tee $START_DIR/build.log)
(cd com.sap.$PROJECT_TYPE.targetplatform.base; mvn -fae -s $MAVEN_SETTINGS $clean compile 2>&1 | tee $START_DIR/build.log)
# now get the exit status from mvn, and not that of tee which is what $? contains now
MVN_EXIT_CODE=${PIPESTATUS[0]}
echo "Maven exit code is $MVN_EXIT_CODE"