That's the right way of doing it in Java. Not sure why the type is internal.
Cheers, Szczepan On Mon, May 9, 2011 at 9:49 AM, Marco Hunsicker <de...@hunsicker.de> wrote: > Howdy, > > as my plugin has been written in Java, I'm using the > org.gradle.api.tasks.ConventionValue interface for property mapping. Now, > this requires the import of a type that does not seem to be part of the > public API (org.gradle.api.internal.IConventionAware). Is this intentional? > Is there another supported way to achieve the same in pure Java? Thanks. > > jalopy.getConventionMapping() > .map("classpath", new ConventionValue() > { > public Object getValue( > Convention rConvention, > IConventionAware rTarget) > { > LOG.debug("Inject classpath property {}", > rSet.getCompileClasspath()); > > return rSet.getCompileClasspath(); > } > }); > > Cheers, > > Marco > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > >