Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2013-05-04 04:14:13 -0400
committerEike Stepper2013-05-04 04:14:13 -0400
commit2faddcbad3335d071a8976906cf49aaed986b950 (patch)
treeb34f78b856b82cbd66254e4ac3b9d432a1b76329
parent5612fb6d35c10e328517679e46e25a37728dd8e0 (diff)
downloadcdo-2faddcbad3335d071a8976906cf49aaed986b950.tar.gz
cdo-2faddcbad3335d071a8976906cf49aaed986b950.tar.xz
cdo-2faddcbad3335d071a8976906cf49aaed986b950.zip
Add GitCopyrightsActiondrops/I20130504-0414
-rw-r--r--plugins/org.eclipse.emf.cdo.releng.gitbash/src/org/eclipse/emf/cdo/releng/gitbash/repository/UpdateCopyrightsAction.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/plugins/org.eclipse.emf.cdo.releng.gitbash/src/org/eclipse/emf/cdo/releng/gitbash/repository/UpdateCopyrightsAction.java b/plugins/org.eclipse.emf.cdo.releng.gitbash/src/org/eclipse/emf/cdo/releng/gitbash/repository/UpdateCopyrightsAction.java
index a84ef7c058..39910e1c3e 100644
--- a/plugins/org.eclipse.emf.cdo.releng.gitbash/src/org/eclipse/emf/cdo/releng/gitbash/repository/UpdateCopyrightsAction.java
+++ b/plugins/org.eclipse.emf.cdo.releng.gitbash/src/org/eclipse/emf/cdo/releng/gitbash/repository/UpdateCopyrightsAction.java
@@ -95,6 +95,8 @@ public class UpdateCopyrightsAction extends AbstractAction<Repository>
private int rewriteCount;
+ private int fileCount;
+
public UpdateCopyrightsAction()
{
super(Repository.class);
@@ -118,8 +120,8 @@ public class UpdateCopyrightsAction extends AbstractAction<Repository>
workTree = repository.getWorkTree();
workTreeLength = workTree.getAbsolutePath().length() + 1;
- int totalWork = countFiles(workTree);
- monitor.beginTask("Copyrights", totalWork);
+ fileCount = countFiles(workTree);
+ monitor.beginTask("Copyrights", fileCount);
final long start = System.currentTimeMillis();
checkFolder(monitor, workTree);
@@ -151,6 +153,7 @@ public class UpdateCopyrightsAction extends AbstractAction<Repository>
{
missingCopyrights.clear();
rewriteCount = 0;
+ fileCount = 0;
workTree = null;
git = null;
monitor.done();
@@ -430,6 +433,7 @@ public class UpdateCopyrightsAction extends AbstractAction<Repository>
{
String message = "Copyrights missing: " + missingCopyrights.size();
message += "\nCopyrights rewritten: " + rewriteCount;
+ message += "\nFiles visited: " + fileCount;
message += "\nTime needed: " + duration;
int size = missingCopyrights.size();

Back to the top