Search Results
OK to copy?
Examples 1 through 10 of
1099 (0.128 seconds)
Class:
org.springframework.web.context.support.WebApplicationObjectSupportTests
©,
Rating:
0% of 0,
C1
Class: org.apache.tools.tar.TarEntryTest ©, Rating: 0% of 0, C1
Class: org.springframework.core.io.UrlResource ©, Rating: 100% of 2, C1
Class: org.apache.tools.ant.util.JAXPUtilsTest ©, Rating: 100% of 1, C1
Class: org.apache.tools.ant.util.JAXPUtilsTest ©, Rating: 0% of 0, C1
Class: org.springframework.core.io.FileSystemResource ©, Rating: 0% of 0, C1
Class: org.apache.tools.ant.util.FlatFileNameMapper ©, Rating: 0% of 0, C1
Class: org.springframework.context.support.ResourceEntityResolver ©, Rating: 0% of 0, C2
Class: org.apache.catalina.ant.ValidatorTask ©, Rating: 0% of 0, C2
Class: org.apache.jk.config.GeneratorJk1 ©, Rating: 0% of 0, C1
34 StaticWebApplicationContext wac = new StaticWebApplicationContext();
35 wac.setServletContext(new MockServletContext());
36 File tempDir = new File("");
37 wac.getServletContext().setAttribute(WebUtils.TEMP_DIR_CONTEXT_ATTRIBUTE, tempDir);
38 wac.refresh();
Class: org.apache.tools.tar.TarEntryTest ©, Rating: 0% of 0, C1
Class: org.springframework.core.io.UrlResource ©, Rating: 100% of 2, C1
Class: org.apache.tools.ant.util.JAXPUtilsTest ©, Rating: 100% of 1, C1
34 file = new File("d:\\jdk");
35 } else {
36 file = new File("/user/local/bin");
37 }
38 String systemid = JAXPUtils.getSystemId(file);
Class: org.apache.tools.ant.util.JAXPUtilsTest ©, Rating: 0% of 0, C1
32 File file = null;
33 if ( File.separatorChar == '\\' ){
34 file = new File("d:\\jdk");
35 } else {
36 file = new File("/user/local/bin");
Class: org.springframework.core.io.FileSystemResource ©, Rating: 0% of 0, C1
056 public FileSystemResource(String path) {
057 Assert.notNull(path, "path is required");
058 this.file = new File(path);
059 this.path = path;
060 }
Class: org.apache.tools.ant.util.FlatFileNameMapper ©, Rating: 0% of 0, C1
45 */
46 public String[] mapFileName(String sourceFileName) {
47 return new String[] {new java.io.File(sourceFileName).getName()};
48 }
49 }
Class: org.springframework.context.support.ResourceEntityResolver ©, Rating: 0% of 0, C2
63 String decodedSystemId = URLDecoder.decode(systemId);
64 String givenUrl = new URL(decodedSystemId).toString();
65 String systemRootUrl = new File("").toURL().toString();
66 // try relative to resource base if currently in system root
67 if (givenUrl.startsWith(systemRootUrl)) {
Class: org.apache.catalina.ant.ValidatorTask ©, Rating: 0% of 0, C2
080 }
081
082 File file = new File(path, Constants.ApplicationWebXml);
083 if ((!file.exists()) || (!file.canRead())) {
084 throw new BuildException("Cannot find web.xml");
Class: org.apache.jk.config.GeneratorJk1 ©, Rating: 0% of 0, C1
066 public void generateStart( ) throws IOException {
067 File base=wxml.getJkDir();
068 File outF=new File(base, "jk.conf");
069 out=new PrintWriter( new FileWriter( outF ));
070