Skip to content

Commit

Permalink
[resolves #540] jboss-modules does not respect path excludes
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Diesler committed May 5, 2015
1 parent 41b291f commit 9785103
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 87 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
package org.wildfly.camel.test.spring;
/*
* #%L
* Wildfly Camel :: Testsuite
Expand All @@ -18,6 +17,7 @@
* limitations under the License.
* #L%
*/
package org.wildfly.camel.test.spring;


import org.jboss.arquillian.container.test.api.Deployment;
Expand All @@ -29,7 +29,6 @@
import org.jboss.shrinkwrap.api.ShrinkWrap;
import org.jboss.shrinkwrap.api.spec.JavaArchive;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;

Expand All @@ -39,7 +38,6 @@
* https://github.com/wildfly-extras/wildfly-camel/issues/540
*/
@RunWith(Arquillian.class)
@Ignore("[FIXME #540] jboss-modules does not respect path excludes")
public class SpringExcludedPathsTest {

@Deployment
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,38 +21,5 @@
^META-INF/cxf(.*)
^META-INF/services(.*)

# [FIXME #536] Remove OSGi-INF/blueprint from exported paths
^OSGI-INF/blueprint
^OSGI-INF/metatype

# [FIXME #540] jboss-modules does not respect path excludes
^ca/uhn
^com/google
^com/mchange(.*)
^com/sun(.*)
^com/thoughtworks(.*)
^net/oauth(.*)
^net/sf(.*)
^org/apache/cxf/clustering(.*)
^org/apache/cxf/jaxrs(.*)
^org/apache/cxf/rs(.*)
^org/apache/xmlbeans/impl(.*)
^org/apache/xmlbeans/soap
^org/apache/xmlbeans/xml(.*)
^org/castor(.*)
^org/ccil(.*)
^org/exolab(.*)
^org/fusesource(.*)
^org/quartz(.*)
^org/terracotta(.*)
^org/w3(.*)
^org/xmlpull(.*)
^schema/blueprint
^schema/configuration
^schemaorg_apache_xmlbeans(.*)
^schemas/blueprint
^w3c(.*)

[excludes]
# [FIXME #540] jboss-modules does not respect path excludes
# (.*)/internal
(.*)/internal
46 changes: 0 additions & 46 deletions modules/etc/baseline/exported-paths.txt
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,6 @@ META-INF/services/org/apache/camel/component
META-INF/services/org/apache/camel/dataformat
META-INF/services/org/apache/camel/language
META-INF/services/org/apache/camel/language/resolver
OSGI-INF/blueprint
OSGI-INF/metatype
ca/uhn/hl7v2
ca/uhn/hl7v2/app
ca/uhn/hl7v2/concurrent
Expand Down Expand Up @@ -238,15 +236,6 @@ ca/uhn/hl7v2/validation/builder/support
ca/uhn/hl7v2/validation/impl
ca/uhn/hl7v2/view
com/google/protobuf
com/sun
com/sun/tools
com/sun/tools/xjc
com/sun/tools/xjc/addon
com/sun/tools/xjc/addon/apache_cxf
com/sun/tools/xjc/addon/apache_cxf/bg
com/sun/tools/xjc/addon/apache_cxf/bgi
com/sun/tools/xjc/addon/apache_cxf/dv
com/sun/tools/xjc/addon/apache_cxf/ts
org/apache/abdera
org/apache/abdera/factory
org/apache/abdera/filter
Expand Down Expand Up @@ -382,44 +371,9 @@ org/apache/cxf/bus/osgi
org/apache/cxf/bus/resource
org/apache/cxf/bus/spring
org/apache/cxf/buslifecycle
org/apache/cxf/clustering
org/apache/cxf/clustering/blueprint
org/apache/cxf/clustering/spring
org/apache/cxf/interceptor
org/apache/cxf/interceptor/security
org/apache/cxf/interceptor/transform
org/apache/cxf/jaxrs
org/apache/cxf/jaxrs/blueprint
org/apache/cxf/jaxrs/client
org/apache/cxf/jaxrs/client/blueprint
org/apache/cxf/jaxrs/client/cache
org/apache/cxf/jaxrs/client/spec
org/apache/cxf/jaxrs/client/spring
org/apache/cxf/jaxrs/ext
org/apache/cxf/jaxrs/ext/multipart
org/apache/cxf/jaxrs/ext/xml
org/apache/cxf/jaxrs/impl
org/apache/cxf/jaxrs/impl/tl
org/apache/cxf/jaxrs/interceptor
org/apache/cxf/jaxrs/lifecycle
org/apache/cxf/jaxrs/model
org/apache/cxf/jaxrs/provider
org/apache/cxf/jaxrs/security
org/apache/cxf/jaxrs/servlet
org/apache/cxf/jaxrs/spring
org/apache/cxf/jaxrs/utils
org/apache/cxf/jaxrs/utils/multipart
org/apache/cxf/jaxrs/utils/schemas
org/apache/cxf/jaxrs/validation
org/apache/cxf/rs
org/apache/cxf/rs/security
org/apache/cxf/rs/security/oauth
org/apache/cxf/rs/security/oauth/client
org/apache/cxf/rs/security/oauth/data
org/apache/cxf/rs/security/oauth/filters
org/apache/cxf/rs/security/oauth/provider
org/apache/cxf/rs/security/oauth/services
org/apache/cxf/rs/security/oauth/utils
org/apache/cxf/sts
org/apache/cxf/transport/http
org/apache/cxf/transport/http/asyncclient
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@
<module name="javax.jws.api" />
<module name="javax.ws.rs.api" />
<module name="javax.xml.ws.api" />
<module name="org.apache.cxf.ext" export="true" />
<module name="org.apache.cxf.ext" export="true">
<exports>
<exclude path="org/apache/cxf/clustering**" />
<exclude path="org/apache/cxf/jaxrs**" />
<exclude path="org/apache/cxf/rs**" />
</exports>
</module>
<module name="org.apache.cxf.impl" export="true">
<imports>
<include path="META-INF/cxf**" />
Expand All @@ -23,7 +29,9 @@
<include path="org/apache/cxf/ws/security/**" />
<include path="org/apache/cxf/sts" />
<exclude path="org/apache/cxf/**" />
<exclude path="org/objectweb/asm**" />
<exclude path="OSGI-INF/blueprint" />
<exclude path="OSGI-INF/metatype" />
<exclude path="com/sun**" />
<exclude path="schemas**" />
</exports>
</module>
Expand Down
12 changes: 10 additions & 2 deletions modules/etc/smartics/camel-modules.xml
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,13 @@
<module name="javax.jws.api" />
<module name="javax.ws.rs.api" />
<module name="javax.xml.ws.api" />
<module name="org.apache.cxf.ext" export="true" />
<module name="org.apache.cxf.ext" export="true">
<exports>
<exclude path="org/apache/cxf/clustering**" />
<exclude path="org/apache/cxf/jaxrs**" />
<exclude path="org/apache/cxf/rs**" />
</exports>
</module>
<module name="org.apache.cxf.impl" export="true" >
<imports>
<include path="META-INF/cxf**" />
Expand All @@ -203,7 +209,9 @@
<include path="org/apache/cxf/ws/security/**" />
<include path="org/apache/cxf/sts" />
<exclude path="org/apache/cxf/**" />
<exclude path="org/objectweb/asm**" />
<exclude path="OSGI-INF/blueprint" />
<exclude path="OSGI-INF/metatype" />
<exclude path="com/sun**" />
<exclude path="schemas**" />
</exports>
</module>
Expand Down

0 comments on commit 9785103

Please sign in to comment.