public class AntFilter
extends org.apache.tools.ant.ProjectComponent
implements org.apache.tools.ant.filters.ChainableReader
Constructor and Description |
---|
AntFilter() |
Modifier and Type | Method and Description |
---|---|
Reader |
chain(Reader reader) |
void |
setCondition(String condition)
Configures a condition that must evaluate to
true before each DIFF hunk is applied. |
void |
setPatchFile(File value)
The file that contains the DIFF document that is to be applied to the input.
|
void |
setPatchFileEncoding(String value)
The encoding of the patch file; defaults to the platform default encoding.
|
public void setPatchFile(File value)
A DIFF document generally contains differentials for one or more files. Each differential comprises a sequence of "hunks" in "traditional diff", "context diff" or "unified diff" format.
If the DIFF document describes more than on differential, then all but the first differential are ignored. The file name information in the differential is also ignored.
public void setPatchFileEncoding(String value)
public void setCondition(String condition) throws de.unkrig.commons.text.parser.ParseException
true
before each DIFF hunk is applied.de.unkrig.commons.text.parser.ParseException
Copyright © 2022 Arno Unkrig. All rights reserved.