[jboss-jira] [JBoss JIRA] Updated: (AS7-780) sub-deployments shouldn't be assumed to be VFS children of the parent deployment
Jason Greene (JIRA)
jira-events at lists.jboss.org
Fri May 20 12:40:14 EDT 2011
[ https://issues.jboss.org/browse/AS7-780?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jason Greene updated AS7-780:
-----------------------------
Assignee: (was: Jason Greene)
> 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
>
> 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