public class AntMessage extends XMLMessage
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ANT_MESSAGE_DTD
The underlying DTD (dummy).
|
Constructor and Description |
---|
AntMessage()
Constructor method for i18n purposes only.
|
AntMessage(java.lang.String docname,
java.lang.String[] cliargs,
java.io.File[] targetfiles,
org.apache.commons.vfs2.FileObject[] targeturls,
java.util.Vector<org.jdom.Element> custom)
Constructs a message instance.
|
Modifier and Type | Method and Description |
---|---|
static java.util.Vector<org.jdom.Element> |
createFileDirSets(java.io.File[] targets)
Constructs a series of FileSet or DirSet XML elements for use with Ant.
|
static java.util.Vector<org.jdom.Element> |
createURLs(org.apache.commons.vfs2.FileObject[] targets)
Constructs a series of URL XML elements for use with Ant.
|
canProcess, getAttribute, getAttributeValue, getContents, getDocument, getDTD, getElement, getElements, getElementValue, getEncoding, getIntFunctionResult, isArmed, isValid, printDocument, read, read, setEncoding, setFormat, write, write
public static final java.lang.String ANT_MESSAGE_DTD
public AntMessage() throws java.lang.InstantiationException
I18NExtractor
).
java.lang.InstantiationException
- Error indicationpublic AntMessage(java.lang.String docname, java.lang.String[] cliargs, java.io.File[] targetfiles, org.apache.commons.vfs2.FileObject[] targeturls, java.util.Vector<org.jdom.Element> custom)
docname
- The top-level element namecliargs
- The options used for the CLI apptargetfiles
- The files/directories to be processedtargeturls
- The URLs/directories to be processedcustom
- The custom elements (optional)public static java.util.Vector<org.jdom.Element> createFileDirSets(java.io.File[] targets)
targets
- The files/directories to be processedjava.lang.NullPointerException
- If a parameter is null
public static java.util.Vector<org.jdom.Element> createURLs(org.apache.commons.vfs2.FileObject[] targets)
targets
- The URLs/directories to be processedjava.lang.NullPointerException
- If a parameter is null
Copyright © 2005-2013 Leisenfels UG (haftungsbeschränkt). All rights reserved.