GWT plugin compile can not ignore a source directory

16 views
Skip to first unread message

stuckagain

unread,
Jun 6, 2011, 10:42:26 AM6/6/11
to google-we...@googlegroups.com
Is there a possibility in the GWT plugin to configure a source folder NOT to be included when doing a GWT compile ?

I have a separate source folder in eclipse where I put my unit tests. 

These unit tests are put in the same package so that I can gain access to package private classes.

These classes do not need to be GWT compiled, it slows down the compilation and they cause many errors to be reported.

When I use DevMode I can specify the classpath to not include my test directory ... I need something similar in the GWT Compile.

David

Alan Chaney

unread,
Jun 6, 2011, 10:52:12 AM6/6/11
to google-we...@googlegroups.com
On 6/6/2011 7:42 AM, stuckagain wrote:
> Is there a possibility in the GWT plugin to configure a source folder
> NOT to be included when doing a GWT compile ?
>
See

http://code.google.com/webtoolkit/doc/latest/DevGuideOrganizingProjects.html#DevGuideModuleXml

and look for "Filtering Public and Source Packages"

You can use an ant-style excludes="..." to specify classes which should
be included. For example, in my projects I use a **/*Test.java which
excludes all Java files in all sub-dirs which have 'Test' as the last
part of their name. You can use whatever is the correct pattern in your
case.

HTH

Alan

> I have a separate source folder in eclipse where I put my unit tests.
>
> These unit tests are put in the same package so that I can gain access
> to package private classes.
>
> These classes do not need to be GWT compiled, it slows down the
> compilation and they cause many errors to be reported.
>
> When I use DevMode I can specify the classpath to not include my test
> directory ... I need something similar in the GWT Compile.
>
> David

> --
> 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/-/a0FvLVJnaC1qOVlK.
> To post to this group, send email to google-we...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-tool...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.

stuckagain

unread,
Jun 10, 2011, 3:54:53 AM6/10/11
to google-we...@googlegroups.com
Hi,
 
Not an ideal solution (since I have lots of support classes which do not follow some naming convention), but it will do.
 
Thanks,
David
Reply all
Reply to author
Forward
0 new messages