org.rhq.helpers.bundleGen
Class BundleGen

java.lang.Object
  extended by org.rhq.helpers.bundleGen.BundleGen

public class BundleGen
extends Object

Main class of a (simple) bundle creator

Author:
Heiko W. Rupp

Constructor Summary
BundleGen()
           
 
Method Summary
 void createFile(Props props, String template, String fileName, String directory)
          Apply a freemarker template to generate a file
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BundleGen

public BundleGen()
Method Detail

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception

createFile

public void createFile(Props props,
                       String template,
                       String fileName,
                       String directory)
Apply a freemarker template to generate a file

Parameters:
props - The properties used to create the respective file
template - The name of the template without .ftl suffix
fileName - The name of the file to create
directory - The name of the directory to create in


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.