Class SynergyWorkareaConsumer

  • All Implemented Interfaces:
    org.codehaus.plexus.util.cli.StreamConsumer

    public class SynergyWorkareaConsumer
    extends java.lang.Object
    implements org.codehaus.plexus.util.cli.StreamConsumer
    Parse output of

     ccm wa -show -p <project_spec>
     
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private ScmLogger logger  
      private java.io.File workarea  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void consumeLine​(java.lang.String line)
      We are expecting the following output:
      java.io.File getWorkAreaPath()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • workarea

        private java.io.File workarea
    • Constructor Detail

      • SynergyWorkareaConsumer

        public SynergyWorkareaConsumer​(ScmLogger logger)
    • Method Detail

      • consumeLine

        public void consumeLine​(java.lang.String line)
        We are expecting the following output:

                    Project Maintain Copies Relative Time Translate Modify Path
                    -------------------------------------------------------------------
                    BGZBFZH˜1 TRUE TRUE FALSE FALSE TRUE FALSE 'D:\cmsynergy\ccm_wa\LAPOSTE\BGZBFZH˜1'
         

        And we want to extract:

                    D:\cmsynergy\ccm_wa\LAPOSTE\BGZBFZH˜1
                    <pre>
        
         
        Specified by:
        consumeLine in interface org.codehaus.plexus.util.cli.StreamConsumer
      • getWorkAreaPath

        public java.io.File getWorkAreaPath()