[MNG-6426] IT for MNG-6127 fails on Java 9+

This commit is contained in:
Michael Osipov 2018-06-16 00:30:42 +02:00
parent d1b0435670
commit cfacb95634
9 changed files with 18 additions and 18 deletions

View File

@ -29,8 +29,6 @@ under the License.
<properties>
<maven-version>3.2.1</maven-version>
<maven.compiler.source>1.5</maven.compiler.source>
<maven.compiler.target>1.5</maven.compiler.target>
</properties>
<dependencies>

View File

@ -29,8 +29,6 @@ under the License.
<properties>
<maven-version>3.2.1</maven-version>
<maven.compiler.source>1.5</maven.compiler.source>
<maven.compiler.target>1.5</maven.compiler.target>
</properties>
<dependencies>

View File

@ -30,8 +30,6 @@ under the License.
<properties>
<maven-version>3.2.1</maven-version>
<maven.compiler.source>1.5</maven.compiler.source>
<maven.compiler.target>1.5</maven.compiler.target>
</properties>
<dependencies>

View File

@ -29,8 +29,6 @@ under the License.
<properties>
<maven-version>3.2.1</maven-version>
<maven.compiler.source>1.5</maven.compiler.source>
<maven.compiler.target>1.5</maven.compiler.target>
</properties>
<dependencies>

View File

@ -30,8 +30,6 @@ under the License.
<properties>
<maven-version>3.2.1</maven-version>
<maven.compiler.source>1.5</maven.compiler.source>
<maven.compiler.target>1.5</maven.compiler.target>
</properties>
<dependencies>

View File

@ -29,8 +29,6 @@ under the License.
<properties>
<maven-version>3.2.1</maven-version>
<maven.compiler.source>1.5</maven.compiler.source>
<maven.compiler.target>1.5</maven.compiler.target>
</properties>
<dependencies>

View File

@ -30,8 +30,6 @@ under the License.
<properties>
<maven-version>3.2.1</maven-version>
<maven.compiler.source>1.5</maven.compiler.source>
<maven.compiler.target>1.5</maven.compiler.target>
</properties>
<dependencies>

View File

@ -30,8 +30,6 @@ under the License.
<properties>
<maven-version>3.3.1</maven-version>
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
</properties>
<dependencies>

View File

@ -64,8 +64,11 @@ public class TestMojo
File file = new File( project.getBasedir(), "configuration.txt" );
file.getParentFile().mkdirs();
try ( Writer w = new OutputStreamWriter( new FileOutputStream( file, true ), "UTF-8" ); )
Writer w = null;
try
{
w = new OutputStreamWriter( new FileOutputStream( file, true ), "UTF-8" );
if ( name != null )
{
w.write( "name=" + name + ", " );
@ -76,5 +79,18 @@ public class TestMojo
{
throw new MojoExecutionException( e.getMessage(), e );
}
finally
{
if ( w != null )
{
try
{
w.close();
}
catch ( IOException e )
{
}
}
}
}
}