[jboss-jira] [JBoss JIRA] Created: (AS7-780) sub-deployments shouldn't be assumed to be VFS children of the parent deployment
Tobias Crawley (JIRA)
jira-events at lists.jboss.org
Fri May 13 18:29:50 EDT 2011
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
Assignee: Jason Greene
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.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list