JarUtils.addJarEntry(plan, "!/" + (webInf ? "WEB-INF/" : "META-INF/") + jbossDescriptorName, new FileInputStream(jbossDescriptorFile));
// Setup deployment plan meta data with propriatary descriptor
DeploymentMetaData metaData = new DeploymentMetaData(deploymentFile);
metaData.addEntry(deploymentFile, jbossDescriptorName);
// Add the meta data to the deployment plan
String metaStr = metaData.toXMLString();
JarUtils.addJarEntry(plan, DeploymentMetaData.ENTRY_NAME, new ByteArrayInputStream(metaStr.getBytes()));