Skip to content

Commit 753466d

Browse files
committed
Merge pull request GH-15 from github:ramidzsh/ProPatcher
Remove redundant getters
2 parents 94b4265 + 2ec7fad commit 753466d

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/main/groovy/uk/jamierocks/propatcher/task/MakePatchesTask.groovy

+10-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class MakePatchesTask extends DefaultTask {
4747
@InputDirectory File patches
4848
@Input @Optional String originalPrefix = 'a/'
4949
@Input @Optional String modifiedPrefix = 'b/'
50-
@Input boolean ignoreWhitespace = true
50+
private boolean ignoreWhitespace = true
5151

5252
static def relative(base, file) {
5353
return file.path.substring(base.path.length() + 1).replaceAll(Matcher.quoteReplacement(File.separator), '/') //Replace is to normalize windows to linux/zip format
@@ -59,6 +59,15 @@ class MakePatchesTask extends DefaultTask {
5959
dirs.reverse().each{ it.delete() } //Do it in reverse order do we delete deepest first
6060
}
6161

62+
@Input
63+
boolean getIgnoreWhitespace() {
64+
return ignoreWhitespace
65+
}
66+
67+
void setIgnoreWhitespace(boolean ignoreWhitespace) {
68+
this.ignoreWhitespace = ignoreWhitespace
69+
}
70+
6271
@TaskAction
6372
void doTask() {
6473
if (!patches.exists())

0 commit comments

Comments
 (0)