[GRADLE-1363] LineFilter in CopySpec throws StringIndexOutOfBoundsException Created: 02/Feb/11 Updated: 04/Jan/13 Resolved: 02/Feb/11 |
|
| Status: | Resolved |
| Project: | Gradle |
| Affects Version/s: | 0.9.2 |
| Fix Version/s: | 1.0-milestone-1 |
| Type: | Bug | ||
| Reporter: | René Gröschke (Inactive) | Assignee: | Peter Niederwieser |
| Resolution: | Fixed | Votes: | 0 |
| Attachments: |
|
| Description |
|
The following snippet fails because the Closure of the LineFilter returns an empty String: task setupScripts(type:Copy){
from "/Users/Rene/workspaces/gradle/samples"
into "gradlesamples"
filter{line ->
if(line.contains("IGNORE_ME")){
return ""
}
line
}
}
I've attached a modified LineFilterTest class with an additional test for this scenario. |
| Comments |
| Comment by René Gröschke (Inactive) [ 02/Feb/11 ] |
|
I've fixed that issue on github. see pullrequest https://github.com/gradle/gradle/pull/16 regards, |
| Comment by Peter Niederwieser [ 02/Feb/11 ] |
|
Thanks for the patch. |