JAMES-2477 Allow passing additional arguments to maven dockerized build
Project: http://git-wip-us.apache.org/repos/asf/james-project/repo Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/42536465 Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/42536465 Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/42536465 Branch: refs/heads/master Commit: 42536465ef5a0e83ecb24478860baa99a0c6a661 Parents: e124259 Author: benwa <[email protected]> Authored: Mon Jul 23 13:53:41 2018 +0700 Committer: benwa <[email protected]> Committed: Tue Jul 24 09:50:44 2018 +0700 ---------------------------------------------------------------------- dockerfiles/compilation/java-8/compile.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/james-project/blob/42536465/dockerfiles/compilation/java-8/compile.sh ---------------------------------------------------------------------- diff --git a/dockerfiles/compilation/java-8/compile.sh b/dockerfiles/compilation/java-8/compile.sh index 3300aad..954e78a 100755 --- a/dockerfiles/compilation/java-8/compile.sh +++ b/dockerfiles/compilation/java-8/compile.sh @@ -6,6 +6,9 @@ printUsage() { echo "./compile.sh [-s | --skipTests] SHA1" echo " -s: Skip test" echo " SHA1: SHA1 to build (optional)" + echo "" + echo "Environment:" + echo " - MVN_ADDITIONAL_ARG_LINE: Allow passing additional command arguments to the maven command" exit 1 } @@ -47,9 +50,9 @@ git checkout $SHA1 # Compilation if [ "$SKIPTESTS" = "skipTests" ]; then - mvn package -DskipTests + mvn package -DskipTests ${MVN_ADDITIONAL_ARG_LINE} else - mvn package + mvn package ${MVN_ADDITIONAL_ARG_LINE} fi # Retrieve result --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
