|
Just wondering if anyone has come across anything like this, a little bit of a long shot I think.
I have a grails plugin that contains a GWT module, I would like to reference the GWT code in the plugin from a GWT in the parent project.
Does anybody know if this is even possible? I have tried a few permutations but I cannot get the parent projects gwt.xml to reference the module in the plugin project at all.
What I thought I could do was : Plugin ---- com.john.Plugin.gwt.xml ParentProject -- com.other.Main.gwt.xml --- inherit com.john.Plugin
But the GWT compiler is complaining that com.john.Plugin.gwt.xml is not on the classpath. Many thanks in advance! John John Rellis |
|
OK, so what was confusing was that this seemed to work for the gwt plugin and the DTO plugin and the Grails xml.gwt.
Turns out these directories are added manually in _GwtInternal.groovy // Add the plugin's module paths. pathElement(location: "${gwtPluginDir}/${gwtSrcPath}") pathElement(location: "${gwtPluginDir}/${grailsSrcPath}")
So in theory it looks like i can add something like pathElement(location: "path to plugin /src/gwt") pathElement(location: "
path to plugin /src/java") Obviously not scalable but worth testing at the minute. I'll reply with a scalable solution if this actually bears fruit.... mmm
On Tue, Apr 10, 2012 at 6:11 PM, John Rellis <[hidden email]> wrote: Just wondering if anyone has come across anything like this, a little bit of a long shot I think. John Rellis |
|
> OK, so what was confusing was that this seemed to work for the gwt plugin
> and the DTO plugin and the Grails xml.gwt. > > Turns out these directories are added manually in _GwtInternal.groovy > > // Add the plugin's module paths. > pathElement(location: "${gwtPluginDir}/${gwtSrcPath}") > pathElement(location: "${gwtPluginDir}/${grailsSrcPath}") > > So in theory it looks like i can add something like > > pathElement(location: "path to plugin /src/gwt") > pathElement(location: " path to plugin /src/java") > > Obviously not scalable but worth testing at the minute. I'll reply with a > scalable solution if this actually bears fruit.... mmm You might want to bring this up on the grails-gwt Google group too. Peter -- Peter Ledbrook Grails Advocate SpringSource - A Division of VMware --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
Ah OK, will do peter, thanks! On Apr 12, 2012 1:39 AM, "Peter Ledbrook" <[hidden email]> wrote:
> OK, so what was confusing was that this seemed to work for the gwt plugin |
| Powered by Nabble | Edit this page |
