| java.lang.Object org.apache.tools.ant.ProjectComponent org.apache.tools.ant.Task org.apache.tools.ant.taskdefs.Concat
Concat | public class Concat extends Task (Code) | | This class contains the 'concat' task, used to concatenate a series
of files into a single stream. The destination of this stream may
be the system console, or a file. The following is a sample
invocation:
<concat destfile="${build.dir}/index.xml"
append="false">
<fileset dir="${xml.root.dir}"
includes="*.xml" />
</concat>
|
Constructor Summary | |
public | Concat() Construct a new Concat task. |
Concat | public Concat()(Code) | | Construct a new Concat task.
|
add | public void add(ResourceCollection c)(Code) | | Add an arbitrary ResourceCollection.
Parameters: c - the ResourceCollection to add. since: Ant 1.7 |
addFilelist | public void addFilelist(FileList list)(Code) | | List of files to concatenate.
Parameters: list - the list of files |
addFileset | public void addFileset(FileSet set)(Code) | | Set of files to concatenate.
Parameters: set - the set of files |
addFilterChain | public void addFilterChain(FilterChain filterChain)(Code) | | Adds a FilterChain.
Parameters: filterChain - a filterchain to filter the concatenated input since: Ant 1.6 |
addFooter | public void addFooter(TextElement footerToAdd)(Code) | | Add a footer to the concatenated output
Parameters: footerToAdd - the footer since: Ant 1.6 |
addHeader | public void addHeader(TextElement headerToAdd)(Code) | | Add a header to the concatenated output
Parameters: headerToAdd - the header since: Ant 1.6 |
addText | public void addText(String text)(Code) | | This method adds text which appears in the 'concat' element.
Parameters: text - the text to be concated. |
createPath | public Path createPath()(Code) | | Path of files to concatenate.
the path used for concatenating since: Ant 1.6 |
execute | public void execute()(Code) | | Execute the concat task.
|
reset | public void reset()(Code) | | Reset state to default.
|
setAppend | public void setAppend(boolean append)(Code) | | Sets the behavior when the destination file exists. If set to
true the stream data will be appended to the
existing file, otherwise the existing file will be
overwritten. Defaults to false .
Parameters: append - if true append to the file. |
setBinary | public void setBinary(boolean binary)(Code) | | Set the binary attribute. If true, concat will concatenate the files
byte for byte. This mode does not allow any filtering or other
modifications to the input streams. The default value is false.
since: Ant 1.6.2 Parameters: binary - if true, enable binary mode. |
setDestfile | public void setDestfile(File destinationFile)(Code) | | Sets the destination file, or uses the console if not specified.
Parameters: destinationFile - the destination file |
setEncoding | public void setEncoding(String encoding)(Code) | | Sets the character encoding
Parameters: encoding - the encoding of the input stream and unlessoutputencoding is set, the outputstream. |
setEol | public void setEol(FixCRLF.CrLf crlf)(Code) | | Specify the end of line to find and to add if
not present at end of each input file. This attribute
is used in conjunction with fixlastline.
Parameters: crlf - the type of new line to add -cr, mac, lf, unix, crlf, or dos since: Ant 1.6 |
setFixLastLine | public void setFixLastLine(boolean fixLastLine)(Code) | | Append line.separator to files that do not end
with a line.separator, default false.
Parameters: fixLastLine - if true make sure each input file hasnew line on the concatenated stream since: Ant 1.6 |
setForce | public void setForce(boolean force)(Code) | | Force overwrite existing destination file
Parameters: force - if true always overwrite, otherwise only overwriteif the output file is older any of the input files. since: Ant 1.6 |
setOutputEncoding | public void setOutputEncoding(String outputEncoding)(Code) | | Sets the character encoding for outputting
Parameters: outputEncoding - the encoding for the output file since: Ant 1.6 |
setWriter | public void setWriter(Writer outputWriter)(Code) | | Set the output writer. This is to allow
concat to be used as a nested element.
Parameters: outputWriter - the output writer. since: Ant 1.6 |
|
|