public static class AntTask.PatchElement extends AntTask.Element_path
flags
Constructor and Description |
---|
PatchElement() |
Modifier and Type | Method and Description |
---|---|
void |
setCondition(String expression)
Configures a condition that must evaluate to
true before each DIFF hunk is applied. |
void |
setInputEncoding(String value)
The encoding of the transformation input; defaults to the platform default encoding.
|
void |
setOutputEncoding(String value)
The encoding of the transformation output; defaults to the platform default encoding.
|
void |
setPatchFile(File patchFile)
The file that contains the DIFF document.
|
void |
setPatchFileEncoding(String charset)
The encoding of the patch file; defaults to the platform default encoding.
|
setName, setPath
public void setInputEncoding(String value)
public void setOutputEncoding(String value)
public void setPatchFile(File patchFile)
public void setPatchFileEncoding(String charset)
public void setCondition(String expression) throws de.unkrig.commons.text.parser.ParseException
true
before each DIFF hunk is applied.
The following variables are available in the expression:
path
hunks
hunkIndex
hunk
lineNumber
de.unkrig.commons.text.parser.ParseException
Copyright © 2022 Arno Unkrig. All rights reserved.