We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f6187f commit c4c09a3Copy full SHA for c4c09a3
maven-wrapper-distribution/src/resources/only-mvnw
@@ -199,7 +199,7 @@ elif set_java_home; then
199
public static void main( String[] args ) throws Exception
200
{
201
setDefault( new Downloader() );
202
- java.nio.file.Files.copy( new java.net.URL( args[0] ).openStream(), java.nio.file.Paths.get( args[1] ).toAbsolutePath().normalize() );
+ java.nio.file.Files.copy( java.net.URI.create( args[0] ).toURL().openStream(), java.nio.file.Paths.get( args[1] ).toAbsolutePath().normalize() );
203
}
204
205
END
0 commit comments