[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: File LineFilterTest.groovy    


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 ->
			return ""

I've attached a modified LineFilterTest class with an additional test for this scenario.

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


Comment by Peter Niederwieser [ 02/Feb/11 ]

Thanks for the patch.

Generated at Wed Jun 30 11:53:40 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.