ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Rees <d.ree...@usa.net>
Subject Re: [Bug 957] New - There should be an option to *never* overwrite/replace files in varous tasks
Date Wed, 14 Mar 2001 19:28:20 GMT
IMHO, This would be well supported by my "culler" submission once a
"comparison culler" is added (in about a week?). It would look
something like this:

<copy toDir="\tmp\toDir">
  <fileset dir="\tmp\fromDir">
       <compareculler dir="\\tmp\toDir" exists="no" />
  </fileset>
</copy>

I might add that the comparison culler will also support "newer" and
other comparison options.

d

On Tue, 13 Mar 2001 03:36:40 -0800 (PST), bugzilla@apache.org wrote:

>http://nagoya.apache.org/bugzilla/show_bug.cgi?id=957
>
>*** shadow/957	Tue Mar 13 03:36:40 2001
>--- shadow/957.tmp.4491	Tue Mar 13 03:36:40 2001
>***************
>*** 0 ****
>--- 1,26 ----
>+ +============================================================================+
>+ | There should be an option to *never* overwrite/replace files in varous tas |
>+ +----------------------------------------------------------------------------+
>+ |        Bug #: 957                         Product: Ant                     |
>+ |       Status: NEW                         Version: 1.3                     |
>+ |   Resolution:                            Platform: All                     |
>+ |     Severity: Enhancement              OS/Version: All                     |
>+ |     Priority: Low                       Component: Core tasks              |
>+ +----------------------------------------------------------------------------+
>+ |  Assigned To: ant-dev@jakarta.apache.org                                   |
>+ |  Reported By: liyanage@access.ch                                           |
>+ |      CC list: Cc:                                                          |
>+ +----------------------------------------------------------------------------+
>+ |          URL:                                                              |
>+ +============================================================================+
>+ |                              DESCRIPTION                                   |
>+ There should be an option to *never* clobber existing files in operations
>+ like copy or move, even if the source files are newer. This would be very
>+ useful in install targets to protect config files which the user usually
>+ edits by hand.
>+ Going by the modification date is not good enough, because the sample
>+ config files or templates might be newer, but that's no reason to replace
>+ the customized files already present.
>+ 
>+ A possibility would be a new value for the overwrite attribute (like "never") or a new

>+ attribute.
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: ant-dev-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: ant-dev-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: ant-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: ant-dev-help@jakarta.apache.org


Mime
View raw message