need to log rotate modules.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@4556 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2007-08-31 00:37:14 +00:00
1 parent 246eaf9162
commit f93e0ca057
1 file changed
+8
@@ -4,6 +4,7 @@ import hudson.CopyOnWrite;
import hudson.FilePath;
import hudson.Indenter;
import hudson.Util;
import hudson.matrix.MatrixConfiguration;
import hudson.model.AbstractProject;
import hudson.model.Action;
import hudson.model.DependencyGraph;
@@ -287,6 +288,13 @@ public final class MavenModuleSet extends AbstractMavenProject<MavenModuleSet,Ma
return super.assignBuildNumber();
}
public void logRotate() throws IOException {
super.logRotate();
// perform the log rotation of modules
for (MavenModule m : modules.values())
m.logRotate();
}
/**
* The next build of {@link MavenModuleSet} must have
* the build number newer than any of the current module build.