[FIXED HUDSON-1375] Maven modules should not be buildable when the parent project is disabled

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@27254 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
mindless committed 2010-02-10 16:11:47 +00:00
1 parent d4ee4817e9
commit e605d071f1
3 files changed
+11 -5

No files matched your search

@@ -143,6 +143,12 @@ public final class MavenModule extends AbstractMavenProject<MavenModule,MavenBui
return false;
}
@Override
public boolean isBuildable() {
// not buildable if the parent project is disabled
return super.isBuildable() && getParent().isBuildable();
}
/**
* Computes the list of {@link MavenModule}s that are 'under' this POM filesystem-wise. The list doens't include
* this module itself.