On 17/03/2011, at 11:06 AM, Rene Groeschke wrote: > Hi there, > When working directly on Gradle the HelperUtil.groovy class is really helpful > for testing Projects and Tasks. Actually, I am working on a plugin which is a > standalone and shipped extra. During the development I would like to reuse > the HelperUtil.groovy class from Gradle. Is there a way to get this class > into the main sourceset. The simpliest solution I see at the moment is to > move this class from the test to the main sourceset. > > any opinions or futher ideas?
The idea is that you should use ProjectBuilder, which is included in the distribution. Is ProjectBuilder missing something that HelperUtil has? Have a look at the javadoc for ProjectBuilder: http://gradle.org/1.0-milestone-1/docs/javadoc/org/gradle/testfixtures/ProjectBuilder.html -- Adam Murdoch Gradle Developer http://www.gradle.org Co-Founder and VP of Engineering, Gradleware Inc. - Gradle Training, Support, Consulting http://www.gradleware.com
