Great work Geoffrey.<br><br>Thanks,<br>Subhas<br><br><div class="gmail_quote">On Thu, Oct 14, 2010 at 12:24 PM, Michael Anstis <span dir="ltr"><<a href="mailto:michael.anstis@gmail.com">michael.anstis@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Thanks for the clarification Geoffrey.<div><div></div><div class="h5"><br><br><br><div class="gmail_quote">
On 14 October 2010 14:20, Geoffrey De Smet <span dir="ltr"><<a href="mailto:ge0ffrey.spam@gmail.com" target="_blank">ge0ffrey.spam@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">The eclipse GWT plugin doesn't use maven.<br>
<br>
<br>
With kind regards / Met vriendelijke groeten,<br>
Geoffrey De Smet<br>
<br>
Op 14-10-10 12:05, Anstis, Michael (M.) schreef:<br>
<div>> Hi Geoffrey, Esteban,<br>
> The Eclipse GWT Plugin in essence calls out to GWT's<br>
> com.google.gwt.dev.DevMode and does not use maven.<br>
<br>
</div>Yes, AFAIC it doesn't use maven.<br>
<div><br>
> I think half the problem could be the disjoint between the default paths<br>
> used by maven compared to the default paths used by gwt i.e. they are<br>
> different: mvn uses src/main/webapp by default whereas gwt prefers /war.<br>
<br>
</div>The latest gwt plugin for eclipse (since 2.0.3) isn't hardcoded to the<br>
/war directory, so the /war issues is not longer relevant normally.<br>
See the note on<br>
<div><a href="http://mojo.codehaus.org/gwt-maven-plugin/user-guide/war-folder.html" target="_blank">http://mojo.codehaus.org/gwt-maven-plugin/user-guide/war-folder.html</a><br>
</div>So don't use an old gwt plugin for eclipse.<br>
Toni Rikkola is working fine with eclipse, maybe you can ask him how he<br>
said it up?<br>
<div><br>
> It looks like you can bring the two inline<br>
> <a href="http://mojo.codehaus.org/gwt-maven-plugin/user-guide/war-folder.html" target="_blank">http://mojo.codehaus.org/gwt-maven-plugin/user-guide/war-folder.html</a> but<br>
> I haven't tried it. A warning to this effect is in the log you show<br>
> "Your POM <build><outputdirectory> does not match your hosted webapp<br>
> WEB-INF/classes folder for GWT Hosted browser to see your classes." I<br>
> think the classes are JIT'ed so you won't get any errors until launching<br>
> your browser. I also think the "target" folder<br>
> ("/home/esteban/plugTree/trunkTMP/drools-guvnor/*target*/drools-guvnor")<br>
> is a GWT1.6 hang-over and wonder whether Guvnor is fully GWT2.x or a<br>
> hybrid of bits and pieces that wouldn't help matters.<br>
<br>
</div>There is the sources wierdness. Basically gwt needs the *.java sources<br>
of all the java to javascript it needs to compile, not just the *.class<br>
sources. So to be able to compile drools-guvnor it needs the sources of<br>
drools-ide-common.<br>
- If you have drools open in IntelliJ/Eclipse, this isn't a problem: the<br>
sources are there anyway and you don't need to configure anything<br>
special. Note you can't have just drools-guvnor open without<br>
drools-ide-common open... I would expect this to be the same for netbeans<br>
- In Maven, things are different because modules need to be able to<br>
compile individually. There are 2 ways to handle it:<br>
-- the GWT hack way: just add the sources to the jar. This is the bad<br>
way as it violates the maven repository contract.<br>
-- the maven way (which we follow): also install/deploy the sources into<br>
the repository as a separate jar (so as a<br>
drools-idea-common-...-sources.jar) and re-use that to build<br>
drools-guvnor (and note that the maven intellij/eclipse reuse those<br>
sources to automatically download sources etc).<br>
<div><br>
> Not wanting to tread on toes.<br>
</div>idem dito :) Hope this helps too<br>
<div><div></div><div><br>
> With kind regards,<br>
> Mike<br>
><br>
> ------------------------------------------------------------------------<br>
> *From:* <a href="mailto:rules-dev-bounces@lists.jboss.org" target="_blank">rules-dev-bounces@lists.jboss.org</a><br>
> [mailto:<a href="mailto:rules-dev-bounces@lists.jboss.org" target="_blank">rules-dev-bounces@lists.jboss.org</a>] *On Behalf Of<br>
> *<a href="mailto:esteban.aliverti@gmail.com" target="_blank">esteban.aliverti@gmail.com</a><br>
> *Sent:* 14 October 2010 00:07<br>
> *To:* Rules Dev List<br>
> *Subject:* Re: [rules-dev] Guvnor build changes summary<br>
><br>
> Geoffrey, again, great work!<br>
> But I have a question for you. I'm trying to run/debug guvnor<br>
> without eclipse.<br>
> Thanks to your work, now I am able to execute *mvn gwt:compile*<br>
> without modify the pom.xml file! That is great.<br>
> Then I run Guvnor doing:* mvn -Dgwt.module=org.drools.guvnor.Guvnor<br>
> -DrunTarget=org.drools.guvnor.Guvnor/Guvnor.html gwt:debug*<br>
> Everything seams to look right. I get this output:<br>
><br>
> /Preparing gwt:debug/<br>
> /[resources:resources]/<br>
> /Using 'UTF-8' encoding to copy filtered resources./<br>
> /Copying 29 resources/<br>
> /[compiler:compile]/<br>
> /Nothing to compile - all classes are up to date/<br>
> /[gwt:debug]/<br>
> /starting debugger on port 8000 in suspend mode/<br>
> /You're project declares dependency on gwt-user 2.0.4. This plugin<br>
> is designed for version 2.1-20101001.MGWT219/<br>
> /create exploded Jetty webapp in<br>
> /home/esteban/plugTree/trunkTMP/drools-guvnor/target/drools-guvnor/<br>
> /Your POM <build><outputdirectory> does not match your hosted webapp<br>
> WEB-INF/classes folder for GWT Hosted browser to see your classes./<br>
> /Listening for transport dt_socket at address: 8000/<br>
><br>
> Now, when I try to attach a debugger (in my case, using Netbeans), I<br>
> get the following behavior:<br>
><br>
</div></div>> 1. The GWT Development Mode console appears<br>
> 2. After a few seconds, the Startup URL appears in the combobox<br>
> 3. At this point, I have some warnings in "Development Mode" and<br>
<div>> "Jetty" tabs. (probably you are using tomcat, but should be<br>
> the same)<br>
</div>> 4. When I try to enter Guvnor using firefox, a new tab appears in<br>
<div>> the GWT Development Mode (which is the expected behavior), but<br>
> a lot of errors appear there. The errors are because the<br>
> source code of ide.common packages can't be found.<br>
><br>
><br>
> I'm attaching a screenshot showing the error:<br>
><br>
</div>> news://<a href="http://news.gmane.org:119/C7774483B6A70C4BB10E917CC1A59DC10766BE79%40eu1wam35.warley.ford.com?group=gmane.comp.java.drools.devel&key=3996&header=quotebody&part=1.1.2&filename=Screenshot.png" target="_blank">news.gmane.org:119/C7774483B6A70C4BB10E917CC1A59DC10766BE79%40eu1wam35.warley.ford.com?group=gmane.comp.java.drools.devel&key=3996&header=quotebody&part=1.1.2&filename=Screenshot.png</a><br>
<div>><br>
> The questions are: do you know how is eclipse running guvnor? Does<br>
> it use maven at all? Am I missing any argument when running<br>
> gwt:debug goal?<br>
><br>
> Best Regards,<br>
><br>
> XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br>
><br>
> Esteban Aliverti<br>
</div>> - Developer @ <a href="http://www.plugtree.com" target="_blank">http://www.plugtree.com</a> <<a href="http://www.plugtree.com" target="_blank">http://www.plugtree.com</a>><br>
<div>> - Blog @ <a href="http://ilesteban.wordpress.com" target="_blank">http://ilesteban.wordpress.com</a><br>
><br>
><br>
> On Sat, Oct 9, 2010 at 7:53 AM, Geoffrey De Smet<br>
</div><div>> <<a href="mailto:ge0ffrey.spam@gmail.com" target="_blank">ge0ffrey.spam@gmail.com</a> <mailto:<a href="mailto:ge0ffrey.spam@gmail.com" target="_blank">ge0ffrey.spam@gmail.com</a>>> wrote:<br>
><br>
> No, I no longer think we should "split up drools-guvnor into<br>
> drools-guvnor-gwtclient and drools-guvnor-server",<br>
> not at least until GWT supports separate client vs server<br>
> classpaths better.<br>
> I will still look into moving factconstraints module guvnor part to<br>
> guvnor (and the rest might be movable to drools-core/compiler?)?<br>
><br>
> With kind regards,<br>
> Geoffrey De Smet<br>
><br>
> Op 08-10-10 09:54, Anstis, Michael (M.) schreef:<br>
> > I'm not sure Geoffrey is planning on the split anymore:<br>
> >> I haven't split up drools-guvnor into<br>
> drools-guvnor-gwtclient and<br>
> >> drools-guvnor-server, because GWT simply doesn't really<br>
> allow that (not<br>
> >> without making the solution worse than the problem at least...).<br>
> ><br>
> ><br>
> ------------------------------------------------------------------------<br>
> > *From:* <a href="mailto:rules-dev-bounces@lists.jboss.org" target="_blank">rules-dev-bounces@lists.jboss.org</a><br>
> <mailto:<a href="mailto:rules-dev-bounces@lists.jboss.org" target="_blank">rules-dev-bounces@lists.jboss.org</a>><br>
</div><div>> > [mailto:<a href="mailto:rules-dev-bounces@lists.jboss.org" target="_blank">rules-dev-bounces@lists.jboss.org</a><br>
</div><div>> <mailto:<a href="mailto:rules-dev-bounces@lists.jboss.org" target="_blank">rules-dev-bounces@lists.jboss.org</a>>] *On Behalf Of<br>
> *Michael Neale<br>
> > *Sent:* 08 October 2010 03:34<br>
> > *To:* Rules Dev List<br>
> > *Subject:* Re: [rules-dev] Guvnor build changes summary<br>
> ><br>
> > yes, that probably would make sense. Although, there would<br>
> have to<br>
> > be maybe a 3rd for the common code. Or else the server module<br>
> > depends on the client module?<br>
> ><br>
> > On Fri, Oct 8, 2010 at 12:51 PM, Jervis Liu <<a href="mailto:jliu@redhat.com" target="_blank">jliu@redhat.com</a><br>
> <mailto:<a href="mailto:jliu@redhat.com" target="_blank">jliu@redhat.com</a>><br>
</div><div><div></div><div>> > <mailto:<a href="mailto:jliu@redhat.com" target="_blank">jliu@redhat.com</a> <mailto:<a href="mailto:jliu@redhat.com" target="_blank">jliu@redhat.com</a>>>> wrote:<br>
> ><br>
> > Good job, Geoffrey! BTW, what is this about: "split up<br>
> drools-guvnor<br>
> > into drools-guvnor-gwtclient and drools-guvnor-server" ?<br>
> ><br>
> > Thanks,<br>
> > Jervis<br>
> ><br>
> > Geoffrey De Smet wrote:<br>
> > > Hi guys,<br>
> > ><br>
> > > The Guvnor build has changed somewhat. Here's the changes:<br>
> > > - "mvn clean compile" now compiles the GWT java sources to<br>
> > javascript<br>
> > > with the gwt-maven-plugin.<br>
> > > -- So now, to really clean build guvnor, you don't need to<br>
> > run the ANT<br>
> > > script separate no more<br>
> > > -- The maven plugin is about 50% faster than the ANT script.<br>
> > > -- This makes the entire drools build slower (as it now gwt<br>
> > compiles<br>
> > > too), but I am looking into improving that (for example in a<br>
> > development<br>
> > > mode profile, we can only gwt compile to english and firefox)<br>
> > > - The generated GWT javascript files have been removed from<br>
> > subversion<br>
> > > and are now generated under the target/drools-guvnor directory<br>
> > > -- No more A43BF34D23567676DF.js files in svn or tree<br>
> > conflicts on those<br>
> > > directories<br>
> > ><br>
> > > I haven't split up drools-guvnor into<br>
> drools-guvnor-gwtclient and<br>
> > > drools-guvnor-server, because GWT simply doesn't really allow<br>
> > that (not<br>
> > > without making the solution worse than the problem at<br>
> least...).<br>
> > ><br>
> > > If you feel any rough edges, let me know and I 'll take a<br>
> > look at it.<br>
> > ><br>
> > > I 'll remove the old ANT script soon, once the maven<br>
> > filtering for the<br>
> > > version and revision is in place.<br>
> > ><br>
> ><br>
> > _______________________________________________<br>
> > rules-dev mailing list<br>
> > <a href="mailto:rules-dev@lists.jboss.org" target="_blank">rules-dev@lists.jboss.org</a> <mailto:<a href="mailto:rules-dev@lists.jboss.org" target="_blank">rules-dev@lists.jboss.org</a>><br>
> <mailto:<a href="mailto:rules-dev@lists.jboss.org" target="_blank">rules-dev@lists.jboss.org</a><br>
> <mailto:<a href="mailto:rules-dev@lists.jboss.org" target="_blank">rules-dev@lists.jboss.org</a>>><br>
> > <a href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>
> ><br>
> ><br>
> ><br>
> ><br>
> > --<br>
> > Michael D Neale<br>
> > home: <a href="http://www.michaelneale.net" target="_blank">www.michaelneale.net</a> <<a href="http://www.michaelneale.net" target="_blank">http://www.michaelneale.net</a>><br>
> <<a href="http://www.michaelneale.net" target="_blank">http://www.michaelneale.net</a>><br>
> > blog: <a href="http://michaelneale.blogspot.com" target="_blank">michaelneale.blogspot.com</a><br>
> <<a href="http://michaelneale.blogspot.com" target="_blank">http://michaelneale.blogspot.com</a>><br>
> <<a href="http://michaelneale.blogspot.com" target="_blank">http://michaelneale.blogspot.com</a>><br>
> ><br>
> ><br>
> ><br>
> > _______________________________________________<br>
> > rules-dev mailing list<br>
> > <a href="mailto:rules-dev@lists.jboss.org" target="_blank">rules-dev@lists.jboss.org</a> <mailto:<a href="mailto:rules-dev@lists.jboss.org" target="_blank">rules-dev@lists.jboss.org</a>><br>
> > <a href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>
><br>
> _______________________________________________<br>
> rules-dev mailing list<br>
> <a href="mailto:rules-dev@lists.jboss.org" target="_blank">rules-dev@lists.jboss.org</a> <mailto:<a href="mailto:rules-dev@lists.jboss.org" target="_blank">rules-dev@lists.jboss.org</a>><br>
> <a href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>
><br>
><br>
><br>
><br>
> _______________________________________________<br>
> rules-dev mailing list<br>
> <a href="mailto:rules-dev@lists.jboss.org" target="_blank">rules-dev@lists.jboss.org</a><br>
> <a href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>
<br>
_______________________________________________<br>
rules-dev mailing list<br>
<a href="mailto:rules-dev@lists.jboss.org" target="_blank">rules-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>
</div></div></blockquote></div><br>
</div></div><br>_______________________________________________<br>
rules-dev mailing list<br>
<a href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>
<br></blockquote></div><br>