| |
|
| java.lang.Object org.jboss.tools.license.ValidateLicenseHeaders
ValidateLicenseHeaders | public class ValidateLicenseHeaders (Code) | | A utility which scans all java source files in the cvs tree and validates
the license header prior to the package statement for headers that match
those declared in thirdparty/licenses/license-info.xml
author: Scott.Stark@jboss.org version: $Revision: 57184 $ |
Inner Class :static class LicenseHeader | |
Inner Class :static class DotJavaFilter implements FileFilter | |
COPYRIGHT_REGEX | final static String COPYRIGHT_REGEX(Code) | | Used to strip out diffs due to copyright date ranges
|
addDefaultHeader | static boolean addDefaultHeader(Code) | | |
invalidheaders | static ArrayList invalidheaders(Code) | | Java source files with a header that does not match one from licenseHeaders
|
jbossCount | static int jbossCount(Code) | | Total out of date jboss headers seen
|
licenseHeaders | static TreeMap licenseHeaders(Code) | | The term-headers from the thirdparty/license/license-info.xml
|
noheaders | static ArrayList noheaders(Code) | | Java source files with no license header
|
totalCount | static int totalCount(Code) | | Total java source files seen
|
addDefaultHeader | static void addDefaultHeader(File javaFile) throws IOException(Code) | | Add the default jboss lgpl header
|
getElementContent | public static String getElementContent(Element element)(Code) | | Get all non-comment content from the element.
Parameters: element - the concatenated text/cdata content |
main | public static void main(String[] args) throws Exception(Code) | | ValidateLicenseHeaders jboss-src-root
Parameters: args - |
parseHeader | static void parseHeader(File javaFile) throws IOException(Code) | | Read the first comment upto the package ...; statement
Parameters: javaFile - |
processSourceFiles | static void processSourceFiles(File[] files, int level) throws IOException(Code) | | Validate the headers of all java source files
Parameters: files - Parameters: level - throws: IOException - |
replaceHeader | static void replaceHeader(File javaFile, long endOfHeader) throws IOException(Code) | | Replace a legacy jboss header with the current default header
Parameters: javaFile - - the java source file Parameters: endOfHeader - - the offset to the end of the legacy header throws: IOException - - thrown on failure to replace the header |
|
|
|