Skip to content

Commit

Permalink
pass ARTIFACT_TYPE
Browse files Browse the repository at this point in the history
  • Loading branch information
wulliam committed Jun 7, 2017
1 parent c065bd4 commit 6fa1e25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sti/bin/assemble
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ if [ -f "$LOCAL_SOURCE_DIR/pom.xml" ]; then
# artifacts type (war; jar)
ARTIFACT_TYPE=${ARTIFACT_TYPE:-jar}

echo "dir is ${ARTIFACT_TYPE}, and file type is ${ARTIFACT_TYPE}"
echo "dir is ${ARTIFACT_DIR}, and file type is ${ARTIFACT_TYPE}"

pushd $LOCAL_SOURCE_DIR &> /dev/null

Expand All @@ -71,7 +71,7 @@ if [ -f "$LOCAL_SOURCE_DIR/pom.xml" ]; then
# Copy built artifacts (if any!) from the target/ directory
# (or $ARTIFACT_DIR if specified)
# to the $DEPLOY_DIR directory for later deployment
copy_artifacts "$ARTIFACT_DIR" jar
copy_artifacts "$ARTIFACT_DIR" "$ARTIFACT_TYPE"

# optionally clear the local maven repository after the build
clear_maven_repository
Expand Down

0 comments on commit 6fa1e25

Please sign in to comment.