[GRADLE-264] Add convenience getClasspath method to Compile.java and Test.groovy Created: 19/Oct/08  Updated: 04/Jan/13  Resolved: 19/Oct/08

Status: Resolved
Project: Gradle
Affects Version/s: 0.4
Fix Version/s: 0.5

Type: Improvement
Reporter: Stephen Nesbitt Assignee: Adam Murdoch
Resolution: Fixed Votes: 0

Attachments: File patchfile    


Currently getting the classpath for the compile and test tasks is not straightforward requiring something like the following:
1) GUtil.addLists(<task>.classpathConverter.createFileClasspath(project.rootDir,> <task>.unmanagedClasspath),compile.dependencyManager.resolveTask(<task>.name)

The proposal here is to add a convenience method getClasspath that would return the classpath as a list of files.

Attached is a patch which makes the necessary changes including new unit tests. The implementation was done by extracting the GUtil.addLists call into a public method.

I do not consider myself an experienced developer <grin>. Feedback is always welcome

Comment by Adam Murdoch [ 19/Oct/08 ]

I've applied this patch to trunk.

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