/** * Process a line while in "GET_FILE" state. * * @param line the line */ private void processFile(final String line) { if (line.startsWith("Working file:")) { m_file = line.substring(14, line.length()); File repo = new File(new File(owner.getDir(), m_file).getParentFile(), "CVS/Repository"); try { String module = FileUtils.readFileToString(repo, null); // not sure what encoding CVS uses. String simpleName = m_file.substring(m_file.lastIndexOf('/') + 1); m_fullName = '/' + module.trim() + '/' + simpleName; } catch (IOException e) { // failed to read LOGGER.log(Level.WARNING, "Failed to read CVS/Repository at " + repo, e); m_fullName = null; } m_status = GET_SYMBOLIC_NAMES; } }