[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:
Sylwester Lachiewicz 2018-11-10 02:27:45 +01:00
parent a68a0e9b72
commit aafbf0f347
1 changed files with 1 additions and 1 deletions

View File

@ -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 ) )