Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ assert new File(basedir,'mvnw').exists()
assert new File(basedir,'mvnw.cmd').exists()
assert !(new File(basedir,'mvnwDebug').exists())
assert !(new File(basedir,'mvnwDebug.cmd').exists())
assert new File(basedir,'.mvn/wrapper/maven-wrapper.properties').exists()

wrapperProperties = new File(basedir,'.mvn/wrapper/maven-wrapper.properties')
assert wrapperProperties.exists()
assert !wrapperProperties.text.contains('wrapperUrl')

log = new File(basedir, 'build.log').text
// check "mvn wrapper:wrapper" output
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ assert new File(basedir,'mvnw').exists()
assert new File(basedir,'mvnw.cmd').exists()
assert !(new File(basedir,'mvnwDebug').exists())
assert !(new File(basedir,'mvnwDebug.cmd').exists())
assert new File(basedir,'.mvn/wrapper/maven-wrapper.properties').exists()

wrapperProperties = new File(basedir,'.mvn/wrapper/maven-wrapper.properties')
assert wrapperProperties.exists()
assert wrapperProperties.text.contains('wrapperUrl')

log = new File(basedir, 'build.log').text
// check "mvn wrapper:wrapper" output
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,9 @@ private void replaceProperties(String wrapperVersion, Path targetFolder) throws
if (distributionSha256Sum != null) {
out.append("distributionSha256Sum=" + distributionSha256Sum + System.lineSeparator());
}
out.append("wrapperUrl=" + wrapperUrl + System.lineSeparator());
if (!distributionType.equals("only-script")) {
out.append("wrapperUrl=" + wrapperUrl + System.lineSeparator());
}
if (wrapperSha256Sum != null) {
out.append("wrapperSha256Sum=" + wrapperSha256Sum + System.lineSeparator());
}
Expand Down