Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    using GWT module source include

    I need to modify the <source> tag of my GWT module (xxx.gwt.xml) to specify individual Java classes for translation to Javascript. Because of dependencies on Hibernate, Java io packages etc. I cannot and do not want to translate the entire source directory.

    Here is my source include statements:

    <source path="client" />
    <source path="registry/data">
    <include name="**/registry/data/Field.java"/>
    </source>

    So in this example I would like to include only the Field.java class file in the registry/data directory. However all class files end up being included.

    I have tried several other combinations such as

    <include name="/Field.java"/>
    <include name="**/Field.java"/>
    <include name="Field"/>

    as well as using the exclude tag to try to exclude files

    <exclude name="Resource.java"/>
    <exclude name="**/Resource.java"/>
    <exclude name="Resource"/>

    without luck.

    I have looked at the gwt-module.dtd as well as the GWT module documentation which indicates "the <source> tag supports pattern based filtering to allow fine-grained control over which resources get copied into the output directory during a GWT compile." The pattern-based filtering is based on Ant's FileSet element.

    Any help would be greatly appreciated!
    Last edited by jventuri; 11 Feb 2011, 08:26.
Working...
X