Author: bentmann Date: Thu Apr 2 19:32:29 2009 New Revision: 761398 URL: http://svn.apache.org/viewvc?rev=761398&view=rev Log: o Fixed IT to ensure looked up tool path exists
Modified: maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng3714ToolchainsCliOptionTest.java Modified: maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng3714ToolchainsCliOptionTest.java URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng3714ToolchainsCliOptionTest.java?rev=761398&r1=761397&r2=761398&view=diff ============================================================================== --- maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng3714ToolchainsCliOptionTest.java (original) +++ maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng3714ToolchainsCliOptionTest.java Thu Apr 2 19:32:29 2009 @@ -48,8 +48,12 @@ throws Exception { File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-3714" ); + File javaHome = new File( testDir, "javaHome" ); javaHome.mkdirs(); + new File( javaHome, "bin" ).mkdirs(); + new File( javaHome, "bin/javac").createNewFile(); + new File( javaHome, "bin/javac.exe").createNewFile(); Verifier verifier = new Verifier( testDir.getAbsolutePath() ); Properties properties = verifier.newDefaultFilterProperties(); @@ -68,7 +72,7 @@ verifier.assertFilePresent( "target/toolchains.properties" ); Properties results = verifier.loadProperties( "target/toolchains.properties" ); - String tool = results.getProperty( "tool.1" ); + String tool = results.getProperty( "tool.1", "" ); if ( tool.endsWith( ".exe" ) ) { tool = tool.substring( 0, tool.length() - 4 );