If you just want sources for gwt compiles, you can add resource directories then dilter them for ja files. This was my solution to keep gwt .class files out of war WEB-INF/classes structs.
Forgive the soft keyboard isms in last.
On Sep 15, 2009 10:39 PM, "Robert "kebernet" Cooper" <kebe...@gmail.com> wrote:If you just want sources for gwt compiles, you can add resource directories then dilter them for ja files. This was my solution to keep gwt .class files out of war WEB-INF/classes structs.
> > On Sep 15, 2009 10:35 PM, "Matt Raible" <ma...@raibledesigns.com> wrote: > > Are there any plans...
The same rules should apply either way. Putting your client-only classes in a dir, then putting rhat dir in a resources path will let you separate out code. The res paths will be there for gwt compile only, since it wants .java files on the classpath, but excluded from the rest of the source tree. The only drawback is junit tests on client code not in gwttestcase.
On Sep 15, 2009 10:44 PM, "Matt Raible" <ma...@raibledesigns.com> wrote:
I believe I sent this to the wrong list - will send to the codehaus list and clarify there.
Thanks,
Matt
On Tue, Sep 15, 2009 at 8:39 PM, Robert "kebernet" Cooper <kebe...@gmail.com> wrote: > > If you j...
Granted, I've over-dosed on the Maven kool-aid but.... This seems
completely wrong, sorry Coop. Why not just configure
maven-war-plugin/maven-ear-plugin to exclude .java files? This way you
keep your source code where it belongs, inside src/main/java.
If your interest is in modularization of widgets, then that's exactly
the job for Maven modules. Just add an <inherits in the master
Application.gwt.xml for each widget you want to include from a
different module in the same project.
-jesse
--
There are 10 types of people in this world, those
that can read binary and those that can not.
I think you missed my point. I didn't want the java files excluded, I wanted the class files for client code excluded. Thecmaven war plugin won't let you filter class files, but you don't meed them for gwt compile, so making the gwt source dirs resources then filtering out .java files means no java or class files in the war for gwt code.
On Sep 15, 2009 10:59 PM, <jie...@gmail.com> wrote:
Hi,
On Tue, Sep 15, 2009 at 10:52 PM, Robert "kebernet" Cooper <kebe...@gmail.com> wrote: > The same r...
Granted, I've over-dosed on the Maven kool-aid but.... This seems
completely wrong, sorry Coop. Why not just configure
maven-war-plugin/maven-ear-plugin to exclude .java files? This way you
keep your source code where it belongs, inside src/main/java.
If your interest is in modularization of widgets, then that's exactly
the job for Maven modules. Just add an <inherits in the master
Application.gwt.xml for each widget you want to include from a
different module in the same project.
-jesse
--
There are 10 types of people in this world, those
that can read binary and those that can not.
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are sub...
On Tue, Sep 15, 2009 at 11:03 PM, Robert "kebernet" Cooper
<kebe...@gmail.com> wrote:
> I think you missed my point. I didn't want the java files excluded, I wanted
> the class files for client code excluded. Thecmaven war plugin won't let you
> filter class files, but you don't meed them for gwt compile, so making the
> gwt source dirs resources then filtering out .java files means no java or
> class files in the war for gwt code.
>
Yes, I think I definitely have. I really can not visualize your
strategy at all. I personally prefer to attach a m-source-p:jar goal
and then use a <classifier>source</classifier> dependency. I find this
to be the least anti-Maven solution which still allows GWT to do its
thing.
Fwiw, the main reason to exclude the gwt .class files is app engine has a hard limit on files in a war, and 100+ gwt class files you don't need will push you over. Yes, you can move them to a jar dep, but that costs you "hit reload" development in hosted mode.
On Sep 15, 2009 11:03 PM, "Robert "kebernet" Cooper" <kebe...@gmail.com> wrote:
I think you missed my point. I didn't want the java files excluded, I wanted the class files for client code excluded. Thecmaven war plugin won't let you filter class files, but you don't meed them for gwt compile, so making the gwt source dirs resources then filtering out .java files means no java or class files in the war for gwt code.
> > On Sep 15, 2009 10:59 PM, <jie...@gmail.com> wrote: > > > Hi,
On Tue, Sep 15, 2009 at 10:52 PM, Robert "kebernet" Cooper <kebe...@gmail.com> wrote: > The same r...
> > Granted, I've over-dosed on the Maven kool-aid but.... This seems > completely wrong, sorry Coo...
I noticed that with m2eclipse, and having all the related projects
open in my workspace, the end result is what you want. Changes to
java source in dependencies, i.e., <inherits..>, are immediately
reflected by refresh of the hosted mode browser. I think this is not
exactly what you're asking for, but thought it worth mentioning.
-Dave
My experience is that you get most of the GWT compile that you want,
i.e., java sources are pulled in. However, css, images, etc. were not
pulled in automatically .. so it wasn't quite what I wanted.
-Dave