0 Replies Latest reply on Nov 12, 2006 3:45 PM by Scott Stark

    Added simpleName and relativePathName accessors to the deplo

    Scott Stark Master

      A number of deployers are trying to extract simple name/paths from the deployments, so I added getSimpleName, getRelativePath accessors to the DeploymentUnit interface to make this available.

       /**
       * Get the simple vfs name of the deployment unit. This is the simple
       * name of the virtual file .
       *
       * vfs path ------------------- simple name
       * deploy/some.ear "some.ear"
       * deploy/some.ear/x.ejb "x.ejb"
       * deploy/some.ear/y.sar "y.sar"
       * deploy/some.ear/y.sar/z.rar "z.rar"
       * deploy/complexwithappxml.ear/module-mbean1.sar/submbean.sar submbean.sar
       * @return the deployment unit simple path
       */
       public String getSimpleName();
      
       /**
       * Get the path of this deployment relative to the top of the
       * deployment based on the vfs paths. For example, an ear:
       *
       * vfs path ------------------- relative path
       * deploy/some.ear ""
       * deploy/some.ear/x.ejb "/x.ejb"
       * deploy/some.ear/y.sar "/y.sar"
       * deploy/some.ear/y.sar/z.rar "/y.sar/z.rar"
       * deploy/complexwithappxml.ear/module-mbean1.sar/submbean.sar /module-mbean1.sar/submbean.sar
       *
       * @return the top-level deployment relative path
       */
       public String getRelativePath();