public abstract static class Main.Conditions extends Object
Constructor and Description |
---|
Conditions(String... variableNames) |
Modifier and Type | Method and Description |
---|---|
void |
addIff(String expression)
Execute the preceding file transformation only iff expression evaluates to true.
|
void |
addReport(String expression)
Evaluate and print the expression each time the preceding file transformation is executed, e.g.
|
void |
assertCount(int expectedCount)
Assert that exactly n updates/substitution replacements/patch hunks/removals/renamings/additions
were executed; otherwise exit with status 2.
|
public Conditions(String... variableNames)
variableNames
- The names of the variables that expressions can referencepublic void addReport(String expression) throws de.unkrig.commons.text.parser.ParseException
path + ": Add '" + name + "' from '" + contentsFile + "'"
". The parameters of the
expression depend on the file transformation (see above).de.unkrig.commons.text.parser.ParseException
public void addIff(String expression) throws de.unkrig.commons.text.parser.ParseException
de.unkrig.commons.text.parser.ParseException
public void assertCount(int expectedCount)
Copyright © 2022 Arno Unkrig. All rights reserved.