mirror of https://github.com/apache/maven.git
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:
parent
fee41bd09f
commit
c13afcd2d8
|
@ -36,12 +36,16 @@ public class MavenIT0056Test
|
||||||
throws Exception
|
throws Exception
|
||||||
{
|
{
|
||||||
File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/it0056" );
|
File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/it0056" );
|
||||||
|
|
||||||
Verifier verifier = new Verifier( testDir.getAbsolutePath() );
|
Verifier verifier = new Verifier( testDir.getAbsolutePath() );
|
||||||
|
verifier.setAutoclean( false );
|
||||||
|
verifier.deleteDirectory( "target" );
|
||||||
verifier.executeGoal( "initialize" );
|
verifier.executeGoal( "initialize" );
|
||||||
verifier.assertFilePresent( "target/first-exec.txt" );
|
|
||||||
verifier.assertFilePresent( "target/file.txt" );
|
|
||||||
verifier.verifyErrorFreeLog();
|
verifier.verifyErrorFreeLog();
|
||||||
verifier.resetStreams();
|
verifier.resetStreams();
|
||||||
|
|
||||||
|
verifier.assertFilePresent( "target/first-exec.txt" );
|
||||||
|
verifier.assertFilePresent( "target/second-exec.txt" );
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,26 +37,28 @@ under the License.
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.its.plugins</groupId>
|
<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>
|
<version>2.1-SNAPSHOT</version>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<id>first-exec</id>
|
<id>first-exec</id>
|
||||||
<phase>validate</phase>
|
<phase>validate</phase>
|
||||||
<goals>
|
<goals>
|
||||||
<goal>file</goal>
|
<goal>reset</goal>
|
||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<pathname>target/first-exec.txt</pathname>
|
<logFile>target/first-exec.txt</logFile>
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
<execution>
|
<execution>
|
||||||
<id>second-exec</id>
|
<id>second-exec</id>
|
||||||
<phase>initialize</phase>
|
<phase>initialize</phase>
|
||||||
<goals>
|
<goals>
|
||||||
<goal>file</goal>
|
<goal>reset</goal>
|
||||||
</goals>
|
</goals>
|
||||||
<!-- just use default values here -->
|
<configuration>
|
||||||
|
<logFile>target/second-exec.txt</logFile>
|
||||||
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
Loading…
Reference in New Issue