Class StarteamChangeLogConsumer

java.lang.Object
org.apache.maven.scm.util.AbstractConsumer
org.apache.maven.scm.provider.starteam.command.changelog.StarteamChangeLogConsumer
All Implemented Interfaces:
org.codehaus.plexus.util.cli.StreamConsumer

public class StarteamChangeLogConsumer extends AbstractConsumer
  • Field Details

  • Constructor Details

    • StarteamChangeLogConsumer

      public StarteamChangeLogConsumer(File workingDirectory, ScmLogger logger, Date startDate, Date endDate, String userDateFormat)
  • Method Details

    • getModifications

      public List<ChangeSet> getModifications()
    • consumeLine

      public void consumeLine(String line)
    • addEntry

      private void addEntry(ChangeSet entry, ChangeFile file)
      Add a change log entry to the list (if it's not already there) with the given file.
      Parameters:
      entry - a ChangeSet to be added to the list if another with the same key doesn't exist already. If the entry's author is null, the entry wont be added
      file - a ChangeFile to be added to the entry
    • processDirectory

      private void processDirectory(String line, int pos)
    • processGetFile

      private void processGetFile(String line)
      Process the current input line in the Get File state.
      Parameters:
      line - a line of text from the Starteam log output
    • processGetRevision

      private void processGetRevision(String line)
      Process the current input line in the Get Revision state.
      Parameters:
      line - a line of text from the Starteam log output
    • processGetAuthor

      private void processGetAuthor(String line)
      Process the current input line in the Get Author/Date state.
      Parameters:
      line - a line of text from the Starteam log output
    • processGetComment

      private void processGetComment(String line)
      Process the current input line in the Get Comment state.
      Parameters:
      line - a line of text from the Starteam log output
    • getCurrentFile

      private ChangeFile getCurrentFile()
      Getter for property currentFile.
      Returns:
      Value of property currentFile.
    • setCurrentFile

      private void setCurrentFile(ChangeFile currentFile)
      Setter for property currentFile.
      Parameters:
      currentFile - New value of property currentFile.
    • getCurrentChange

      private ChangeSet getCurrentChange()
      Getter for property currentChange.
      Returns:
      Value of property currentChange.
    • setCurrentChange

      private void setCurrentChange(ChangeSet currentChange)
      Setter for property currentChange.
      Parameters:
      currentChange - New value of property currentChange.
    • getStatus

      private int getStatus()
      Getter for property status.
      Returns:
      Value of property status.
    • setStatus

      private void setStatus(int status)
      Setter for property status.
      Parameters:
      status - New value of property status.