Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
added formatting to mvn version command

Signed-off-by: fhochleitner <[email protected]>
  • Loading branch information
fhochleitner committed Oct 10, 2023
1 parent 0d40ea0 commit a6ec7ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion maven/bin/mvn-wrapper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ main(){
else
SETTINGS_STRING="-s /usr/share/maven/conf/settings.xml"
fi
mvn --version | while IFS= read -r line; do printf '%s [maven-wrapper] %s\n' "$(date '+%Y-%m-%d %H:%M:%S')" "$line"; done
printf "%s [maven-wrapper] %s" "$(date '+%Y-%m-%d %T')" "mvn $* $SETTINGS_STRING"
bash -c "mvn --version"
bash -c "mvn $* -D org.slf4j.simpleLogger.showDateTime=true -D org.slf4j.simpleLogger.dateTimeFormat='yyyy-MM-dd HH:mm:ss' ${SETTINGS_STRING} -fae"
}

Expand Down

0 comments on commit a6ec7ef

Please sign in to comment.