/** * load the data of a dump into a repository, * * @param path the path to the repository * @param dataInput the data input source * @param messageOutput the target for processing messages * @param ignoreUUID ignore any UUID found in the input stream * @param forceUUID set the repository UUID to any found in the * stream * @param relativePath the directory in the repository, where the data * in put optional. * @throws ClientException throw in case of problem */ public void load(String path, InputInterface dataInput, final OutputInterface messageOutput, boolean ignoreUUID, boolean forceUUID, String relativePath) throws ClientException { load(path, dataInput, messageOutput, ignoreUUID, forceUUID, false, false, relativePath); }
/** * load the data of a dump into a repository, * * @param path the path to the repository * @param dataInput the data input source * @param messageOutput the target for processing messages * @param ignoreUUID ignore any UUID found in the input stream * @param forceUUID set the repository UUID to any found in the * stream * @param relativePath the directory in the repository, where the data * in put optional. * @throws ClientException throw in case of problem */ public void load(String path, InputInterface dataInput, final OutputInterface messageOutput, boolean ignoreUUID, boolean forceUUID, String relativePath) throws ClientException { load(path, dataInput, messageOutput, ignoreUUID, forceUUID, false, false, relativePath); }
/** * load the data of a dump into a repository, * * @param path the path to the repository * @param dataInput the data input source * @param messageOutput the target for processing messages * @param ignoreUUID ignore any UUID found in the input stream * @param forceUUID set the repository UUID to any found in the * stream * @param relativePath the directory in the repository, where the data * in put optional. * @throws ClientException throw in case of problem */ public void load(String path, InputInterface dataInput, final OutputInterface messageOutput, boolean ignoreUUID, boolean forceUUID, String relativePath) throws ClientException { load(path, dataInput, messageOutput, ignoreUUID, forceUUID, false, false, relativePath); }
/** * load the data of a dump into a repository, * @param path the path to the repository * @param dataInput the data input source * @param messageOutput the target for processing messages * @param ignoreUUID ignore any UUID found in the input stream * @param forceUUID set the repository UUID to any found in the * stream * @param relativePath the directory in the repository, where the data * in put optional. * @throws ClientException throw in case of problem */ public void load(String path, InputInterface dataInput, OutputInterface messageOutput, boolean ignoreUUID, boolean forceUUID, String relativePath) throws ClientException { load(path, dataInput, messageOutput, ignoreUUID, forceUUID, false, false, relativePath); }
/** * load the data of a dump into a repository, * @param path the path to the repository * @param dataInput the data input source * @param messageOutput the target for processing messages * @param ignoreUUID ignore any UUID found in the input stream * @param forceUUID set the repository UUID to any found in the * stream * @param relativePath the directory in the repository, where the data * in put optional. * @throws ClientException throw in case of problem */ public void load(String path, InputInterface dataInput, OutputInterface messageOutput, boolean ignoreUUID, boolean forceUUID, String relativePath) throws ClientException { load(path, dataInput, messageOutput, ignoreUUID, forceUUID, false, false, relativePath); }
/** * Create the repository for the beginning of the test. * Assumes that {@link #testName} has been set. * * @return the repository directory * @throws SubversionException If there is a problem * creating or loading the repository. * @throws IOException If there is a problem finding the * dump file. */ protected File createInitialRepository() throws SubversionException, IOException { // build a clean repository directory File repos = new File(repositories, this.testName); removeDirOrFile(repos); // create and load the repository from the default repository dump admin.create(repos.getAbsolutePath(), true, false, conf.getAbsolutePath(), fsType); admin.load(repos.getAbsolutePath(), new FileInputer(greekDump), new IgnoreOutputer(), false, false, null); return repos; }
/** * Create the repository for the beginning of the test. * Assumes that {@link #testName} has been set. * * @return the repository directory * @throws SubversionException If there is a problem * creating or loading the repository. * @throws IOException If there is a problem finding the * dump file. */ protected File createInitialRepository(boolean loadGreek) throws SubversionException, IOException { // build a clean repository directory File repos = new File(repositories, this.testName); removeDirOrFile(repos); // create and load the repository from the default repository dump admin.create(repos.getAbsolutePath(), true, false, conf.getAbsolutePath(), fsType); if (loadGreek) { admin.load(repos.getAbsolutePath(), new FileInputer(greekDump), new IgnoreOutputer(), false, false, null); } return repos; }
InputInterface input = new FileInputer(dump); OutputInterface loadLog = new IgnoreOutputer(); admin.load(thisTest.getRepositoryPath(), input, loadLog, true, true, null);