Search Results
OK to copy?
Examples 1 through 10 of
23 (0.0010 seconds)
Class:
org.springframework.core.io.FileSystemResource
©,
Rating:
0% of 0,
C2
Class: org.apache.batik.apps.rasterizer.SVGConverterFileSource ©, Rating: 0% of 0, C1
Class: org.apache.tools.ant.taskdefs.Copyfile ©, Rating: 0% of 0, C2
Class: org.apache.batik.apps.svgbrowser.WindowsAltFileSystemView ©, Rating: 0% of 0, C1
Class: org.apache.catalina.cluster.deploy.WarWatcher ©, Rating: 0% of 0, C1
Class: org.apache.tools.ant.types.ZipFileSetTest ©, Rating: 0% of 0, C1
Class: org.apache.tools.ant.taskdefs.Copydir ©, Rating: 0% of 0, C2
Class: org.apache.tools.ant.taskdefs.Exec ©, Rating: 0% of 0, C3
Class: org.apache.tools.ant.taskdefs.optional.Native2Ascii ©, Rating: 0% of 0, C2
Class: org.apache.tools.ant.taskdefs.optional.Native2Ascii ©, Rating: 0% of 0, C3
090
091 public boolean equals(Object obj) {
092 return (obj == this ||
093 (obj instanceof FileSystemResource && this.file.equals(((FileSystemResource) obj).file)));
094 }
Class: org.apache.batik.apps.rasterizer.SVGConverterFileSource ©, Rating: 0% of 0, C1
Class: org.apache.tools.ant.taskdefs.Copyfile ©, Rating: 0% of 0, C2
Class: org.apache.batik.apps.svgbrowser.WindowsAltFileSystemView ©, Rating: 0% of 0, C1
Class: org.apache.catalina.cluster.deploy.WarWatcher ©, Rating: 0% of 0, C1
202 if ( other instanceof WarInfo ) {
203 WarInfo wo = (WarInfo)other;
204 return wo.getWar().equals(getWar());
205 } else {
206 return false;
Class: org.apache.tools.ant.types.ZipFileSetTest ©, Rating: 0% of 0, C1
109 ZipFileSet zid=(ZipFileSet)getInstance();
110 zid.setRefid(new Reference("test"));
111 assertTrue("src attribute copied by copy constructor",zid.getSrc(getProject()).equals(f.getSrc(getProject())));
112 assertTrue("prefix attribute copied by copy constructor",f.getPrefix(getProject()).equals(zid.getPrefix(getProject())));
113 assertTrue("file mode attribute copied by copy constructor",f.getFileMode(getProject())==zid.getFileMode(getProject()));
Class: org.apache.tools.ant.taskdefs.Copydir ©, Rating: 0% of 0, C2
092 }
093
094 if (srcDir.equals(destDir)) {
095 log("Warning: src == dest", Project.MSG_WARN);
096 }
Class: org.apache.tools.ant.taskdefs.Exec ©, Rating: 0% of 0, C3
080
081 if (myos.toLowerCase().indexOf("windows") >= 0) {
082 if (!dir.equals(getProject().resolveFile("."))) {
083 if (myos.toLowerCase().indexOf("nt") >= 0) {
084 command = "cmd /c cd " + dir + " && " + command;
Class: org.apache.tools.ant.taskdefs.optional.Native2Ascii ©, Rating: 0% of 0, C2
196 cmd.createArgument().setFile(destFile);
197 // Make sure we're not about to clobber something
198 if (srcFile.equals(destFile)) {
199 throw new BuildException("file " + srcFile
200 + " would overwrite its self");
Class: org.apache.tools.ant.taskdefs.optional.Native2Ascii ©, Rating: 0% of 0, C3
134 // to be set, so we don't stomp every file. One could still
135 // include a file with the same extension, but ....
136 if (srcDir.equals(destDir) && extension == null && mapper == null) {
137 throw new BuildException("The ext attribute or a mapper must be set if"
138 + " src and dest dirs are the same.");