org.glassfish.copyright
Class Copyright

java.lang.Object
  extended by org.glassfish.copyright.Copyright

public class Copyright
extends Object


Field Summary
 File alternateTemplate
           
 File correctTemplate
           
static boolean count
           
 boolean debug
           
 boolean doHidden
           
 boolean doJava
           
 boolean dontUpdate
           
 boolean doProps
           
 boolean doRepair
           
 boolean doText
           
 boolean doXml
           
 int errors
           
 List<String> excludes
           
 boolean git
           
static List<String> ignoredDirs
           
 boolean ignoreYear
           
 boolean mercurial
           
 int nDate
           
 int nEmpty
           
 int nMissing
           
 int nNoCE
           
 int nNoYear
           
 int nOldCDDL
           
 boolean normalize
           
 int nSun
           
 int nSunApache
           
 int nSunBSD
           
 int nWrong
           
 boolean quiet
           
 boolean skipNoSVN
           
 boolean useComma
           
 boolean warn
           
 
Constructor Summary
Copyright()
           
 
Method Summary
 void addExclude(String ex)
           
 void addExcludes(String file)
           
 void check(File file)
          Check the file.
 void checkMaven(File file)
          Check a Maven project directory.
static void main(String[] argv)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

debug

public boolean debug

warn

public boolean warn

ignoreYear

public boolean ignoreYear

useComma

public boolean useComma

doRepair

public boolean doRepair

dontUpdate

public boolean dontUpdate

normalize

public boolean normalize

skipNoSVN

public boolean skipNoSVN

doHidden

public boolean doHidden

mercurial

public boolean mercurial

git

public boolean git

count

public static boolean count

quiet

public boolean quiet

doJava

public boolean doJava

doXml

public boolean doXml

doProps

public boolean doProps

doText

public boolean doText

correctTemplate

public File correctTemplate

alternateTemplate

public File alternateTemplate

nMissing

public int nMissing

nEmpty

public int nEmpty

nSun

public int nSun

nSunApache

public int nSunApache

nSunBSD

public int nSunBSD

nOldCDDL

public int nOldCDDL

nNoCE

public int nNoCE

nWrong

public int nWrong

nNoYear

public int nNoYear

nDate

public int nDate

errors

public int errors

excludes

public List<String> excludes

ignoredDirs

public static final List<String> ignoredDirs
Constructor Detail

Copyright

public Copyright()
Method Detail

check

public void check(File file)
           throws IOException
Check the file. If the file is a directory, recurse.

Throws:
IOException

checkMaven

public void checkMaven(File file)
                throws IOException
Check a Maven project directory. Skip subdirectories that contain a pom.xml file.

Throws:
IOException

addExclude

public void addExclude(String ex)

addExcludes

public void addExcludes(String file)
                 throws IOException
Throws:
IOException

main

public static void main(String[] argv)
                 throws Exception
Throws:
Exception


Copyright © 2013 GlassFish Community. All Rights Reserved.