|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.tools.ant.ProjectHelper
Configures a Project (complete with Targets and Tasks) based on a XML build file.
Method Summary | |
static void |
addText(Project project,
java.lang.Object target,
char[] buf,
int start,
int end)
Adds the content of #PCDATA sections to an element. |
static void |
addText(Project project,
java.lang.Object target,
java.lang.String text)
Adds the content of #PCDATA sections to an element. |
static void |
configure(java.lang.Object target,
org.xml.sax.AttributeList attrs,
Project project)
|
static void |
configureProject(Project project,
java.io.File buildFile)
Configures the Project with the contents of the specified XML file. |
static void |
parsePropertyString(java.lang.String value,
java.util.Vector fragments,
java.util.Vector propertyRefs)
This method will parse a string containing ${value} style property values into two lists. |
static java.lang.String |
replaceProperties(Project project,
java.lang.String value,
java.util.Hashtable keys)
Replace ${} style constructions in the given value with the string value of the corresponding data types. |
static void |
storeChild(Project project,
java.lang.Object parent,
java.lang.Object child,
java.lang.String tag)
Stores a configured child element into its parent object |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static void configureProject(Project project, java.io.File buildFile) throws BuildException
public static void configure(java.lang.Object target, org.xml.sax.AttributeList attrs, Project project) throws BuildException
public static void addText(Project project, java.lang.Object target, char[] buf, int start, int end) throws BuildException
public static void addText(Project project, java.lang.Object target, java.lang.String text) throws BuildException
public static void storeChild(Project project, java.lang.Object parent, java.lang.Object child, java.lang.String tag)
public static java.lang.String replaceProperties(Project project, java.lang.String value, java.util.Hashtable keys) throws BuildException
value
- the string to be scanned for property references.public static void parsePropertyString(java.lang.String value, java.util.Vector fragments, java.util.Vector propertyRefs) throws BuildException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |