Search Results
OK to copy?
Examples 1 through 10 of
513 (0.0060 seconds)
Class:
org.springframework.core.io.FileSystemResource
©,
Rating:
0% of 0,
C1
Class: org.apache.catalina.ant.ValidatorTask ©, Rating: 0% of 0, C2
Class: org.apache.tools.ant.taskdefs.MkdirTest ©, Rating: 0% of 0, C1
Class: org.springframework.web.multipart.cos.CosMultipartResolverTests ©, Rating: 0% of 0, C1
Class: org.apache.tools.ant.taskdefs.optional.junit.JUnitReportTest ©, Rating: 0% of 0, C1
Class: org.apache.catalina.startup.HomesUserDatabase ©, Rating: 0% of 0, C2
Class: org.apache.tools.ant.taskdefs.email.UUMailer ©, Rating: 0% of 0, C1
Class: org.springframework.core.io.AbstractResource ©, Rating: 0% of 1, C1
Class: org.apache.tools.ant.taskdefs.AbstractCvsTaskTest ©, Rating: 0% of 0, C1
Class: org.apache.tools.ant.taskdefs.AbstractCvsTaskTest ©, Rating: 100% of 1, C1
Class: org.apache.catalina.ant.ValidatorTask ©, Rating: 0% of 0, C2
081
082 File file = new File(path, Constants.ApplicationWebXml);
083 if ((!file.exists()) || (!file.canRead())) {
084 throw new BuildException("Cannot find web.xml");
085 }
Class: org.apache.tools.ant.taskdefs.MkdirTest ©, Rating: 0% of 0, C1
42 executeTarget("test3");
43 java.io.File f = new java.io.File(getProjectDir(), "testdir.tmp");
44 if (!f.exists() || !f.isDirectory()) {
45 fail("mkdir failed");
46 } else {
Class: org.springframework.web.multipart.cos.CosMultipartResolverTests ©, Rating: 0% of 0, C1
83 CosMultipartResolver resolver = new CosMultipartResolver(sc);
84 resolver.setUploadTempDir(new FileSystemResource("bogusTmpDir"));
85 assertTrue(new File("bogusTmpDir").exists());
86 new File("bogusTmpDir").delete();
87 }
Class: org.apache.tools.ant.taskdefs.optional.junit.JUnitReportTest ©, Rating: 0% of 0, C1
47 public void testNoFileJUnitNoFrames() {
48 executeTarget("reports1");
49 if (new File("src/etc/testcases/taskdefs/optional/junitreport/test/html/junit-noframes.html").exists())
50 {
51 fail("No file junit-noframes.html expected");
Class: org.apache.catalina.startup.HomesUserDatabase ©, Rating: 0% of 0, C2
126 String homeBase = userConfig.getHomeBase();
127 File homeBaseDir = new File(homeBase);
128 if (!homeBaseDir.exists() || !homeBaseDir.isDirectory())
129 return;
130 String homeBaseFiles[] = homeBaseDir.list();
Class: org.apache.tools.ant.taskdefs.email.UUMailer ©, Rating: 0% of 0, C1
33 protected void attach(File file, PrintStream out)
34 throws IOException {
35 if (!file.exists() || !file.canRead()) {
36 throw new BuildException("File \"" + file.getName()
37 + "\" does not exist or is not "
Class: org.springframework.core.io.AbstractResource ©, Rating: 0% of 1, C1
044 // try file existence
045 try {
046 return getFile().exists();
047 }
048 catch (IOException ex) {
Class: org.apache.tools.ant.taskdefs.AbstractCvsTaskTest ©, Rating: 0% of 0, C1
57 assertTrue("starting empty", !f.exists());
58 expectLogContaining("tag-attribute", "ANT_141 (revision: 1.175.2.13)");
59 assertTrue("now it is there", f.exists());
60 }
61 }
Class: org.apache.tools.ant.taskdefs.AbstractCvsTaskTest ©, Rating: 100% of 1, C1
55 public void testTagAttribute() {
56 File f = getProject().resolveFile("tmpdir/ant/build.xml");
57 assertTrue("starting empty", !f.exists());
58 expectLogContaining("tag-attribute", "ANT_141 (revision: 1.175.2.13)");
59 assertTrue("now it is there", f.exists());