org.rhq.helpers.pluginGen
Class PluginGen
java.lang.Object
org.rhq.helpers.pluginGen.PluginGen
public class PluginGen
- extends java.lang.Object
Main class for the plugin generator
- Author:
- Heiko W. Rupp
|
Method Summary |
void |
createFile(Props props,
java.lang.String template,
java.lang.String fileName,
java.lang.String directory)
Apply a template to generate a file |
static void |
main(java.lang.String[] arg)
|
void |
run()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PluginGen
public PluginGen()
main
public static void main(java.lang.String[] arg)
throws java.lang.Exception
- Throws:
java.lang.Exception
run
public void run()
throws java.lang.Exception
- Throws:
java.lang.Exception
createFile
public void createFile(Props props,
java.lang.String template,
java.lang.String fileName,
java.lang.String directory)
- Apply a template to generate a file
- Parameters:
props - The properties used to create the respective filetemplate - The name of the template without .ftl suffixfileName - The name of the file to createdirectory - The name of the directory to create in
Copyright © 2008-2009 Red Hat, Inc.. All Rights Reserved.