Not sure I understand the problem, but you might want to try <skip> instead 
of <exclude>. <skip> is "do not include those files in this particular 
module, but another module might include them" whereas <exclude> is "do not 
include those files, never ever" (AFAICT).

I've never had to deal with such exclusions for test classes though: when 
compiling the app, simply do not put the test classes in the classpath. It 
very much depends how you build project (Ant vs. Make vs. whatever) and how 
you organize your files (separate src/ vs. test/, or src/main vs. src/test, 
folders vs. everything in the same folder)

Finally, note that if you want to "exclude each variant of Test except 
TestGWT" then it should be enough to <include>**/*TestGWT.java</include> 
instead.

On Monday, January 21, 2013 12:24:21 PM UTC+1, tskardal wrote:
>
> Hello all!
>
> I'm a bit confused when it comes to GWT compilation and test classes. 
> Please enlighten me! :-)
>
> Currently I have some trouble running a GWTTestCase test. I get the 
> following compilation error:
>
> The test class 'x.PageIntegrationTestGWT' was not found in module 
>> 'x.GwtIntegrationTest'; no compilation unit for that type was seen
>
>
> This is caused by this source/exclude configuration in the GWT module:
>
> <source path="client">
>>      <exclude name="**/*Test*.java"/>
>>      <exclude name="**/*Mock*.java"/>
>> </source>
>
>
> The reason we use the wildcard at the end of Test* is that we use a 
> postfix annotation to determine which tests to run when (unit/integration 
> and so on..). Is there an "easy" way to fix my problem, or do I have to 
> explicitly exclude each variant of Test except TestGWT?
>
> I tried creating a separate module definition that inherits the real one, 
> and override the source/exclude configuration, but without any luck.
>
> Thanks!
>
> Thomas
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/xe2JONlknIoJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to