[
https://issues.jboss.org/browse/AS7-780?page=com.atlassian.jira.plugin.sy...
]
Tobias Crawley commented on AS7-780:
------------------------------------
I filed this one for TorqueBox, but we no longer need this change. I'm fine if it gets
closed instead.
sub-deployments shouldn't be assumed to be VFS children of the
parent deployment
--------------------------------------------------------------------------------
Key: AS7-780
URL:
https://issues.jboss.org/browse/AS7-780
Project: Application Server 7
Issue Type: Bug
Reporter: Tobias Crawley
Fix For: Open To Community
With TorqueBox, we allow deploying apps that are outside of the deployed artifact. We
support a deployment descriptor inside a jar/ear/war that points to an external app
directory tree. SubDeploymentProcessor assumes that the root of the sub-deployment is a
VFS child of the parent, which won't be the case for TorqueBox:
{preformat}
final String relativePath =
childRoot.getRoot().getPathNameRelativeTo(parentRoot.getRoot());
{preformat}
It should be simple enough to only expand the path if it is not absolute:
{preformat}
final String relativePath = null;
if (childRoot.getRoot().isRoot()) {
relativePath = childRoot.getRoot().getPathName();
} else {
relativePath = childRoot.getRoot().getPathNameRelativeTo(parentRoot.getRoot());
}
{preformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira