Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.2
-
Fix Version/s: 2.3
-
Labels:None
-
Number of attachments :
Description
The ear plugin doesn't check for artifacts that are already deployed within the ear, and so ends up redundantly copying such artifacts, e.g.:
copy C:/appserver/deploy/my.ear/lib/my.jar C:/appserver/deploy/my.ear/lib/my.jar
and when you copy a file onto itself using the Plexus copy util method, it zeros out the file (a bug in itself IMO but that's beside the point
.
A check should be added, so the ear plugin intelligently handles this, albeit unusual, case.
Issue Links
- relates to
-
PLXUTILS-10
FileUtils.copyFile zeros out the file if source file is the same as destination file
-