Search Results
OK to copy?
Examples 1 through 10 of
41 (0.0010 seconds)
Class:
org.apache.tools.ant.types.selectors.DifferentSelector
©,
Rating:
100% of 1,
C2
Class: org.springframework.web.multipart.cos.CosMultipartHttpServletRequest ©, Rating: 0% of 1, C1
Class: org.apache.tools.ant.taskdefs.optional.i18n.TranslateTest ©, Rating: 0% of 0, C2
Class: org.apache.tools.ant.taskdefs.optional.i18n.TranslateTest ©, Rating: 0% of 0, C2
Class: org.springframework.web.multipart.cos.CosMultipartResolver ©, Rating: 0% of 0, C2
Class: org.apache.catalina.cluster.deploy.FileMessageFactory ©, Rating: 0% of 0, C1
Class: org.apache.axis.attachments.MimeUtils ©, Rating: 0% of 0, C2
Class: org.apache.tools.ant.taskdefs.CopyTest ©, Rating: 0% of 0, C2
Class: org.apache.tools.ant.taskdefs.CopyTest ©, Rating: 0% of 0, C2
Class: org.apache.tools.ant.taskdefs.CopyTest ©, Rating: 0% of 0, C2
71 }
72
73 if (srcfile.length() != destfile.length()) {
74 // different size =>different files
75 return true;
Class: org.springframework.web.multipart.cos.CosMultipartHttpServletRequest ©, Rating: 0% of 1, C1
119 this.name = name;
120 this.file = multipartRequest.getFile(this.name);
121 this.size = (file != null ? file.length() : 0);
122 }
123
Class: org.apache.tools.ant.taskdefs.optional.i18n.TranslateTest ©, Rating: 0% of 0, C2
62
63 if (file1.length() != file2.length()) {
64 System.out.println("File size mismatch:" + name1 + "(" + file1.length() + "), " +
65 name2 + "(" + file2.length() + ")");
66 return false;
Class: org.apache.tools.ant.taskdefs.optional.i18n.TranslateTest ©, Rating: 0% of 0, C2
61 }
62
63 if (file1.length() != file2.length()) {
64 System.out.println("File size mismatch:" + name1 + "(" + file1.length() + "), " +
65 name2 + "(" + file2.length() + ")");
Class: org.springframework.web.multipart.cos.CosMultipartResolver ©, Rating: 0% of 0, C2
163 String fileName = (String) fileNames.nextElement();
164 File file = multipartRequest.getFile(fileName);
165 logger.debug("Found multipart file '" + fileName + "' of size " + (file != null ? file.length() : 0) +
166 " bytes with original filename [" + multipartRequest.getOriginalFileName(fileName) +
167 "], " + (file != null ? "stored at [" + file.getAbsolutePath() + "]" : "empty"));
Class: org.apache.catalina.cluster.deploy.FileMessageFactory ©, Rating: 0% of 0, C1
107 out = new FileOutputStream(f);
108 } else {
109 size = file.length();
110 totalNrOfMessages = (size / READ_SIZE) + 1;
111 in = new FileInputStream(f);
Class: org.apache.axis.attachments.MimeUtils ©, Rating: 0% of 0, C2
Class: org.apache.tools.ant.taskdefs.CopyTest ©, Rating: 0% of 0, C2
077 fail("could not force overwrite an existing, newer file");
078 }
079 if(file3b.length()==0) {
080 fail("unexpectedly overwrote an existing, newer file");
081 }
Class: org.apache.tools.ant.taskdefs.CopyTest ©, Rating: 0% of 0, C2
074 fail("could not overwrite an existing, older file");
075 }
076 if(file3c.length()!=0) {
077 fail("could not force overwrite an existing, newer file");
078 }
Class: org.apache.tools.ant.taskdefs.CopyTest ©, Rating: 0% of 0, C2
071
072 //file length checks rely on touch generating a zero byte file
073 if(file3.length()==0) {
074 fail("could not overwrite an existing, older file");
075 }