o Decoupled it0056 from production plugins

git-svn-id: https://svn.apache.org/repos/asf/maven/core-integration-testing/trunk@732102 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2009-01-06 20:32:38 +00:00
parent fee41bd09f
commit c13afcd2d8
2 changed files with 13 additions and 7 deletions

View File

@ -36,12 +36,16 @@ public class MavenIT0056Test
throws Exception
{
File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/it0056" );
Verifier verifier = new Verifier( testDir.getAbsolutePath() );
verifier.setAutoclean( false );
verifier.deleteDirectory( "target" );
verifier.executeGoal( "initialize" );
verifier.assertFilePresent( "target/first-exec.txt" );
verifier.assertFilePresent( "target/file.txt" );
verifier.verifyErrorFreeLog();
verifier.resetStreams();
verifier.assertFilePresent( "target/first-exec.txt" );
verifier.assertFilePresent( "target/second-exec.txt" );
}
}

View File

@ -37,26 +37,28 @@ under the License.
<plugins>
<plugin>
<groupId>org.apache.maven.its.plugins</groupId>
<artifactId>maven-it-plugin-file</artifactId>
<artifactId>maven-it-plugin-log-file</artifactId>
<version>2.1-SNAPSHOT</version>
<executions>
<execution>
<id>first-exec</id>
<phase>validate</phase>
<goals>
<goal>file</goal>
<goal>reset</goal>
</goals>
<configuration>
<pathname>target/first-exec.txt</pathname>
<logFile>target/first-exec.txt</logFile>
</configuration>
</execution>
<execution>
<id>second-exec</id>
<phase>initialize</phase>
<goals>
<goal>file</goal>
<goal>reset</goal>
</goals>
<!-- just use default values here -->
<configuration>
<logFile>target/second-exec.txt</logFile>
</configuration>
</execution>
</executions>
</plugin>