public class ComponentInfoWriter extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_COMP_INFO_FILENAME |
static String |
DEFAULT_TEMPLATE_FILENAME |
| Constructor and Description |
|---|
ComponentInfoWriter() |
| Modifier and Type | Method and Description |
|---|---|
static void |
fillPlaceholder(StringBuffer buffer,
String placeholder,
String value)
Replace all instances of placeholder with value in the given buffer.
|
static String |
generateComponentInfo(ComponentInfo compInfo) |
static String |
getComponentInfoTemplate() |
static String |
getLibrariesEntEntry(ComponentInfo compInfo)
Generate an entry for the libraries.ent file based on the given componentInfo object
|
static void |
loadTemplate()
Load the component-info template file.
|
static void |
setComponentInfoTemplate(String theComponentInfoTemplate) |
static void |
writeComponentInfo(ComponentInfo compInfo,
File outputFile)
Write a componentInfo object to a file.
|
public static final String DEFAULT_TEMPLATE_FILENAME
public static final String DEFAULT_COMP_INFO_FILENAME
public static String getComponentInfoTemplate()
public static void setComponentInfoTemplate(String theComponentInfoTemplate)
public static void loadTemplate()
throws IOException
IOExceptionpublic static void writeComponentInfo(ComponentInfo compInfo, File outputFile) throws IOException
compInfo - outputFile - IOExceptionpublic static String generateComponentInfo(ComponentInfo compInfo)
public static String getLibrariesEntEntry(ComponentInfo compInfo)
compInfo - public static void fillPlaceholder(StringBuffer buffer, String placeholder, String value)
buffer - The buffer to be modifiedvar - The name of the variable to be evaluated.value - The replacement string.Copyright © 2007-2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.