Class LooseConfigData
- java.lang.Object
-
- io.openliberty.tools.common.plugins.config.XmlDocument
-
- io.openliberty.tools.common.plugins.config.LooseConfigData
-
public class LooseConfigData extends XmlDocument
-
-
Field Summary
-
Fields inherited from class io.openliberty.tools.common.plugins.config.XmlDocument
doc
-
-
Constructor Summary
Constructors Constructor Description LooseConfigData()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddArchive(File src, String target)ElementaddArchive(String target)ElementaddArchive(Element parent, String target)voidaddDir(File src, String target)voidaddDir(Element parent, File src, String target)voidaddFile(File src, String target)voidaddFile(Element parent, File src, String target)voidaddFile(Element parent, File src, String target, File copyDirectory)ElementgetDocumentRoot()voidsetProjectRoot(String root)Set both projectRoot and sourceOnDiskName to control the name used when an element is added.voidsetSourceOnDiskName(String name)Set both projectRoot and sourceOnDiskName to control the name used when an element is added.voidtoXmlFile(File xmlFile)-
Methods inherited from class io.openliberty.tools.common.plugins.config.XmlDocument
addNewlineBeforeFirstElement, createDocument, createDocument, isIndented, isWhitespace, writeXMLDocument, writeXMLDocument
-
-
-
-
Constructor Detail
-
LooseConfigData
public LooseConfigData() throws ParserConfigurationException- Throws:
ParserConfigurationException
-
-
Method Detail
-
setProjectRoot
public void setProjectRoot(String root)
Set both projectRoot and sourceOnDiskName to control the name used when an element is added.- Parameters:
root- the name of the directory that contains the actual project resources
-
setSourceOnDiskName
public void setSourceOnDiskName(String name)
Set both projectRoot and sourceOnDiskName to control the name used when an element is added.- Parameters:
name- the name to use in the config file as the apparent location of the resource
-
addDir
public void addDir(File src, String target) throws DOMException, IOException
- Throws:
DOMExceptionIOException
-
addDir
public void addDir(Element parent, File src, String target) throws DOMException, IOException
- Throws:
DOMExceptionIOException
-
addFile
public void addFile(File src, String target) throws DOMException, IOException
- Throws:
DOMExceptionIOException
-
addFile
public void addFile(Element parent, File src, String target) throws DOMException, IOException
- Throws:
DOMExceptionIOException
-
addFile
public void addFile(Element parent, File src, String target, File copyDirectory) throws DOMException, IOException
- Throws:
DOMExceptionIOException
-
addArchive
public void addArchive(File src, String target) throws DOMException, IOException
- Throws:
DOMExceptionIOException
-
getDocumentRoot
public Element getDocumentRoot()
-
-