org.appfuse.tool
Class ArtifactInstaller
java.lang.Object
org.appfuse.tool.ArtifactInstaller
public class ArtifactInstaller
- extends Object
This class is responsible for installing generated CRUD artifacts into an AppFuse application.
- Author:
- mraible
|
Constructor Summary |
ArtifactInstaller(org.apache.maven.project.MavenProject project,
String pojoName,
String sourceDirectory,
String destinationDirectory,
boolean genericCore)
|
|
Method Summary |
protected void |
copyGeneratedObjects(String inSourceDirectory,
String inDestinationDirectory,
String inPattern)
This method will copy files from the source directory to the destination directory based on
the pattern. |
protected org.apache.tools.ant.taskdefs.LoadFile |
createLoadFileTask(String inFile,
String propName)
This method will create an ANT based LoadFile task based on an infile and a property name. |
void |
execute()
|
org.apache.maven.plugin.logging.Log |
getLog()
|
void |
setGenericCore(boolean genericCore)
|
void |
setProject(org.apache.maven.project.MavenProject project)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ArtifactInstaller
public ArtifactInstaller(org.apache.maven.project.MavenProject project,
String pojoName,
String sourceDirectory,
String destinationDirectory,
boolean genericCore)
execute
public void execute()
copyGeneratedObjects
protected void copyGeneratedObjects(String inSourceDirectory,
String inDestinationDirectory,
String inPattern)
- This method will copy files from the source directory to the destination directory based on
the pattern.
- Parameters:
inSourceDirectory - The source directory to copy from.inDestinationDirectory - The destination directory to copy to.inPattern - The file pattern to match to locate files to copy.
createLoadFileTask
protected org.apache.tools.ant.taskdefs.LoadFile createLoadFileTask(String inFile,
String propName)
- This method will create an ANT based LoadFile task based on an infile and a property name.
The property will be loaded with the infile for use later by the Replace task.
- Parameters:
inFile - The file to processpropName - the name to assign it to
- Returns:
- The ANT LoadFile task that loads a property with a file
getLog
public org.apache.maven.plugin.logging.Log getLog()
setProject
public void setProject(org.apache.maven.project.MavenProject project)
setGenericCore
public void setGenericCore(boolean genericCore)
Copyright © 2003-2012. All Rights Reserved.