public class BuildHMCXml
extends org.apache.tools.ant.Task
| Constructor and Description |
|---|
BuildHMCXml() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
buildMainHMC()
Build the global hmc.xml which can be validate.
|
void |
execute() |
protected java.lang.String |
readFromFile(java.io.File file)
read from file and put file content into a string
|
protected void |
searchForHMCXmls()
search for the main hmc.xml, store the link and search for all extensions hmc.xml and store them
|
void |
setFileName(java.lang.String s) |
protected void |
setHeaderAndRootNode(java.io.File file)
set a xml header and the root node to a hmc.xml file, not uses at the moment
|
protected void |
writeToFile(java.io.File file,
java.lang.String string)
write String to file
|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypepublic void setFileName(java.lang.String s)
public void execute()
throws org.apache.tools.ant.BuildException
execute in class org.apache.tools.ant.Taskorg.apache.tools.ant.BuildExceptionprotected void searchForHMCXmls()
protected void setHeaderAndRootNode(java.io.File file)
throws java.io.IOException,
java.io.FileNotFoundException
file - the file without header ands root nodejava.io.IOException - throws by IO Errorjava.io.FileNotFoundException - throws if file is not foundprotected void buildMainHMC()
throws java.io.FileNotFoundException,
java.io.IOException
java.io.FileNotFoundException - if one of the hmc.xml file is not foundjava.io.IOException - throws by IO Errorprotected java.lang.String readFromFile(java.io.File file)
throws java.io.IOException,
java.io.FileNotFoundException
file - the file to readjava.io.IOException - by IO Errorjava.io.FileNotFoundException - throws if file not foundprotected void writeToFile(java.io.File file,
java.lang.String string)
throws java.io.IOException
file - the filestring - the stringjava.io.IOException - IO ErrorCopyright © 2018 SAP SE. All Rights Reserved.