hudson.plugins.cmvc.util
Class CommandLineUtil

java.lang.Object
  extended by hudson.plugins.cmvc.util.CommandLineUtil

public class CommandLineUtil
extends java.lang.Object

Provides cmvc commands to CmvcSCM.

Author:
fuechi

Constructor Summary
CommandLineUtil(CmvcSCM cmvcSCM)
           
 
Method Summary
 hudson.util.ArgumentListBuilder buildReportChangeViewCommand(CmvcChangeLogSet changeLogSet)
           
 hudson.util.ArgumentListBuilder buildReportChangeViewCommand(java.lang.String[] trackNames)
          Generates the command line for the Report command.
 hudson.util.ArgumentListBuilder buildReportTrackViewCommand(java.lang.String strNow, java.lang.String strLastBuild)
          Generates the command line for the Report command.
 java.lang.String convertToInClause(java.lang.String[] releaseList)
           
 java.lang.String convertToUnixQuotedParameter(java.lang.String[] trackList)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandLineUtil

public CommandLineUtil(CmvcSCM cmvcSCM)
Method Detail

buildReportTrackViewCommand

public hudson.util.ArgumentListBuilder buildReportTrackViewCommand(java.lang.String strNow,
                                                                   java.lang.String strLastBuild)
Generates the command line for the Report command. For example: 'Report -raw -view TrackView -where "1=1"'

Parameters:
strNow - String representing the current time
strLastBuild - String representing the last build execution time
Returns:
new command line object

buildReportChangeViewCommand

public hudson.util.ArgumentListBuilder buildReportChangeViewCommand(java.lang.String[] trackNames)
Generates the command line for the Report command. For example: 'Report -family family -raw -view ChangeView -where "defectName in () and releaseName in () order by defectName"'

Parameters:
trackNames -
Returns:
new command line object

buildReportChangeViewCommand

public hudson.util.ArgumentListBuilder buildReportChangeViewCommand(CmvcChangeLogSet changeLogSet)
Parameters:
changeLogSet -
Returns:

convertToInClause

public java.lang.String convertToInClause(java.lang.String[] releaseList)
Parameters:
releaseList -
Returns:

convertToUnixQuotedParameter

public java.lang.String convertToUnixQuotedParameter(java.lang.String[] trackList)


Copyright © 2009. All Rights Reserved.