|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--planetj.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 String |
getProductName()
Get the product name |
static String |
getYear()
Gets the current year |
static void |
main(String[] args)
Takes one or two arguments. |
static void |
updateCopyright(File origFile)
Adds/updates the copyright text to a single file |
static void |
updateCopyright(String path)
Adds/updates the copyright text to a single file |
static int |
updateCopyrightInDirectory(File dir,
boolean recursive)
Updates the copyright in all the .java files in the directory |
static int |
updateCopyrightInDirectory(String directory,
boolean recursive)
Updates the copyright in all the .java files in the directory |
static void |
writeCopyrightText(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 String getProductName()
public static String getYear()
public static void main(String[] args)
public static void updateCopyright(File origFile)
throws IOException,
CMException
IOException
CMException
public static void updateCopyright(String path)
throws IOException,
CMException
IOException
CMException
public static int updateCopyrightInDirectory(File dir,
boolean recursive)
throws CMException
dir - The directoryrecursive - Whether the process should be repeated for subdirectories
CMException
public static int updateCopyrightInDirectory(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(Writer w)
throws IOException
IOException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||