public void deploy(VFSDeploymentUnit unit, JBossAppMetaData jBossAppMetaData) throws DeploymentException
{
try
{
VirtualFile root = unit.getRoot();
String libDir = jBossAppMetaData.getLibraryDirectory();
if (libDir == null || libDir.length() == 0) // take 'lib' even on empty
libDir = "lib";
VirtualFile lib = root.getChild(libDir);
if (lib != null)
{
ResourceFilter recurseFilter = new UrlExcludeResourceFilter(lib.toURL());
unit.addAttachment(ResourceFilter.class.getName() + ".recurse", recurseFilter, ResourceFilter.class);
log.debug("Excluding ear's lib directory: " + lib);
}
}
catch (Exception e)