class SVN implements SourceControl {

    static void parsePropgetReader(final BufferedReader reader, final Map<String, List<String[]>> directories)
            throws IOException {

        String line;
        String currentDir = null;

        while ((line = reader.readLine()) != null) {
            String[] split = line.split(" - ");
            // the directory containing the externals
            if (split.length > 1) {
                currentDir = split[0];
                directories.put(currentDir, new ArrayList<String[]>());
                line = split[1];
            }
            split = line.split("\\s+"); // CC-949: "\\s" fails if multiple spaces exist as separator in external path
            if (!split[0].equals("")) {
                final List<String[]> externals = directories.get(currentDir);
                // split contains: [externalPath, externalSvnURL]
                externals.add(split);
            }
        }
    }

}