Hi Ken,

On Tue, Apr 19, 2011 at 4:04 PM, Ken Sipe <[email protected]> wrote:

> Eric,
>
> kudos... I think were different plans in place for templating... but they
> are obviously lower on the priority list.   This is a good crutch until that
> day.   +1 for Spencer's suggestion... also... here is what I would like to
> see
>

Definitely agree on Spencer's suggestion. Should have that fixed tonight.


> (besides it on github :)
>

I think Ronen said he was going to set up a github mirror, I have a github
account but much prefer Bazaar over Git personally. However, I'll see if I
can set up a mirror there easily - otherwise I'll wait until someone with
more experience to do it.


>
> The sourceset structures are defined in your plugins... it would be better
> to have these defined by the existing plugins.  This would have a number of
> benefits, including allow folks to configure their source dir as they see
> fit (like to ./src instead of ./src/main/java ).
>

Is there an easy way to do this? I don't think it's unreasonable for the
java-templates plugin to depend on the Java plugin so if there's an easy way
to get the directory structure from the Java plugin I'll use that instead.


>
> also... it would be cool if there was a way of registering a type to a
> plugin... so you know which sourceset to use... this was you could type
> "createJavaClass" and this plugin would leverage the "java" plugin
> sourceset... where as the "createGroovyClass" would leverage the groovy
> plugin.    There would be a new for registration or discovery in order to
> make this work.
>

I'm not sure about the dynamically registering a plugin type, but as I
mentioned above, I don't think it's unreasonable for the java-templates
plugin to depend on the Java plugin. So I'll just "project.apply(plugin:
'java')" in the JavaTemplatesPlugin.appy method. I should be able to make
use of the Java plugin convention in the template tasks as well.

Thanks a lot for the feedback. :)
Eric

-- 
Learn from the past. Live in the present. Plan for the future.
Blog: http://eric-berry.blogspot.com
jEdit <http://www.jedit.org> - Programmer's Text Editor
Bazaar <http://bazaar.canonical.com> - Version Control for Humans

Reply via email to