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
|
||||
{
|
||||
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" );
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue