Can I set some piece of code to be ignored by GWT compiler
I know that certain methods in my class are never going to be used in client side. They are specific to server. Can I somehow notify the GWT compiler to ignore these code fragments either at class level or method level. thanks in advance -- 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: Can I set some piece of code to be ignored by GWT compiler
There is GWT.isClient(). I'm not certain if the compiler will ignore the unused chunks, however. -Ben On Feb 25, 12:22 am, lalit lalit.bh...@gmail.com wrote: I know that certain methods in my class are never going to be used in client side. They are specific to server. Can I somehow notify the GWT compiler to ignore these code fragments either at class level or method level. thanks in advance -- 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: Can I set some piece of code to be ignored by GWT compiler
On Thu, Feb 24, 2011 at 11:22 PM, lalit lalit.bh...@gmail.com wrote: I know that certain methods in my class are never going to be used in client side. They are specific to server. Can I somehow notify the GWT compiler to ignore these code fragments either at class level or method level. thanks in advance Have you seen http://code.google.com/webtoolkit/doc/latest/DevGuideOrganizingProjects.html#DevGuideDirectoriesPackageConventions -- 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: Can I set some piece of code to be ignored by GWT compiler
Any code that is only run server-side should be outside the packages declare for compilation in your .gwt.xml file. For example, if you have data structure classes shared by both client and server, you can put them in a .shared package (and update your .gwt.xml to compile this package). However, your database methods to store and retrieve these classes should be located elsewhere, outside your .client and .shared packages. Follow Jeff's link for more details. -- 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.