public class BuildHMCXml
extends 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 String |
readFromFile(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(String s) |
protected void |
setHeaderAndRootNode(File file)
set a xml header and the root node to a hmc.xml file, not uses at the moment
|
protected void |
writeToFile(File file,
String string)
write String to file
|
public void setFileName(String s)
public void execute()
throws BuildException
BuildExceptionprotected void searchForHMCXmls()
protected void setHeaderAndRootNode(File file) throws IOException, FileNotFoundException
file - the file without header ands root nodeIOException - throws by IO ErrorFileNotFoundException - throws if file is not foundprotected void buildMainHMC()
throws FileNotFoundException,
IOException
FileNotFoundException - if one of the hmc.xml file is not foundIOException - throws by IO Errorprotected String readFromFile(File file) throws IOException, FileNotFoundException
file - the file to readIOException - by IO ErrorFileNotFoundException - throws if file not foundprotected void writeToFile(File file, String string) throws IOException
file - the filestring - the stringIOException - IO ErrorCopyright © 2017 SAP SE. All Rights Reserved.