|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectplanetj.util.CopyrightGenerator
Appends copyright info to .java files
Constructor Summary | |
CopyrightGenerator()
|
Method Summary | |
static void |
getCopyrightText()
Getst the complete copyright text to add/update |
static java.lang.String |
getProductName()
Get the product name |
static java.lang.String |
getYear()
Gets the current year |
static void |
main(java.lang.String[] args)
Takes one or two arguments. |
static void |
updateCopyright(java.io.File origFile)
Adds/updates the copyright text to a single file |
static void |
updateCopyright(java.lang.String path)
Adds/updates the copyright text to a single file |
static int |
updateCopyrightInDirectory(java.io.File dir,
boolean recursive)
Updates the copyright in all the .java files in the directory |
static int |
updateCopyrightInDirectory(java.lang.String directory,
boolean recursive)
Updates the copyright in all the .java files in the directory |
static void |
writeCopyrightText(java.io.Writer w)
Appends the complete copyright text to the writer |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CopyrightGenerator()
Method Detail |
public static void getCopyrightText()
public static java.lang.String getProductName()
public static java.lang.String getYear()
public static void main(java.lang.String[] args)
public static void updateCopyright(java.io.File origFile) throws java.io.IOException, CMException
java.io.IOException
CMException
public static void updateCopyright(java.lang.String path) throws java.io.IOException, CMException
java.io.IOException
CMException
public static int updateCopyrightInDirectory(java.io.File dir, boolean recursive) throws CMException
dir
- The directoryrecursive
- Whether the process should be repeated for subdirectories
CMException
public static int updateCopyrightInDirectory(java.lang.String directory, boolean recursive) throws CMException
directory
- The path to the directoryrecursive
- Whether the process should be repeated for subdirectories
CMException
public static void writeCopyrightText(java.io.Writer w) throws java.io.IOException
java.io.IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |