topological sort is only for active modules.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@4746 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2007-09-14 04:36:20 +00:00
1 parent b7a8c20efa
commit abf398b20f
1 file changed
+1 -1
@@ -146,7 +146,7 @@ public final class MavenModuleSet extends AbstractMavenProject<MavenModuleSet,Ma
* or all enabeld modules (if disabled==false)
*/
public List<MavenModule> getDisabledModules(boolean disabled) {
if(sortedActiveModules!=null)
if(!disabled && sortedActiveModules!=null)
return sortedActiveModules;
List<MavenModule> r = new ArrayList<MavenModule>();