openejb-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eltonk <kuzniew...@gmail.com>
Subject include/exclude classpath
Date Thu, 23 Aug 2012 12:22:24 GMT
Hello there!

I was taking a look about the include/exclude classpath with the properties
"openejb.deployments.classpath.exclude" and
"openejb.deployments.classpath.include", but I'm not  able to solve the
problem by myself. :(

I have 2 properties files, called "hibernate.properties". One of them in
main/resource (used by real application) and the other one in test/resource
(to test purposes).

In my test environment, I need exclude the first one (main/resource) because
the second one (test/resource) should be used.

I'm trying do it as follow:

properties.setProperty("openejb.deployments.classpath.filter.descriptors",
"true");
properties.setProperty("openejb.deployments.classpath.include",
".*(target/classes|target/test-classes).*");
properties.setProperty("openejb.deployments.classpath.exclude",
".*target/classes/hibernate.properties");

The problem is that it isn't working. I'm not able to exclue the
"target/classes/hibernate.properties" from test's classpath.

My doubt is if the "exclude" path has priority over "include" path. As I'm
seeing it's not true. Am I right?

If I'm right, how can I do something such that?

I'm using ebedded OpenEJB to my tests.

Thanks a lot!



--
View this message in context: http://openejb.979440.n4.nabble.com/include-exclude-classpath-tp4657023.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Mime
View raw message