mirror of https://github.com/apache/maven.git
[MNG-6481] Fix Wagon sample plugin to pass tests with Java 11
Current working directory was different between 8 and 11
This commit is contained in:
parent
a68a0e9b72
commit
aafbf0f347
|
@ -162,7 +162,7 @@ public class CoreItWagon
|
|||
|
||||
try
|
||||
{
|
||||
File file = new File( "target/wagon.properties" ).getAbsoluteFile();
|
||||
File file = new File( System.getProperty( "user.dir" ), "target/wagon.properties" ).getAbsoluteFile();
|
||||
file.getParentFile().mkdirs();
|
||||
|
||||
try ( OutputStream os = new FileOutputStream( file ) )
|
||||
|
|
Loading…
Reference in New Issue