mirror of https://github.com/apache/maven.git
o Extended IT to check selection of projects with non-default POM filenames
git-svn-id: https://svn.apache.org/repos/asf/maven/core-integration-testing/trunk@795027 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b2e3158b07
commit
a397f3e78f
|
@ -152,6 +152,32 @@ public class MavenITmng2576MakeLikeReactorTest
|
||||||
verifier.assertFileNotPresent( "sub-d/target/touch.txt" );
|
verifier.assertFileNotPresent( "sub-d/target/touch.txt" );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Verify that using the mere basedir in the project list properly matches projects with non-default POM files.
|
||||||
|
*/
|
||||||
|
public void testitMatchesByBasedir()
|
||||||
|
throws Exception
|
||||||
|
{
|
||||||
|
File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-2576" );
|
||||||
|
|
||||||
|
Verifier verifier = new Verifier( testDir.getAbsolutePath() );
|
||||||
|
verifier.setAutoclean( false );
|
||||||
|
clean( verifier );
|
||||||
|
verifier.assertFileNotPresent( "sub-d/pom.xml" );
|
||||||
|
verifier.getCliOptions().add( "-pl" );
|
||||||
|
verifier.getCliOptions().add( "sub-d" );
|
||||||
|
verifier.setLogFileName( "log-basedir.txt" );
|
||||||
|
verifier.executeGoal( "validate" );
|
||||||
|
verifier.verifyErrorFreeLog();
|
||||||
|
verifier.resetStreams();
|
||||||
|
|
||||||
|
verifier.assertFileNotPresent( "target/touch.txt" );
|
||||||
|
verifier.assertFileNotPresent( "sub-a/target/touch.txt" );
|
||||||
|
verifier.assertFileNotPresent( "sub-b/target/touch.txt" );
|
||||||
|
verifier.assertFileNotPresent( "sub-c/target/touch.txt" );
|
||||||
|
verifier.assertFilePresent( "sub-d/target/touch.txt" );
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Verify that reactor is resumed from specified project.
|
* Verify that reactor is resumed from specified project.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -34,7 +34,7 @@ under the License.
|
||||||
<module>sub-a</module>
|
<module>sub-a</module>
|
||||||
<module>sub-b</module>
|
<module>sub-b</module>
|
||||||
<module>sub-c</module>
|
<module>sub-c</module>
|
||||||
<module>sub-d</module>
|
<module>sub-d/pom-special.xml</module>
|
||||||
</modules>
|
</modules>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
|
|
Loading…
Reference in New Issue