Skip to content

Commit

Permalink
HADOOP-19064. [thirdparty] add -mvnargs option to create-release comm…
Browse files Browse the repository at this point in the history
…and line. (#31) Contributed by Shilun Fan

Reviewed-by: Steve Loughran <stevel@cloudera.com>
Reviewed-by: He Xiaoqiao <hexiaoqiao@apache.org>
Signed-off-by: Shilun Fan <slfan1989@apache.org>
  • Loading branch information
slfan1989 authored Feb 4, 2024
1 parent deb60e6 commit 3d23acf
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions dev-support/bin/create-release
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ function usage
echo "--security Emergency security release"
echo "--sign Use .gnupg dir to sign the artifacts and jars"
echo "--version=[version] Use an alternative version string"
echo "--mvnargs=[args] Extra Maven args to be provided when running mvn commands"
}

function option_parse
Expand Down Expand Up @@ -291,6 +292,9 @@ function option_parse
--version=*)
HADOOP_THIRDPARTY_VERSION=${i#*=}
;;
--mvnargs=*)
MVNEXTRAARGS=${i#*=}
;;
esac
done

Expand Down Expand Up @@ -358,6 +362,10 @@ function option_parse
fi
fi

if [ -n "$MVNEXTRAARGS" ]; then
MVN_ARGS+=("$MVNEXTRAARGS")
fi

if [[ "${SECURITYRELEASE}" = true ]]; then
if [[ ! -d "${BASEDIR}/src/site/markdown/release/${HADOOP_THIRDPARTY_VERSION}" ]]; then
hadoop_error "ERROR: ${BASEDIR}/src/site/markdown/release/${HADOOP_THIRDPARTY_VERSION} does not exist."
Expand Down

0 comments on commit 3d23acf

Please sign in to comment.