Skip to content

Commit 1f8d86c

Browse files
committed
Remove maven_s2i_deploy_artifacts_override
The function maven_s2i_deploy_artifacts checked for the existence of maven_s2i_deploy_artifacts_override, and if it exists, calls it and returns. The implementation of maven_s2i_deploy_artifacts_override simply deleted itself and called maven_s2i_deploy_artifacts again. Signed-off-by: Jonathan Dowland <[email protected]>
1 parent f8cf47e commit 1f8d86c

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

modules/maven/s2i/artifacts/opt/jboss/container/maven/s2i/maven-s2i

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,6 @@ function maven_s2i_maven_build() {
8080
# copy build output to deployments folder
8181
# internal method
8282
function maven_s2i_deploy_artifacts() {
83-
if [ -n "$(type -t maven_s2i_deploy_artifacts_override)" ]; then
84-
eval maven_s2i_deploy_artifacts_override $*
85-
return $?
86-
fi
87-
8883
local artifact_dirs=${1:-${MAVEN_S2I_ARTIFACT_DIRS}}
8984

9085
if [[ ! "${S2I_SOURCE_DIR}" =~ ^\/ ]]; then

modules/s2i/artifacts/opt/jboss/container/java/s2i/maven-s2i-overrides

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,3 @@ function maven_s2i_custom_binary_build() {
3333

3434
recursive_copy_files "${binary_dir}" "${S2I_TARGET_DEPLOYMENTS_DIR}"
3535
}
36-
37-
function maven_s2i_deploy_artifacts_override() {
38-
unset -f maven_s2i_deploy_artifacts_override
39-
eval maven_s2i_deploy_artifacts $*
40-
return $?
41-
}

0 commit comments

Comments
 (0)