|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.appfuse.tool.RenamePackages
public class RenamePackages
This class is almost a complete copy of replacepackages by Ben Gill. These utility methods can be used in the plugin to change package names of appfuse source contributions. Liberties have been taken to make this open source code just work here. Some methods were removed and logging now uses SystemStreamLog from Apache (Maven)
| Field Summary | |
|---|---|
protected org.apache.maven.plugin.logging.Log |
log
|
| Constructor Summary | |
|---|---|
RenamePackages(String newPackage)
Constructor |
|
| Method Summary | |
|---|---|
void |
addFileset(org.apache.tools.ant.types.FileSet fileset)
simple method to add filesets |
void |
deleteAll(String fileName)
This method removes directory structures |
void |
execute()
This is the main method that gets invoked when ANT calls this task |
String |
fromFile(String fileName)
|
void |
setBaseDir(String baseDir)
Set the base directory. |
void |
setExistingPkgName(String existingPkgName)
Set the existing package name. |
void |
setInvalidFileTypes(String invalidFileTypes)
Override the default set of invalid file types that will be moved to the new package structure. |
void |
setNewPkgName(String newPkgName)
Set the new package name. |
void |
toFile(String fileName,
String contents)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final transient org.apache.maven.plugin.logging.Log log
| Constructor Detail |
|---|
public RenamePackages(String newPackage)
| Method Detail |
|---|
public void addFileset(org.apache.tools.ant.types.FileSet fileset)
fileset - public void setInvalidFileTypes(String invalidFileTypes)
invalidFileTypes - public void setBaseDir(String baseDir)
baseDir -
public void setExistingPkgName(String existingPkgName)
throws Exception
existingPkgName -
Exception
public void setNewPkgName(String newPkgName)
throws Exception
newPkgName -
Exception
public String fromFile(String fileName)
throws IOException
IOException
public void toFile(String fileName,
String contents)
throws IOException
IOExceptionpublic void deleteAll(String fileName)
public void execute()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||