Implicit imports are a nice tool that should be used sparingly. In this case, I think improving the docs to say "Once ReplaceTokens has been imported from org.apache.tools.ant.filters you can ..." would be sufficient.
On Sat, Feb 27, 2010 at 1:44 AM, Hans Dockter <[email protected]> wrote: > > > On Sat, Feb 27, 2010 at 7:42 AM, Peter Ledbrook <[email protected]>wrote: > >> > Which was taken almost verbatim from the javadoc: >> > >> http://gradle.org/0.7/docs/javadoc/index.html?org/gradle/api/tasks/copy/CopySpec.html >> > >> > We are getting the following error: >> > Cause: No such property: ReplaceTokens for class: >> > org.gradle.api.internal.tasks.copy.CopySpecImpl >> >> You need to import the class: >> >> import org.apache.tools.ant.filters.ReplaceTokens >> >> I don't think it's clear that this is an Ant class, so perhaps the >> documentation could do with a little improvement. >> > > Or we should add those classes to the implicit imports. > > - Hans > > -- > Hans Dockter > Founder, Gradle > http://www.gradle.org, http://twitter.com/gradleorg > CEO, Gradle Inc. - Gradle Training, Support, Consulting > http://www.gradle.biz > > >> >> Cheers, >> >> Peter >> >> --------------------------------------------------------------------- >> To unsubscribe from this list, please visit: >> >> http://xircles.codehaus.org/manage_email >> >> >> > -- John Murph Automated Logic Research Team
