git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@731937 13f79535-47bb-0310-9956-ffa450edef68master
| @@ -79,7 +79,7 @@ public class ReplaceTest extends BuildFileTest { | |||||
| executeTarget("lastModifiedSetup"); | executeTarget("lastModifiedSetup"); | ||||
| String tmpdir = project.getProperty("tmp.dir"); | String tmpdir = project.getProperty("tmp.dir"); | ||||
| long ts1 = new File(tmpdir, "test.txt").lastModified(); | long ts1 = new File(tmpdir, "test.txt").lastModified(); | ||||
| Thread.sleep(2); | |||||
| Thread.sleep(3000); | |||||
| executeTarget("testNoPreserve"); | executeTarget("testNoPreserve"); | ||||
| assertTrue(ts1 < new File(tmpdir, "test.txt").lastModified()); | assertTrue(ts1 < new File(tmpdir, "test.txt").lastModified()); | ||||
| } | } | ||||
| @@ -88,7 +88,7 @@ public class ReplaceTest extends BuildFileTest { | |||||
| executeTarget("lastModifiedSetup"); | executeTarget("lastModifiedSetup"); | ||||
| String tmpdir = project.getProperty("tmp.dir"); | String tmpdir = project.getProperty("tmp.dir"); | ||||
| long ts1 = new File(tmpdir, "test.txt").lastModified(); | long ts1 = new File(tmpdir, "test.txt").lastModified(); | ||||
| Thread.sleep(2); | |||||
| Thread.sleep(3000); | |||||
| executeTarget("testPreserve"); | executeTarget("testPreserve"); | ||||
| assertTrue(ts1 == new File(tmpdir, "test.txt").lastModified()); | assertTrue(ts1 == new File(tmpdir, "test.txt").lastModified()); | ||||
| } | } | ||||
| @@ -106,7 +106,7 @@ public class ReplaceRegExpTest extends BuildFileTest { | |||||
| executeTarget("lastModifiedSetup"); | executeTarget("lastModifiedSetup"); | ||||
| String tmpdir = project.getProperty("tmpregexp"); | String tmpdir = project.getProperty("tmpregexp"); | ||||
| long ts1 = new File(tmpdir, "test.txt").lastModified(); | long ts1 = new File(tmpdir, "test.txt").lastModified(); | ||||
| Thread.sleep(2); | |||||
| Thread.sleep(3000); | |||||
| executeTarget("testNoPreserve"); | executeTarget("testNoPreserve"); | ||||
| assertTrue(ts1 < new File(tmpdir, "test.txt").lastModified()); | assertTrue(ts1 < new File(tmpdir, "test.txt").lastModified()); | ||||
| } | } | ||||
| @@ -115,7 +115,7 @@ public class ReplaceRegExpTest extends BuildFileTest { | |||||
| executeTarget("lastModifiedSetup"); | executeTarget("lastModifiedSetup"); | ||||
| String tmpdir = project.getProperty("tmpregexp"); | String tmpdir = project.getProperty("tmpregexp"); | ||||
| long ts1 = new File(tmpdir, "test.txt").lastModified(); | long ts1 = new File(tmpdir, "test.txt").lastModified(); | ||||
| Thread.sleep(2); | |||||
| Thread.sleep(3000); | |||||
| executeTarget("testPreserve"); | executeTarget("testPreserve"); | ||||
| assertTrue(ts1 == new File(tmpdir, "test.txt").lastModified()); | assertTrue(ts1 == new File(tmpdir, "test.txt").lastModified()); | ||||
| } | } | ||||