ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 32105] New: - sync task behavior @ 11:05 pm on 10/31
Date Sun, 07 Nov 2004 16:13:51 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=32105>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32105

sync task behavior @ 11:05 pm on 10/31

           Summary: sync task behavior @ 11:05 pm on 10/31
           Product: Ant
           Version: 1.6.2
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: pfisterj41@yahoo.com


To state the problem in shortest terms possible: <sync> task copied over files 
that already existed in target directory.  

It was as if <sync> thought none of the files or directories were in the target 
location.  Only a few dozen files should have been copied over but everything 
was.  Again, almost all of the files that <sync> copied over already existed in 
the target directory.  

The sync process began at 11:05 pm on 10/31.  Please make special note that 
10/31 2:00am was time change from daylight savings to standard time--fall back 
one hour (eastern time).  

I think the combination of being the day of time change and it also being the 
last day of month caused the glitch.  Did <sync> think the time/date was 12:05 
November 1st?  Maybe, in some way, the algoritm for determining what files need 
to be sync-ed depends on system time?  And there is a flaw in the logic?  
(note: using Windows 2000)


Here a partial of my backup code:
--------------------------------------
<target name="sync-e" depends="init">
  <property name="e.dir" value="E:/backup/${year}/${month}"/>
  
  <echo message="dev"/>
  <sync todir="${e.dir}/dev">
    <fileset dir="c:/dev"/>
  </sync>

</target>

<target name="init">
  <!-- General config -->
  <tstamp><format property="year" pattern="yyyy" locale="en"/></tstamp>
  <tstamp><format property="month" pattern="MM" locale="en"/></tstamp>
  <tstamp><format property="day" pattern="dd" locale="en"/></tstamp>
  <tstamp><format property="file.frag" pattern="yyyyMMdd" locale="en"/></tstamp>
  <tstamp><format property="file.yyyymm" pattern="yyyyMM" locale="en"/></tstamp>

  <property environment="env" />        
  <property file="${basedir}/build.properties" /> 
  
</target>

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


Mime
View raw message