[jboss-jira] [JBoss JIRA] (AS7-780) sub-deployments shouldn't be assumed to be VFS children of the parent deployment
Brian Stansberry (JIRA)
jira-events at lists.jboss.org
Mon Feb 20 12:58:36 EST 2012
[ https://issues.jboss.org/browse/AS7-780?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brian Stansberry updated AS7-780:
---------------------------------
Component/s: Server
> 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
> Components: Server
> 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
More information about the jboss-jira
mailing list