ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 57086] COPY task sees source files up to date until they are at least one minute out of date.
Date Tue, 14 Oct 2014 22:27:59 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=57086

--- Comment #5 from Paul Scott <pscott@skycoast.us> ---
Running the following program against each of the files in question on Windows
7 produces granularity down to the second.

import static java.lang.System.out;
import java.io.File;
import java.text.DateFormat;
import java.util.Date;

class main {

    public static void main( String [] args ) {

        if ( args.length > 0 ) {
            File f = new File(args[0]);
            if ( f != null ) {
                DateFormat df =
DateFormat.getDateTimeInstance(DateFormat.SHORT,DateFormat.MEDIUM);
                out.println("Last modified: " + df.format(f.lastModified()));
            }
        }
        return;
    }
}

-- 
You are receiving this mail because:
You are the assignee for the bug.

Mime
View raw message