You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2007/06/29 01:22:30 UTC

DO NOT REPLY [Bug 42774] New: - dependset incorrectly evaluates newest source when over 24 days old

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=42774>.
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=42774

           Summary: dependset incorrectly evaluates newest source when over
                    24 days old
           Product: Ant
           Version: 1.7.0
          Platform: Other
        OS/Version: Windows XP
            Status: NEW
          Severity: regression
          Priority: P1
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: edm@attachmate.com


The dependset task returns older source file as newer when a file included in
srcfileset is older than 24 days (the cutoff is actually 35791 minutes). 
Dependset works as expected in versions 1.6.2 and 1.6.5.  The result (in 1.7.0)
is that target files are not deleted if any source files are over 24 days old.

To reproduce:
1. Create a target file, a source file newer than the target file, and another
source file with a timestamp of (at least) 25 days old.
2. Create a target that includes the following code:
  <dependset>
    <srcfileset dir="${src.dir}"/>
    <targetfilelist dir="${obj.dir}" files="target.file"/>
   </dependset>
3. Invoke "ant <target> -verbose -debug".

The oldest source file be reported as "newest source".

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

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


DO NOT REPLY [Bug 42774] - dependset incorrectly evaluates newest source when over 24 days old

Posted by bu...@apache.org.
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=42774>.
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=42774





------- Additional Comments From gudnabrsam@yahoo.com  2007-06-29 10:36 -------
Thanks, Martijn!

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

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


DO NOT REPLY [Bug 42774] - dependset incorrectly evaluates newest source when over 24 days old

Posted by bu...@apache.org.
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=42774>.
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=42774





------- Additional Comments From edm@attachmate.com  2007-06-28 16:28 -------
Created an attachment (id=20414)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=20414&action=view)
Ant files that demonstrates bug

Ant buildfile ("ant -f dependset.xml") that demonstrates the bug in dependset.

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

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


DO NOT REPLY [Bug 42774] - dependset incorrectly evaluates newest source when over 24 days old

Posted by bu...@apache.org.
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=42774>.
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=42774


jkf@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |RESOLVED
         Resolution|                            |DUPLICATE




------- Additional Comments From jkf@apache.org  2007-06-29 10:31 -------
Actually it was fixed on purpose because of bug 41411. (And the obsolete build
has been removed in the meantime.)

*** This bug has been marked as a duplicate of 41411 ***

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

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


DO NOT REPLY [Bug 42774] - dependset incorrectly evaluates newest source when over 24 days old

Posted by bu...@apache.org.
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=42774>.
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=42774


gudnabrsam@yahoo.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO




------- Additional Comments From gudnabrsam@yahoo.com  2007-06-29 08:01 -------
I'm too lazy to look too deeply into this if I don't have to... ;) ...but I had an old 1.7.0 alpha on my XP box 
and saw that dependset-failure echoed "Target deleted? false" with that version, but running against the 
code from svn trunk yields "Target deleted? true" on XP and OS X alike.  Can you verify this is fixed in the 
source version?  If it helps, the fix seems to have been an inadvertent result of Martijn Kruithof's having 
fixed bug 41284 back in January--that bug report contains a link to a build including the fix if you don't 
have the resources to build Ant yourself (though judging from your attachment you seem to be an old 
hand with Ant).

br,
Matt

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

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