minor change to matrix plugin to allow multiple sources for specifying to skip "matrix unit" test task generation

This commit is contained in:
Steve Ebersole 2012-01-25 12:28:39 -06:00
parent 181496ac7c
commit 34c2fa4409
1 changed files with 5 additions and 1 deletions

View File

@ -86,11 +86,15 @@ public class MatrixTestingPlugin implements Plugin<Project> {
matrixTask.dependsOn( matrixNodeTask );
}
if ( !System.properties[SKIP_UNIT_TEST].equals('true') ) {
if ( ! shouldSkipMatrixTestsAgainstDefaultDb() ) {
createTestTaskForMatrixSourceSet();
}
}
private boolean shouldSkipMatrixTestsAgainstDefaultDb() {
return "true".equals( project.properties[SKIP_UNIT_TEST] ) || "true".equals( System.properties[SKIP_UNIT_TEST] );
}
private List<MatrixNode> locateMatrixNodes() {
List<MatrixNode> matrixNodes = new ArrayList<MatrixNode>();
Iterable<DatabaseProfile> profiles = project.rootProject.plugins[DatabaseProfilePlugin].databaseProfiles;