Search Results
OK to copy?
Examples 1 through 10 of
123 (0.0020 seconds)
Class:
task.Txt2Html
©,
Rating:
0% of 0,
C2
Class: org.apache.tools.ant.taskdefs.Copyfile ©, Rating: 0% of 0, C2
Class: org.apache.tools.ant.types.selectors.DifferentSelector ©, Rating: 0% of 0, C2
Class: org.apache.catalina.cluster.deploy.WarWatcher ©, Rating: 0% of 0, C1
Class: org.apache.catalina.cluster.deploy.WarWatcher ©, Rating: 0% of 0, C1
Class: org.apache.tools.ant.taskdefs.GUnzip ©, Rating: 0% of 0, C2
Class: org.apache.tools.ant.taskdefs.optional.ReplaceRegExpTest ©, Rating: 0% of 0, C1
Class: org.apache.tools.ant.taskdefs.optional.ReplaceRegExpTest ©, Rating: 0% of 0, C1
Class: org.apache.tools.ant.taskdefs.BUnzip2 ©, Rating: 0% of 0, C2
Class: org.apache.tools.ant.taskdefs.TouchTest ©, Rating: 0% of 0, C1
090 File from = new File( basedir, files[i] );
091 File to = new File( todir, files[i] + ".html" );
092 if( !to.exists() ||
093 (from.lastModified() > to.lastModified()) )
094 {
Class: org.apache.tools.ant.taskdefs.Copyfile ©, Rating: 0% of 0, C2
Class: org.apache.tools.ant.types.selectors.DifferentSelector ©, Rating: 0% of 0, C2
79 //same date if dest timestamp is within granularity of the srcfile
80 boolean sameDate;
81 sameDate = destfile.lastModified() >= srcfile.lastModified() - granularity
82 && destfile.lastModified() <= srcfile.lastModified() + granularity;
83
Class: org.apache.catalina.cluster.deploy.WarWatcher ©, Rating: 0% of 0, C1
155
156 public boolean modified() {
157 return war.exists() &&
158 war.lastModified() > lastChecked;
159 }
Class: org.apache.catalina.cluster.deploy.WarWatcher ©, Rating: 0% of 0, C1
150 public WarInfo(File war) {
151 this.war = war;
152 this.lastChecked = war.lastModified();
153 if ( !war.exists() ) lastState = -1;
154 }
Class: org.apache.tools.ant.taskdefs.GUnzip ©, Rating: 0% of 0, C2
43
44 protected void extract() {
45 if (source.lastModified() > dest.lastModified()) {
46 log("Expanding " + source.getAbsolutePath() + " to "
47 + dest.getAbsolutePath());
Class: org.apache.tools.ant.taskdefs.optional.ReplaceRegExpTest ©, Rating: 0% of 0, C1
081 long timeStampBefore = myFile.lastModified();
082 executeTarget("testDirectoryDateDoesNotChange");
083 long timeStampAfter = myFile.lastModified();
084 assertEquals("directory date should not change",
085 timeStampBefore, timeStampAfter);
Class: org.apache.tools.ant.taskdefs.optional.ReplaceRegExpTest ©, Rating: 0% of 0, C1
079 executeTarget("touchDirectory");
080 File myFile = new File(PROJECT_PATH + "/" + getProject().getProperty("tmpregexp"));
081 long timeStampBefore = myFile.lastModified();
082 executeTarget("testDirectoryDateDoesNotChange");
083 long timeStampAfter = myFile.lastModified();
Class: org.apache.tools.ant.taskdefs.BUnzip2 ©, Rating: 0% of 0, C2
046
047 protected void extract() {
048 if (source.lastModified() > dest.lastModified()) {
049 log("Expanding " + source.getAbsolutePath() + " to "
050 + dest.getAbsolutePath());
Class: org.apache.tools.ant.taskdefs.TouchTest ©, Rating: 0% of 0, C1
046 throw new BuildException("failed to touch file "+touchfile);
047 }
048 return file.lastModified();
049 }
050