Package org.codehaus.mojo.build.git

Examples of org.codehaus.mojo.build.git.GitBranchParseCommand


                  return DEFAULT_BRANCH_NAME;
              }
              SvnInfoItem info = (SvnInfoItem) scmResult.getInfoItems().get( 0 );
              scmUrl = info.getURL();
            } else if (repository.getProviderRepository() instanceof GitScmProviderRepository) {
              GitBranchParseCommand command = new GitBranchParseCommand();

              command.setLogger(getLogger());

              ScmResult execute = command.execute(repository.getProviderRepository(),
                  new ScmFileSet( scmDirectory ),
                  new CommandParameters());
              String output = execute.getCommandOutput();
              getLog().debug("Output: " + output);
              String[] split = StringUtils.split(output);
View Full Code Here

TOP

Related Classes of org.codehaus.mojo.build.git.GitBranchParseCommand

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.