]
Jason Greene updated AS7-780:
-----------------------------
Fix Version/s: Open To Community
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: