<?xml version="1.0" encoding="UTF-8"?>
<module>
  <inherits name='org.realityforge.gwt.datatypes.Datatypes'/>

  <inherits name="com.google.gwt.json.JSON"/>
  <inherits name="org.realityforge.replicant.Replicant"/>

  <source path='client'/>
  <source path='shared'/>
</module>

<?xml version="1.0" encoding="UTF-8"?>
<module>
  <inherits name='org.realityforge.gwt.datatypes.Datatypes'/>

  <inherits name="com.google.gwt.json.JSON"/>
  <inherits name="org.realityforge.replicant.Replicant"/>

<%
packages =
  [
    repository.gwt.client_data_type_package,
    repository.gwt.client_event_package,
    repository.gwt.client_entity_package,
    repository.gwt.client_service_package,
    repository.gwt.shared_data_type_package,
    repository.gwt.shared_service_package,
    repository.imit.client_ioc_package,
    repository.imit.client_comm_package,
    repository.imit.shared_comm_package
  ]

  prefix = repository.imit.model_module.gsub(/\.[^\.]+$/,'')
%>
  <source path=''>
<% packages.select{|p|p =~ /^#{Regexp.escape(prefix)}/}.each do |pkg| -%>
    <include name="<%= pkg.gsub("#{prefix}.",'').gsub('.','/') %>/**/*.java"/>
<% end -%>
  </source>
</module>

Use more restrictive include paths
Use more restrictive include paths
