<concat destfile="${build.dir}/index.xml"
append="false">
<fileset dir="${xml.root.dir}"
includes="*.xml" />
</concat>
| Modifier and Type | Class and Description |
|---|---|
| private class | |
| private class | Concat.
This class reads a Reader and ensures it ends with the desired linebreak |
| private class | |
| private static interface | |
| public static class | Concat.
sub element points to a file or contains text |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | append
Whether or not the stream should be appended if the destination file exists. |
| private boolean | binary
Stores the binary attribute |
| private static final int | |
| private Resource | dest
The destination of the stream. |
| private String | encoding
Stores the input file encoding. |
| private String | eolString
endofline for fixlast line |
| private static final ResourceSelector | |
| private static final FileUtils | |
| private boolean | filterBeforeConcat
Stores the filterBeforeConcat attribute |
| private Vector | filterChains
for filtering the concatenated |
| private boolean | fixLastLine
add missing line.separator to files |
| private Concat. | footer
String to place at the start of the concatenated stream |
| private boolean | force
overwrite read-only files |
| private boolean | forceOverwrite
ignore dates on input files |
| private Concat. | header
String to place at the end of the concatenated stream |
| private Concat. | |
| private boolean | ignoreEmpty
whether to not create dest if no source files are available |
| private static final ResourceSelector | |
| private String | outputEncoding
Stores the output file encoding. |
| private Writer | outputWriter
outputwriter |
| private Resources | rc
Stores a collection of file sets and/or file lists, used to select multiple files for concatenation. |
| private String | resourceName
exposed resource name |
| private Concat. | |
| private StringBuffer | textBuffer
This buffer stores the text within the 'concat' element. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | |
| public void | addFilterChain(FilterChain
a filterchain to filter the concatenated input filterChain)Adds a FilterChain. |
| public void | |
| public void | |
| public void | |
| public Path | |
| public void | |
| private Reader | |
| private ResourceCollection | |
| public boolean | Returns: false.Implements org. |
| private boolean | |
| public Iterator | Returns: Iterator<Resource>.Implements java. |
| public void | |
| private void | |
| public void | |
| public void | |
| public void | |
| public void | setDestfile(File
the destination file destinationFile)Sets the destination file, or uses the console if not specified. |
| public void | setEncoding(String
the encoding of the input stream and unless
outputencoding is set, the outputstream. encoding)Sets the character encoding |
| public void | |
| public void | setFilterBeforeConcat(final boolean
if true, filter each input before concatenation filterBeforeConcat)Set the filterBeforeConcat attribute. |
| public void | setFixLastLine(boolean
if true make sure each input file has
new line on the concatenated stream fixLastLine)Append line.separator to files that do not end with a line.separator, default false. |
| public void | setForce(boolean
if true always overwrite, otherwise only
overwrite if the output file is older any of the
input files. forceOverwrite)
Deprecated
use #setOverwrite instead
Force overwrite existing destination file
|
| public void | |
| public void | setIgnoreEmpty(boolean
if false, honour destination file creation. ignoreEmpty)Sets the behavior when no source resource files are available. |
| public void | setOutputEncoding(String
the encoding for the output file outputEncoding)Sets the character encoding for outputting |
| public void | setOverwrite(boolean
if true always overwrite, otherwise only
overwrite if the output file is older any of the
input files. forceOverwrite)Force overwrite existing destination file |
| public void | setResourceName(String
to set resourceName)Set the name that will be reported by the exposed |
| public void | |
| public int | Returns: 1.Implements org. |
| private void |