Uploaded image for project: 'Maven Shared Components'
  1. Maven Shared Components
  2. MSHARED-1041

Refactor: remove duplicate code, use addArg internally

    XMLWordPrintableJSON

Details

    • Task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • maven-invoker
    • None

    Description

      We can replace methods like:

      public InvocationRequest setDebug( boolean debug )
      {
            this.debug = debug;
            return this;
      }
      

      by

      public InvocationRequest setDebug( boolean debug )
      {
            if ( debug )
            {
              addArg( "-X" );
            }
            return this;
      } 
      

      and simplify MavenCommandLineBuilder

      Attachments

        Issue Links

          Activity

            People

              sjaranowski Slawomir Jaranowski
              sjaranowski Slawomir Jaranowski
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: