Community
Participate
Working Groups
Build Identifier: WTP 3.0.5 If you add a class path variable pointing to a zip file to an EAR project(for example, file.zip), and then you export the EAR file, the EAR will contain a file named file.zip.jar). I also saw that if the file was named file.JAR, it would be exported as file.JAR.jar Steps to recreate: 1. Create an EAR 5 2. Go to the Java EE module Dependencies page 3. Add a variable pointing to a zip file 4. Export the EAR 5. Review the content of the EAR. You will see the file with extension zip.jar Reproducible: Always
Created attachment 175811 [details] Proposed Patch The attached patch modifies the getVirtualComponentNameWithExtension() method in AddModulestoEARPropertiesPage.java so that it doesn't add an additional extension if the file has a .zip extension and also adds code so that the compare for the extension is done in lowercase to avoid creating file name with duplicate extensions (i.e. .JAR.jar).
approved
Committed to R3_0_5_patches
Created attachment 176252 [details] Patch with missing changes Attached patch adds code so that the compare for the extension is done in lowercase to avoid creating file name with duplicate extensions (i.e. .JAR.jar). Changes to handle '.zip' extension correctly have already been checked in. The attached changes still need to be checked in.
Reopening since latest attached patch also needs to be checked in.
For the record, Aidyl's initial patch had a collision with another R3_0_5_patch. I attempted to resolve the collision, but did not do so correctly. Her second patch properly resolves the collision.