/** * Sets the archive name using the archive-name element defined * in sun-application.xml * @param archiveName archiveName to calculate default EE6 app-name */ public void setArchiveName(String archiveName) { this.archiveName = archiveName; if (appName == null && archiveName != null) { appName = DeploymentUtils.getDefaultEEName(archiveName); } }
/** * Sets the archive name using the archive-name element defined * in sun-application.xml * @param archiveName archiveName to calculate default EE6 app-name */ public void setArchiveName(String archiveName) { this.archiveName = archiveName; if (appName == null && archiveName != null) { appName = DeploymentUtils.getDefaultEEName(archiveName); } }
/** * Returns the value of the module-name element in the application.xml if * it's defined. The default module name is the pathname of the module in * the ear file with any filename extension (.jar, .war, .rar) removed, * but with any directory names included. * * @return the module of this application */ public String getModuleName() { String name = moduleName; if (moduleName == null) { name = VersioningUtils.getUntaggedName(DeploymentUtils.getDefaultEEName(path)); } else{ name = VersioningUtils.getUntaggedName(moduleName); } return name; }
try { boolean isEJBModule = false; String moduleName = DeploymentUtils.getDefaultEEName(fileName); archive = archiveFactory.openArchive(file); is = getDeploymentDescriptor(archive);
try { boolean isEJBModule = false; String moduleName = DeploymentUtils.getDefaultEEName(fileName); archive = archiveFactory.openArchive(file); is = getDeploymentDescriptor(archive);
DeploymentUtils.getDefaultEEName(sourceFile.getName()));
DeploymentUtils.getDefaultEEName(sourceFile.getName()));