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
-
Activity
Stéphane Nicoll
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Fix Version/s | 2.3 [ 12631 ] |
Stéphane Nicoll
made changes -
| Assignee | Stephane Nicoll [ sni ] |
Ian Springer
made changes -
| Attachment | on-build-m2-plugin.zip [ 24062 ] |
Stéphane Nicoll
made changes -
| Link | This issue is related to PLX-308 [ PLX-308 ] |
Stéphane Nicoll
made changes -
| Status | Open [ 1 ] | Closed [ 6 ] |
| Resolution | Fixed [ 1 ] |
How do we reproduce this unusual case?