@Override public File createFile(File parentFile, String location) throws IOException { if ("hello.xml".equals(location)) { helloServiceSaved = true; } return super.createFile(parentFile, location); } };
protected void copySchemaFile(String file) throws IOException { File f = new File("../../web/app/src/main/webapp/schemas/" + file); FileUtils.copyFile(f, getResourceLoader().createFile("WEB-INF/schemas/" + file)); } }
/** Need to override since we are in the community folder */ protected void copySchemaFile(String file) throws IOException { File f = new File("../../web/app/src/main/webapp/schemas/" + file); FileUtils.copyFile(f, getResourceLoader().createFile("WEB-INF/schemas/" + file)); } }
private File getFile(final String tileLayerId, final boolean create) throws IOException { final String fileName = FilePathGenerator.filteredLayerName(tileLayerId) + ".xml"; final File base = resourceLoader.findOrCreateDirectory(baseDirectory); File file = resourceLoader.find(base, fileName); if (null == file && create) { return resourceLoader.createFile(base, fileName); } return file; }
DEFAULT_PROPERTY_PATH); if (url != null) { properties = loader.createFile(PROPERTYFILENAME); loader.copyFromClassPath( DEFAULT_PROPERTY_PATH,
this.certificateFile = loader.createFile(xmppServerEmbeddedCertFile.trim()); loader.copyFromClassPath( xmppServerEmbeddedCertFile.trim(), this.certificateFile /*,
this.certificateFile = loader.createFile(xmppServerEmbeddedCertFile.trim()); loader.copyFromClassPath( xmppServerEmbeddedCertFile.trim(), this.certificateFile /*,
legend.setFormat("image/png"); legend.setOnlineResource("legend.png"); File file = getResourceLoader().createFile("styles", "legend.png"); getResourceLoader().copyFromClassPath("../legend.png", file, getClass()); testData.addStyle(null, "custom", "point_test.sld", getClass(), catalog, legend); File wsFile = getResourceLoader() .createFile( "workspaces", defaultWorkspace.getName(), "styles", "legend.png"); getResourceLoader().copyFromClassPath("../legend.png", wsFile, getClass());
f = loader.createFile(path) ;