- Most importantly that means to modify files that have no other (real) changes in that year.
- It was hard to find the files with missing legal headers.
- It was hard (well, mostly because I wasn't smart enough) to have different copyright owners.
Copyright (c) 2008, 2009, 2011-2013 Owner and others.
Yesterday I've finally finished this tool:
A simple Check Copyrights for missing copyrights ends with:
Copyrights missing: 0
Copyrights rewritten: 0
Files visited: 22722
Time needed: 5.73 seconds
Copyrights rewritten: 0
Files visited: 22722
Time needed: 5.73 seconds
If there are copyrights missing the tool produces a list of the paths and can optionally open them in editors. The Update Copyrights action takes approx. 35 minutes on the same working tree and results in files with beautiful legal headers that are totally in line with the Git history.
If you are interested in the code have a look at UpdateCopyrightsAction.java. There are just a few places that are CDO-specific and I would be happy to review your patches to make the tool more flexible.
Are your projects mavenized? You can use the license-maven-plugin to fill your copyright automatically at all maven compilation
ReplyDelete