protected void interpolateLdapXml(File sourceFile, File outputFile) throws IOException { try (FileInputStream fis = new FileInputStream(sourceFile)) { interpolateLdapXml(fis, outputFile); } }
/** Interpolates the ldap.xml file and copies it to the outputfile. */ protected void interpolateLdapXml(String resource, File outputFile) throws IOException { try (InputStream in = getClass().getResourceAsStream(resource)) { interpolateLdapXml(in, outputFile); } }