4 Replies Latest reply on Feb 28, 2005 5:06 AM by Darran Lofthouse

    Ant warning: file modified in the future

    mike beeby Newbie

      Hi

      I got these strange message "warning: file 'name of file' modified in the future' for each of my files whilst compiling in Ant. I changed each file and saved (made white space then deleted) and the error messages went away. However, when I make a real change to my JSP or servlet files, it has no effect on my output.

      I'm a newbie and after searching on google I'm guessing that the changes I've made to my files won't take effect until a certain time?!!? But not really sure what to do. Anyone been here before?

      Thanks,

      Mike.

        • 1. Re: Ant warning: file modified in the future
          Darran Lofthouse Master

          Have you looked at the modified times of your files?

          Are you using just one machine or have the files been modified on one machine and copied to another?

          Has the clock been changed on your computer? Are you sure that the clock is working correctly?

          • 2. Re: Ant warning: file modified in the future
            mike beeby Newbie

            Hi, thanks for replying.

            I'm on one computer.

            How do I find the modified time of my files?

            One other thing, on my antu-virus software it says it was last run on 26 MARCH 2005 i.e. one month out. But its been one month out for a long time even though my computer's time and date is correct (unless there is another time and date on the computer apart from the visible one) .

            Haven't changed anything else on my computer since last used.

            • 3. Re: Ant warning: file modified in the future
              mike beeby Newbie

              It turns out my wife has been on my computer (gggrrrrrr) and I think the date was set to 26th March instead of 26th February. So even when I modify the JSP files it has no effect because ant is not running them. I created a new directory (with all the same file and sub-directory) names hoping that would fix it but it hasn't.

              I don't want to wait until the 26th March before I can run my files again! And I don't fancy changing all my file names, is there a simpler alternative?

              • 4. Re: Ant warning: file modified in the future
                Darran Lofthouse Master

                If you have a look at the ant documentation there is a task called 'touch', this can be used to update the modified time of all files specified by a fileset.

                This could be used to specify a new modified time for all of your affected files.