[jboss-dev-forums] [JBoss AS7 Development] - [Modules] Should '/' always be used in exported paths regardless of the OS

David Bosschaert do-not-reply at jboss.com
Fri Oct 22 07:01:47 EDT 2010


David Bosschaert [http://community.jboss.org/people/bosschaert] created the discussion

"[Modules] Should '/' always be used in exported paths regardless of the OS"

To view the discussion, visit: http://community.jboss.org/message/567853#567853

--------------------------------------------------------------
While looking into  https://jira.jboss.org/browse/JBAS-8543 https://jira.jboss.org/browse/JBAS-8543 I found that jboss-modules expects the exported paths always to be stored using unix dir separators. So if my module exports the org.foo.bar package this should be registered as the path org/foo/bar

JBAS-8543 is about running the system on Windows. In our OSGi code we register exported paths with jboss-modules using File.separatorChar, so on Windows that would register the above path as org\foo\bar. The logic in jboss-modules doesn't expect that and can hence not find the resource (or class in this case).

So how should the contract be?
* Should we always use '/' and never File.separator? In that case the OSGi code needs to change to follow this rule and all other subsystems need to do this too.
* Should we use File.separator in which case the code in jboss-modules needs to change...
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/567853#567853]

Start a new discussion in JBoss AS7 Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20101022/7e669742/attachment.html 


More information about the jboss-dev-forums mailing list