ASF Bugzilla – Attachment 17862 Details for
Bug 38918
Add 'real' overwrite support to Zip-based tasks
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
ZIp.java patch
Zip.java.patch (text/plain), 1.27 KB, created by
Horaci Macias
on 2006-03-10 10:48:08 UTC
(
hide
)
Description:
ZIp.java patch
Filename:
MIME Type:
Creator:
Horaci Macias
Created:
2006-03-10 10:48:08 UTC
Size:
1.27 KB
patch
obsolete
>Index: src/main/org/apache/tools/ant/taskdefs/Zip.java >=================================================================== >--- src/main/org/apache/tools/ant/taskdefs/Zip.java (revision 384498) >+++ src/main/org/apache/tools/ant/taskdefs/Zip.java (working copy) >@@ -1130,11 +1130,15 @@ > resources = selectFileResources(resources); > } > >- newerResources[i] = >- ResourceUtils.selectOutOfDateSources(this, >+ if(duplicate.equals("overwrite")){ >+ newerResources[i] = resources; >+ } else { >+ newerResources[i] = >+ ResourceUtils.selectOutOfDateSources(this, > resources, > myMapper, > getZipScanner()); >+ } > needsUpdate = needsUpdate || (newerResources[i].length > 0); > > if (needsUpdate && !doUpdate) { >@@ -1647,7 +1651,7 @@ > * @see EnumeratedAttribute#getValues() > */ > public String[] getValues() { >- return new String[] {"add", "preserve", "fail"}; >+ return new String[] {"add", "preserve", "fail", "overwrite"}; > } > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 38918
: 17862