On Tuesday, April 19, 2011, Eric Berry <[email protected]> wrote: > 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.
You could just depend on the JavaBasePlugin (pretty sure that's the class, or it's BaseJavaPlugin) that gives you all the sourceSet stuff and basics without adding all the tasks. > > 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 <http://eric-berry.blogspot.com/> > jEdit <http://www.jedit.org <http://www.jedit.org/>> - Programmer's Text > Editor > Bazaar <http://bazaar.canonical.com <http://bazaar.canonical.com/>> - Version > Control for Humans > -- Jason Porter http://lightguard-jp.blogspot.com http://twitter.com/lightguardjp Software Engineer Open Source Advocate Author of Seam Catch - Next Generation Java Exception Handling PGP key id: 926CCFF5 PGP key available at: keyserver.net, pgp.mit.edu --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
