com.izforge.izpack.ant
Class ConfigHolder

java.lang.Object
  extended by com.izforge.izpack.ant.ConfigHolder

public class ConfigHolder
extends java.lang.Object

A nested element holder for the installation configuration document content. The installation document must be passed in using a CDATA element.

Version:
$Revision: 1391 $
Author:
Scott Stark

Field Summary
private  java.lang.String installText
          The config element body text with ${x} property references replaced
private  org.apache.tools.ant.Project project
          The parent element project
 
Constructor Summary
ConfigHolder(org.apache.tools.ant.Project project)
           
 
Method Summary
 void addText(java.lang.String rawText)
          Called by ant to set the config element content.
 java.lang.String getText()
          Get the config element body text with @{x} property references replaced
(package private) static void parseCompileProperties(java.lang.String value, java.util.Vector fragments, java.util.Vector propertyRefs)
          Taken from the ant org.apache.tools.ant.PropertyHelper and '$' replaced with '@' to deal with @{x} style property references.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

project

private org.apache.tools.ant.Project project
The parent element project


installText

private java.lang.String installText
The config element body text with ${x} property references replaced

Constructor Detail

ConfigHolder

ConfigHolder(org.apache.tools.ant.Project project)
Method Detail

parseCompileProperties

static void parseCompileProperties(java.lang.String value,
                                   java.util.Vector fragments,
                                   java.util.Vector propertyRefs)
                            throws org.apache.tools.ant.BuildException
Taken from the ant org.apache.tools.ant.PropertyHelper and '$' replaced with '@' to deal with @{x} style property references. Parses a string containing @{xxx} style property references into two lists. The first list is a collection of text fragments, while the other is a set of string property names. null entries in the first list indicate a property reference from the second list. It can be overridden with a more efficient or customized version.

Parameters:
value - Text to parse. Must not be null.
fragments - List to add text fragments to. Must not be null.
propertyRefs - List to add property names to. Must not be null.
Throws:
org.apache.tools.ant.BuildException - if the string contains an opening @{ without a closing }

addText

public void addText(java.lang.String rawText)
Called by ant to set the config element content. The content is scanned for @{x} style property references and replaced with the x project property.

Parameters:
rawText - - the raw config element body text.

getText

public java.lang.String getText()
Get the config element body text with @{x} property references replaced

Returns:
the processed config element body text.