Wednesday, January 25, 2017

Re: GWT/Maven: No source code is available for type junit.framework.Test; did you forget to inherit a required module?

Hello Juan!

On Wednesday, January 25, 2017 at 7:40:06 PM UTC+1, Juan Pablo Gardella wrote:
I believe you don't want compile junit classes. 

Remove them from the src path that you instructed GWT to process. See an example at: http://www.gwtproject.org/doc/latest/tutorial/create.html#components especially at module xml, where you define the source path.


Thank you! No, I don't want to compile junit classes. But they are not in my path:

The library has these two folders:
  • src/main/java/msw/lib/awi
  • src/test/java/msw/lib/awi
The whole library code is below the first one and the only *.gwt.xml is:

src/main/java/msw/lib/awi.gwt.xml

It has the following contents:

  <module>
  <inherits name='com.google.gwt.user.User'/>
  <source path='awi'/>
 </module> 

Since this is the only *.gwt.xml file, I don't see where I should include the src/test/java/msw/lib/awi/AppTest.java, which uses junit.

I would like to understand, why the GWT compiler "sees" the AppTest.java file here?

Thank you
Magnus

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment