Friday, July 29, 2011

Excluding Classes in a Legacy Application using GWT 2.3

1) My legacy application is setup like this:
com.app.model
com.app.exception
com.app.util
com.app.service
etc.

There are 20 classes in the model package, but I only want to
serialize and use 4 for RPC. The others have heavy code in them that
error out upon compilation.

2) There are references to apache log4j that the GWT cannot find
source for:
No source code is available for type org.apache.log4j.Logger; did you
forget to inherit a required module?

This is the same for java.util.Calendar, org.junit.Assert, etc.
--

I have tried using the extend-configuration-property "rpc.blacklist"
like
<extend-configuration-property name="rpc.blacklist" value="-
java.util.Calendar"/>
But this seems to do nothing at compile time.

I have also tried to use the blacklist to exclude everything in the
model package except the classes I need, but the other classes still
error out.

Is there anyway to tell GWT to only compile certain classes, and
ignore others?

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

1 comment: