ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 47755] The ant move task completely ignores the overwrite attribute
Date Fri, 28 Aug 2009 14:05:48 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=47755


Stefan Bodewig <bodewig@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME


--- Comment #1 from Stefan Bodewig <bodewig@apache.org> 2009-08-28 07:05:42 PDT ---
subversion is currently not writable, but I have a passing AntUnit test that
I'll be committing later:

  <target name="testOverwriteIsTrueByDefault">
    <mkdir dir="${input}"/>
    <mkdir dir="${output}"/>
    <echo file="${input}/x.txt">X</echo>
    <sleep seconds="2"/>
    <echo file="${output}/y.txt">Y</echo>
    <move file="${input}/x.txt" tofile="${output}/y.txt"/>
    <au:assertFileDoesntExist file="${input}/x.txt"/>
    <au:assertResourceContains resource="${output}/y.txt"
                               value="X"/>
  </target>

  <target name="testOverwriteIsHonored"
         
description="https://issues.apache.org/bugzilla/show_bug.cgi?id=47755">
    <mkdir dir="${input}"/>
    <mkdir dir="${output}"/>
    <echo file="${input}/x.txt">X</echo>
    <sleep seconds="2"/>
    <echo file="${output}/y.txt">Y</echo>
    <move file="${input}/x.txt" tofile="${output}/y.txt" overwrite="false"/>
    <au:assertFileExists file="${input}/x.txt"/>
    <au:assertResourceContains resource="${output}/y.txt"
                               value="Y"/>
  </target>

The tests pass for Ant 1.7.1 and subversion trunk as of seven hours ago.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Mime
View raw message