Re: Creating and Importing GWT Independent Modules
On Aug 25, 12:17 pm, Thomas Broyer wrote: > On 14 août, 15:48, Claudemir Todo Bom wrote: > ...or you can add your library's source folder as a linked source > folder in your application project (no need to import the library's > project in your app's project then; and the Google plugin takes care > of your classpath for you) does it accepts changes on my library if it is on a linked source folder and make changes while developing my main project? Best regards, Claudemir --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Creating and Importing GWT Independent Modules
On 14 août, 15:48, Claudemir Todo Bom wrote: > Is there a way to develop a reusable library side-by-side with another > project? without using any jars? > > for example, i have a GWT in package com.example.application.client > everything worked on it... then I added a new package to my eclipse > project, calling it com.example.utils (side question: do I need to put > client here too?), it didtn't worked... looks like the gwt.xml is all > fine, but both gwt compiler and host mode refuses to run this way, > telling that I may forgot to inherit some required module (I did > placed the tag for utils on aplication.gwt.xml) > > I want this to avoid the pain to have to package a jar and import it > on my application everytime I change my utils library. This way I > should be able to debug and edit both packages together, then, when > the library is ready, I can export it to a jar. For now, my library is > a subpackage of application. On your launch configuration, you'll have to manually add your imported project's *source* folders to the classpath. The Google plugin does this automatically for your GWT project, but not for imported projects. ...or you can add your library's source folder as a linked source folder in your application project (no need to import the library's project in your app's project then; and the Google plugin takes care of your classpath for you) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Creating and Importing GWT Independent Modules
Another thing I've found out. The Eclipse IDE cache makes things a little difficult sometimes. So, when creating the other package, exporting the jar, etc, make sure you refresh all the projects. On 17 ago, 16:18, Lucas Neves Martins wrote: > I am not a GWT expert, but I don't think this is possible. > > But if you want to make life easier you could use a "ant task" to > automate those jar builds, copying, and classpath updating. > > With "ant" you can do most anything you could with a ShellScript, you > know, java project wise. > > To help debugging, you can export every jar with the sources inside, > there is a checkbox on the eclipse Jar export wizard. > > Boa sorte! > > On 14 ago, 10:48, Claudemir Todo Bom wrote: > > > Is there a way to develop a reusable library side-by-side with another > > project? without using any jars? > > > for example, i have a GWT in package com.example.application.client > > everything worked on it... then I added a new package to my eclipse > > project, calling it com.example.utils (side question: do I need to put > > client here too?), it didtn't worked... looks like the gwt.xml is all > > fine, but both gwt compiler and host mode refuses to run this way, > > telling that I may forgot to inherit some required module (I did > > placed the tag for utils on aplication.gwt.xml) > > > I want this to avoid the pain to have to package a jar and import it > > on my application everytime I change my utils library. This way I > > should be able to debug and edit both packages together, then, when > > the library is ready, I can export it to a jar. For now, my library is > > a subpackage of application. > > > Best Regards, > > Claudemir > > > On Aug 3, 8:28 pm, Sumit Chandel wrote: > > > > Hi Lucas, > > > You can follow the steps below to package an existing module, say module A > > > defined in project A, that you want to reuse in another project, say > > > project > > > B that defines module B which itself defines an entrypoint class. > > > > 1) Create / move all the GWT code that you want to reuse in project A. > > > > 2) Create / update the module XML file for module A in the normal way, > > > except you no longer need to define an entry point class. > > > > 3) Create a JAR for project A (project-a.jar), which should include 1) GWT > > > source code that you want to reuse from the project, 2) The module XML > > > file, > > > 3) Any other public resources referenced by the module XML file, 4) The > > > binary .class files for any server-side code that you want to reuse > > > > 4) Add the project-a.jar file to the project B classpath, as well as any > > > other launch configurations related to project B (typically hosted mode > > > and > > > compile configurations). > > > > 5) Reference the module A xml file from the module B xml file (e.g. > > > ). Note that since the > > > module > > > A xml file should already include the > > name="com.google.gwt.user.User" /> inherits tag, you shouldn't need to add > > > that reference again to the module B xml file. > > > > You should be ready to go. Give those instructions a try and let us know > > > if > > > you managed to package and reuse your module. > > > > Hope that helps, > > > -Sumit Chandel > > > > On Fri, Jul 31, 2009 at 10:37 AM, Lucas Neves Martins > > > wrote: > > > > > Nope, > > > > > Can anybody give a step-by-step ? > > > > > On 29 jul, 10:49, Nuno wrote: > > > > > you dont need to do much thing for this... > > > > > just create your gwt library project, you dont need to define any > > > > > entrypoints. > > > > > > after, just click with your right button on your project, then export, > > > > then > > > > > select java package > > > > > > after you only need to import > > > > > this jar on the other project you want to use it, and on the module > > > > > xml make reference to the xml of the library. > > > > > > you can find an example on my blog.http://tcninja.blogspot.com > > > > > > On Wed, Jul 29, 2009 at 10:10 AM, Lucas Neves Martins < > > > > snown...@gmail.com>wrote: > > > > > > > I looked it up all over the internet, but I only found this link : > > > > > > >http://developerlife.com/tutorials/?p=229 > > > > > > > I need to create a .jar with gwt views (those .java in the client > > > > > > package) and then import it to other gwt project, much like they do > > > > > > with the SmartGwt api. > > > > > > > How they did the SmartGwt api? Where is the > > > > > > Docs/Tutorial/Whitepapers > > > > > > on how to create and export GWT modules? > > > > > > > I follow the instructions on this link above, but it just doesn't > > > > > > work, when I try to compile it, I get an error telling me that the > > > > > > compiler couldn't find the class I am using, even the class is on > > > > > > the / > > > > > > lib dir, and in my buildpath, and in the .xml with a declared > > > > > > inherit. > > > > > > > Does anybody know how do I do that? > > > > > > -- > > > > > Quer aprender a programar? acompanhe: > > > > >
Re: Creating and Importing GWT Independent Modules
I am not a GWT expert, but I don't think this is possible. But if you want to make life easier you could use a "ant task" to automate those jar builds, copying, and classpath updating. With "ant" you can do most anything you could with a ShellScript, you know, java project wise. To help debugging, you can export every jar with the sources inside, there is a checkbox on the eclipse Jar export wizard. Boa sorte! On 14 ago, 10:48, Claudemir Todo Bom wrote: > Is there a way to develop a reusable library side-by-side with another > project? without using any jars? > > for example, i have a GWT in package com.example.application.client > everything worked on it... then I added a new package to my eclipse > project, calling it com.example.utils (side question: do I need to put > client here too?), it didtn't worked... looks like the gwt.xml is all > fine, but both gwt compiler and host mode refuses to run this way, > telling that I may forgot to inherit some required module (I did > placed the tag for utils on aplication.gwt.xml) > > I want this to avoid the pain to have to package a jar and import it > on my application everytime I change my utils library. This way I > should be able to debug and edit both packages together, then, when > the library is ready, I can export it to a jar. For now, my library is > a subpackage of application. > > Best Regards, > Claudemir > > On Aug 3, 8:28 pm, Sumit Chandel wrote: > > > Hi Lucas, > > You can follow the steps below to package an existing module, say module A > > defined in project A, that you want to reuse in another project, say project > > B that defines module B which itself defines an entrypoint class. > > > 1) Create / move all the GWT code that you want to reuse in project A. > > > 2) Create / update the module XML file for module A in the normal way, > > except you no longer need to define an entry point class. > > > 3) Create a JAR for project A (project-a.jar), which should include 1) GWT > > source code that you want to reuse from the project, 2) The module XML file, > > 3) Any other public resources referenced by the module XML file, 4) The > > binary .class files for any server-side code that you want to reuse > > > 4) Add the project-a.jar file to the project B classpath, as well as any > > other launch configurations related to project B (typically hosted mode and > > compile configurations). > > > 5) Reference the module A xml file from the module B xml file (e.g. > > ). Note that since the module > > A xml file should already include the > name="com.google.gwt.user.User" /> inherits tag, you shouldn't need to add > > that reference again to the module B xml file. > > > You should be ready to go. Give those instructions a try and let us know if > > you managed to package and reuse your module. > > > Hope that helps, > > -Sumit Chandel > > > On Fri, Jul 31, 2009 at 10:37 AM, Lucas Neves Martins > > wrote: > > > > Nope, > > > > Can anybody give a step-by-step ? > > > > On 29 jul, 10:49, Nuno wrote: > > > > you dont need to do much thing for this... > > > > just create your gwt library project, you dont need to define any > > > > entrypoints. > > > > > after, just click with your right button on your project, then export, > > > then > > > > select java package > > > > > after you only need to import > > > > this jar on the other project you want to use it, and on the module > > > > xml make reference to the xml of the library. > > > > > you can find an example on my blog.http://tcninja.blogspot.com > > > > > On Wed, Jul 29, 2009 at 10:10 AM, Lucas Neves Martins < > > > snown...@gmail.com>wrote: > > > > > > I looked it up all over the internet, but I only found this link : > > > > > >http://developerlife.com/tutorials/?p=229 > > > > > > I need to create a .jar with gwt views (those .java in the client > > > > > package) and then import it to other gwt project, much like they do > > > > > with the SmartGwt api. > > > > > > How they did the SmartGwt api? Where is the Docs/Tutorial/Whitepapers > > > > > on how to create and export GWT modules? > > > > > > I follow the instructions on this link above, but it just doesn't > > > > > work, when I try to compile it, I get an error telling me that the > > > > > compiler couldn't find the class I am using, even the class is on the > > > > > / > > > > > lib dir, and in my buildpath, and in the .xml with a declared inherit. > > > > > > Does anybody know how do I do that? > > > > > -- > > > > Quer aprender a programar? acompanhe: > > > > Wants to learn GWT? Follow this blog -> > > > > >http://tcninja.blogspot.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Goo
Re: Creating and Importing GWT Independent Modules
Yeah! It worked! Sorry for the waiting, there was a reshuffle and I was working in another project for a little while. But your step by step guide is very useful, and the discussion heped me too. I followed your steps and got the class acessible in the main project, but when I booted it, I got a nasty null pointer exception, so when I read your next post : " Only code that can be cross-compiled into JavaScript should be used when performing a GWT compilation ", I realized how obvious the solution was. I don't know yet if there are any other ways ( I believe there is ) , but I made my class to implement the "EntryPoint", the everything gone smoothly well. I left the "onModuleLoad" method empty. Thanks a lot Chandel , I will continue my journey on the GWT. On 3 ago, 20:28, Sumit Chandel wrote: > Hi Lucas, > You can follow the steps below to package an existing module, say module A > defined in project A, that you want to reuse in another project, say project > B that defines module B which itself defines an entrypoint class. > > 1) Create / move all the GWT code that you want to reuse in project A. > > 2) Create / update the module XML file for module A in the normal way, > except you no longer need to define an entry point class. > > 3) Create a JAR for project A (project-a.jar), which should include 1) GWT > source code that you want to reuse from the project, 2) The module XML file, > 3) Any other public resources referenced by the module XML file, 4) The > binary .class files for any server-side code that you want to reuse > > 4) Add the project-a.jar file to the project B classpath, as well as any > other launch configurations related to project B (typically hosted mode and > compile configurations). > > 5) Reference the module A xml file from the module B xml file (e.g. > ). Note that since the module > A xml file should already include the name="com.google.gwt.user.User" /> inherits tag, you shouldn't need to add > that reference again to the module B xml file. > > You should be ready to go. Give those instructions a try and let us know if > you managed to package and reuse your module. > > Hope that helps, > -Sumit Chandel > > On Fri, Jul 31, 2009 at 10:37 AM, Lucas Neves Martins > wrote: > > > > > Nope, > > > Can anybody give a step-by-step ? > > > On 29 jul, 10:49, Nuno wrote: > > > you dont need to do much thing for this... > > > just create your gwt library project, you dont need to define any > > > entrypoints. > > > > after, just click with your right button on your project, then export, > > then > > > select java package > > > > after you only need to import > > > this jar on the other project you want to use it, and on the module > > > xml make reference to the xml of the library. > > > > you can find an example on my blog.http://tcninja.blogspot.com > > > > On Wed, Jul 29, 2009 at 10:10 AM, Lucas Neves Martins < > > snown...@gmail.com>wrote: > > > > > I looked it up all over the internet, but I only found this link : > > > > >http://developerlife.com/tutorials/?p=229 > > > > > I need to create a .jar with gwt views (those .java in the client > > > > package) and then import it to other gwt project, much like they do > > > > with the SmartGwt api. > > > > > How they did the SmartGwt api? Where is the Docs/Tutorial/Whitepapers > > > > on how to create and export GWT modules? > > > > > I follow the instructions on this link above, but it just doesn't > > > > work, when I try to compile it, I get an error telling me that the > > > > compiler couldn't find the class I am using, even the class is on the / > > > > lib dir, and in my buildpath, and in the .xml with a declared inherit. > > > > > Does anybody know how do I do that? > > > > -- > > > Quer aprender a programar? acompanhe: > > > Wants to learn GWT? Follow this blog -> > > > >http://tcninja.blogspot.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Creating and Importing GWT Independent Modules
Is there a way to develop a reusable library side-by-side with another project? without using any jars? for example, i have a GWT in package com.example.application.client everything worked on it... then I added a new package to my eclipse project, calling it com.example.utils (side question: do I need to put client here too?), it didtn't worked... looks like the gwt.xml is all fine, but both gwt compiler and host mode refuses to run this way, telling that I may forgot to inherit some required module (I did placed the tag for utils on aplication.gwt.xml) I want this to avoid the pain to have to package a jar and import it on my application everytime I change my utils library. This way I should be able to debug and edit both packages together, then, when the library is ready, I can export it to a jar. For now, my library is a subpackage of application. Best Regards, Claudemir On Aug 3, 8:28 pm, Sumit Chandel wrote: > Hi Lucas, > You can follow the steps below to package an existing module, say module A > defined in project A, that you want to reuse in another project, say project > B that defines module B which itself defines an entrypoint class. > > 1) Create / move all the GWT code that you want to reuse in project A. > > 2) Create / update the module XML file for module A in the normal way, > except you no longer need to define an entry point class. > > 3) Create a JAR for project A (project-a.jar), which should include 1) GWT > source code that you want to reuse from the project, 2) The module XML file, > 3) Any other public resources referenced by the module XML file, 4) The > binary .class files for any server-side code that you want to reuse > > 4) Add the project-a.jar file to the project B classpath, as well as any > other launch configurations related to project B (typically hosted mode and > compile configurations). > > 5) Reference the module A xml file from the module B xml file (e.g. > ). Note that since the module > A xml file should already include the name="com.google.gwt.user.User" /> inherits tag, you shouldn't need to add > that reference again to the module B xml file. > > You should be ready to go. Give those instructions a try and let us know if > you managed to package and reuse your module. > > Hope that helps, > -Sumit Chandel > > On Fri, Jul 31, 2009 at 10:37 AM, Lucas Neves Martins > wrote: > > > > > Nope, > > > Can anybody give a step-by-step ? > > > On 29 jul, 10:49, Nuno wrote: > > > you dont need to do much thing for this... > > > just create your gwt library project, you dont need to define any > > > entrypoints. > > > > after, just click with your right button on your project, then export, > > then > > > select java package > > > > after you only need to import > > > this jar on the other project you want to use it, and on the module > > > xml make reference to the xml of the library. > > > > you can find an example on my blog.http://tcninja.blogspot.com > > > > On Wed, Jul 29, 2009 at 10:10 AM, Lucas Neves Martins < > > snown...@gmail.com>wrote: > > > > > I looked it up all over the internet, but I only found this link : > > > > >http://developerlife.com/tutorials/?p=229 > > > > > I need to create a .jar with gwt views (those .java in the client > > > > package) and then import it to other gwt project, much like they do > > > > with the SmartGwt api. > > > > > How they did the SmartGwt api? Where is the Docs/Tutorial/Whitepapers > > > > on how to create and export GWT modules? > > > > > I follow the instructions on this link above, but it just doesn't > > > > work, when I try to compile it, I get an error telling me that the > > > > compiler couldn't find the class I am using, even the class is on the / > > > > lib dir, and in my buildpath, and in the .xml with a declared inherit. > > > > > Does anybody know how do I do that? > > > > -- > > > Quer aprender a programar? acompanhe: > > > Wants to learn GWT? Follow this blog -> > > > >http://tcninja.blogspot.com > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Creating and Importing GWT Independent Modules
Hi Bruno, Only code that can be cross-compiled into JavaScript should be used when performing a GWT compilation. If you've added the projectA JAR to the GWT compile launch configuration, have you made sure that the class imported from com.google.ProjectA is translatable and has been included in the set of translatable code (via a tag in the moduleA xml file)? If moduleA.gwt.xml contained in the projectA.jar is resolved, it seems to me like the error message you're getting could be due to the fact that the class being imported isn't included in the set of translatable code. Hope that helps, -Sumit Chandel On Tue, Aug 4, 2009 at 3:12 PM, Nuno wrote: > How to set that the compiler use the jar from the project A?? > i've done everything, but now when i compile the code i get "import > com.google.projectA cannot be resolved" > if i remove or change the gwt.xml with a different name it complains that > it does not find the xml, so i'm sure it is finding the moduleA gwt.xml > > but i cant compile because of this error > > > > Att > > Bruno Bilescky > > Wants to learn GWT? Read my blog / Quer aprender a programar? leia meu blog > > http://tcninja.blogspot.com > > > > > > On Mon, Aug 3, 2009 at 8:28 PM, Sumit Chandel wrote: > >> Hi Lucas, >> You can follow the steps below to package an existing module, say module A >> defined in project A, that you want to reuse in another project, say project >> B that defines module B which itself defines an entrypoint class. >> >> 1) Create / move all the GWT code that you want to reuse in project A. >> >> 2) Create / update the module XML file for module A in the normal way, >> except you no longer need to define an entry point class. >> >> 3) Create a JAR for project A (project-a.jar), which should include 1) GWT >> source code that you want to reuse from the project, 2) The module XML file, >> 3) Any other public resources referenced by the module XML file, 4) The >> binary .class files for any server-side code that you want to reuse >> >> 4) Add the project-a.jar file to the project B classpath, as well as any >> other launch configurations related to project B (typically hosted mode and >> compile configurations). >> >> 5) Reference the module A xml file from the module B xml file (e.g. >> ). Note that since the module >> A xml file should already include the > name="com.google.gwt.user.User" /> inherits tag, you shouldn't need to add >> that reference again to the module B xml file. >> >> You should be ready to go. Give those instructions a try and let us know >> if you managed to package and reuse your module. >> >> Hope that helps, >> -Sumit Chandel >> >> >> On Fri, Jul 31, 2009 at 10:37 AM, Lucas Neves Martins > > wrote: >> >>> >>> Nope, >>> >>> Can anybody give a step-by-step ? >>> >>> On 29 jul, 10:49, Nuno wrote: >>> > you dont need to do much thing for this... >>> > just create your gwt library project, you dont need to define any >>> > entrypoints. >>> > >>> > after, just click with your right button on your project, then export, >>> then >>> > select java package >>> > >>> > after you only need to import >>> > this jar on the other project you want to use it, and on the module >>> > xml make reference to the xml of the library. >>> > >>> > you can find an example on my blog.http://tcninja.blogspot.com >>> > >>> > On Wed, Jul 29, 2009 at 10:10 AM, Lucas Neves Martins < >>> snown...@gmail.com>wrote: >>> > >>> > >>> > >>> > >>> > >>> > > I looked it up all over the internet, but I only found this link : >>> > >>> > >http://developerlife.com/tutorials/?p=229 >>> > >>> > > I need to create a .jar with gwt views (those .java in the client >>> > > package) and then import it to other gwt project, much like they do >>> > > with the SmartGwt api. >>> > >>> > > How they did the SmartGwt api? Where is the Docs/Tutorial/Whitepapers >>> > > on how to create and export GWT modules? >>> > >>> > > I follow the instructions on this link above, but it just doesn't >>> > > work, when I try to compile it, I get an error telling me that the >>> > > compiler couldn't find the class I am using, even the class is on the >>> / >>> > > lib dir, and in my buildpath, and in the .xml with a declared >>> inherit. >>> > >>> > > Does anybody know how do I do that? >>> > >>> > -- >>> > Quer aprender a programar? acompanhe: >>> > Wants to learn GWT? Follow this blog -> >>> > >>> > http://tcninja.blogspot.com >>> >>> >> >> >> > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Creating and Importing GWT Independent Modules
How to set that the compiler use the jar from the project A?? i've done everything, but now when i compile the code i get "import com.google.projectA cannot be resolved" if i remove or change the gwt.xml with a different name it complains that it does not find the xml, so i'm sure it is finding the moduleA gwt.xml but i cant compile because of this error Att Bruno Bilescky Wants to learn GWT? Read my blog / Quer aprender a programar? leia meu blog http://tcninja.blogspot.com On Mon, Aug 3, 2009 at 8:28 PM, Sumit Chandel wrote: > Hi Lucas, > You can follow the steps below to package an existing module, say module A > defined in project A, that you want to reuse in another project, say project > B that defines module B which itself defines an entrypoint class. > > 1) Create / move all the GWT code that you want to reuse in project A. > > 2) Create / update the module XML file for module A in the normal way, > except you no longer need to define an entry point class. > > 3) Create a JAR for project A (project-a.jar), which should include 1) GWT > source code that you want to reuse from the project, 2) The module XML file, > 3) Any other public resources referenced by the module XML file, 4) The > binary .class files for any server-side code that you want to reuse > > 4) Add the project-a.jar file to the project B classpath, as well as any > other launch configurations related to project B (typically hosted mode and > compile configurations). > > 5) Reference the module A xml file from the module B xml file (e.g. > ). Note that since the module > A xml file should already include the name="com.google.gwt.user.User" /> inherits tag, you shouldn't need to add > that reference again to the module B xml file. > > You should be ready to go. Give those instructions a try and let us know if > you managed to package and reuse your module. > > Hope that helps, > -Sumit Chandel > > > On Fri, Jul 31, 2009 at 10:37 AM, Lucas Neves Martins > wrote: > >> >> Nope, >> >> Can anybody give a step-by-step ? >> >> On 29 jul, 10:49, Nuno wrote: >> > you dont need to do much thing for this... >> > just create your gwt library project, you dont need to define any >> > entrypoints. >> > >> > after, just click with your right button on your project, then export, >> then >> > select java package >> > >> > after you only need to import >> > this jar on the other project you want to use it, and on the module >> > xml make reference to the xml of the library. >> > >> > you can find an example on my blog.http://tcninja.blogspot.com >> > >> > On Wed, Jul 29, 2009 at 10:10 AM, Lucas Neves Martins < >> snown...@gmail.com>wrote: >> > >> > >> > >> > >> > >> > > I looked it up all over the internet, but I only found this link : >> > >> > >http://developerlife.com/tutorials/?p=229 >> > >> > > I need to create a .jar with gwt views (those .java in the client >> > > package) and then import it to other gwt project, much like they do >> > > with the SmartGwt api. >> > >> > > How they did the SmartGwt api? Where is the Docs/Tutorial/Whitepapers >> > > on how to create and export GWT modules? >> > >> > > I follow the instructions on this link above, but it just doesn't >> > > work, when I try to compile it, I get an error telling me that the >> > > compiler couldn't find the class I am using, even the class is on the >> / >> > > lib dir, and in my buildpath, and in the .xml with a declared inherit. >> > >> > > Does anybody know how do I do that? >> > >> > -- >> > Quer aprender a programar? acompanhe: >> > Wants to learn GWT? Follow this blog -> >> > >> > http://tcninja.blogspot.com >> >> > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Creating and Importing GWT Independent Modules
Hi Lucas, You can follow the steps below to package an existing module, say module A defined in project A, that you want to reuse in another project, say project B that defines module B which itself defines an entrypoint class. 1) Create / move all the GWT code that you want to reuse in project A. 2) Create / update the module XML file for module A in the normal way, except you no longer need to define an entry point class. 3) Create a JAR for project A (project-a.jar), which should include 1) GWT source code that you want to reuse from the project, 2) The module XML file, 3) Any other public resources referenced by the module XML file, 4) The binary .class files for any server-side code that you want to reuse 4) Add the project-a.jar file to the project B classpath, as well as any other launch configurations related to project B (typically hosted mode and compile configurations). 5) Reference the module A xml file from the module B xml file (e.g. ). Note that since the module A xml file should already include the inherits tag, you shouldn't need to add that reference again to the module B xml file. You should be ready to go. Give those instructions a try and let us know if you managed to package and reuse your module. Hope that helps, -Sumit Chandel On Fri, Jul 31, 2009 at 10:37 AM, Lucas Neves Martins wrote: > > Nope, > > Can anybody give a step-by-step ? > > On 29 jul, 10:49, Nuno wrote: > > you dont need to do much thing for this... > > just create your gwt library project, you dont need to define any > > entrypoints. > > > > after, just click with your right button on your project, then export, > then > > select java package > > > > after you only need to import > > this jar on the other project you want to use it, and on the module > > xml make reference to the xml of the library. > > > > you can find an example on my blog.http://tcninja.blogspot.com > > > > On Wed, Jul 29, 2009 at 10:10 AM, Lucas Neves Martins < > snown...@gmail.com>wrote: > > > > > > > > > > > > > I looked it up all over the internet, but I only found this link : > > > > >http://developerlife.com/tutorials/?p=229 > > > > > I need to create a .jar with gwt views (those .java in the client > > > package) and then import it to other gwt project, much like they do > > > with the SmartGwt api. > > > > > How they did the SmartGwt api? Where is the Docs/Tutorial/Whitepapers > > > on how to create and export GWT modules? > > > > > I follow the instructions on this link above, but it just doesn't > > > work, when I try to compile it, I get an error telling me that the > > > compiler couldn't find the class I am using, even the class is on the / > > > lib dir, and in my buildpath, and in the .xml with a declared inherit. > > > > > Does anybody know how do I do that? > > > > -- > > Quer aprender a programar? acompanhe: > > Wants to learn GWT? Follow this blog -> > > > > http://tcninja.blogspot.com > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Creating and Importing GWT Independent Modules
Nope, Can anybody give a step-by-step ? On 29 jul, 10:49, Nuno wrote: > you dont need to do much thing for this... > just create your gwt library project, you dont need to define any > entrypoints. > > after, just click with your right button on your project, then export, then > select java package > > after you only need to import > this jar on the other project you want to use it, and on the module > xml make reference to the xml of the library. > > you can find an example on my blog.http://tcninja.blogspot.com > > On Wed, Jul 29, 2009 at 10:10 AM, Lucas Neves Martins > wrote: > > > > > > > I looked it up all over the internet, but I only found this link : > > >http://developerlife.com/tutorials/?p=229 > > > I need to create a .jar with gwt views (those .java in the client > > package) and then import it to other gwt project, much like they do > > with the SmartGwt api. > > > How they did the SmartGwt api? Where is the Docs/Tutorial/Whitepapers > > on how to create and export GWT modules? > > > I follow the instructions on this link above, but it just doesn't > > work, when I try to compile it, I get an error telling me that the > > compiler couldn't find the class I am using, even the class is on the / > > lib dir, and in my buildpath, and in the .xml with a declared inherit. > > > Does anybody know how do I do that? > > -- > Quer aprender a programar? acompanhe: > Wants to learn GWT? Follow this blog -> > > http://tcninja.blogspot.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Creating and Importing GWT Independent Modules
you dont need to do much thing for this... just create your gwt library project, you dont need to define any entrypoints. after, just click with your right button on your project, then export, then select java package after you only need to import this jar on the other project you want to use it, and on the module xml make reference to the xml of the library. you can find an example on my blog. http://tcninja.blogspot.com On Wed, Jul 29, 2009 at 10:10 AM, Lucas Neves Martins wrote: > > I looked it up all over the internet, but I only found this link : > > http://developerlife.com/tutorials/?p=229 > > I need to create a .jar with gwt views (those .java in the client > package) and then import it to other gwt project, much like they do > with the SmartGwt api. > > How they did the SmartGwt api? Where is the Docs/Tutorial/Whitepapers > on how to create and export GWT modules? > > I follow the instructions on this link above, but it just doesn't > work, when I try to compile it, I get an error telling me that the > compiler couldn't find the class I am using, even the class is on the / > lib dir, and in my buildpath, and in the .xml with a declared inherit. > > Does anybody know how do I do that? > > > -- Quer aprender a programar? acompanhe: Wants to learn GWT? Follow this blog -> http://tcninja.blogspot.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Creating and Importing GWT Independent Modules
I looked it up all over the internet, but I only found this link : http://developerlife.com/tutorials/?p=229 I need to create a .jar with gwt views (those .java in the client package) and then import it to other gwt project, much like they do with the SmartGwt api. How they did the SmartGwt api? Where is the Docs/Tutorial/Whitepapers on how to create and export GWT modules? I follow the instructions on this link above, but it just doesn't work, when I try to compile it, I get an error telling me that the compiler couldn't find the class I am using, even the class is on the / lib dir, and in my buildpath, and in the .xml with a declared inherit. Does anybody know how do I do that? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---