Community
Participate
Working Groups
Build Identifier: WTP 3.0.5 If the user defines variables in their workspace that point to jar files, adds these variables to EAR project, and then Exports the EAR, the jar files are named with the variable names instead of the names of the jar files the variables represent. This file should be named as what the variable represents instead of with the variable name (i.e. if variable 'TEST_UTIL=C:\TestUtil.jar' is added to the Java EE Module Dependencies then the exported file should be named TestUtil.jar, not TEST_UTIL). Steps to reproduce: 1) Create a new workspace variable that points to a jar file. 2) Right click the EAR project and select Properties > Java EE Module Dependencies. 3) Select "Add Variable" and add the variable to the EAR project. 4) Export the EAR project. 5) Open the resulting EAR project and you will see a "jar" file (no .jar extension though) named as the variable instead of the jar file it represents. Reproducible: Always
Created attachment 173810 [details] Proposed Patch This patch removes the AddComponentToEnterpriseApplicationOp.getArchiveName() method override so that the default CreateReferenceComponentsOp.getArchiveName() method is used instead. These changes make it so that the 'dependent-module' elements in the 'org.eclipse.wst.common.component' file now contain an 'archiveName' attribute. Some changes were also made to the EARVirtualComponent.getHardReferences() method so that it doesn't add the runtime path as prefix to the archive name if an archive name is already defined.
approved
Committed to R3_0_5_patches