This is an automated email from the ASF dual-hosted git repository.
michaelo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-integration-testing.git
The following commit(s) were added to refs/heads/master by this push:
new 2ca196f Make ITs compile on Java 7
2ca196f is described below
commit 2ca196f4deb8db74e0896feb7a35ede8b28ce5c1
Author: Michael Osipov <[email protected]>
AuthorDate: Sat Jul 3 15:13:51 2021 +0200
Make ITs compile on Java 7
---
.../test/java/org/apache/maven/it/MavenITmng5937MavenWrapper.java | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git
a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5937MavenWrapper.java
b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5937MavenWrapper.java
index 5f8dff1..33dbb04 100644
---
a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5937MavenWrapper.java
+++
b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5937MavenWrapper.java
@@ -26,6 +26,7 @@ import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
+import java.nio.charset.StandardCharsets;
import java.nio.file.StandardOpenOption;
import java.util.HashMap;
import java.util.Map;
@@ -164,10 +165,11 @@ public class MavenITmng5937MavenWrapper
unpack( testDir.toPath(), "bin" );
Path p = baseDir.resolve(
"properties/.mvn/wrapper/maven-wrapper.properties" );
- try ( BufferedWriter out = Files.newBufferedWriter( p,
StandardOpenOption.TRUNCATE_EXISTING ) )
+ try ( BufferedWriter out = Files.newBufferedWriter( p,
StandardCharsets.ISO_8859_1,
+
StandardOpenOption.TRUNCATE_EXISTING ) )
{
String localRepo = System.getProperty("maven.repo.local");
- out.append( "distributionUrl = " + Paths.get( localRepo
).toUri().toURL().toString() )
+ out.append( "distributionUrl = " + Paths.get( localRepo
).toUri().toASCIIString() )
.append( "org/apache/maven/apache-maven/")
.append( getMavenVersion().toString() )
.append( "/apache-maven-")