org.jenkinsci.plugins.darcs.cmd
Class DarcsChangesBuilder

java.lang.Object
  extended by org.jenkinsci.plugins.darcs.cmd.DarcsChangesBuilder
All Implemented Interfaces:
DarcsCommandCreator

public class DarcsChangesBuilder
extends Object
implements DarcsCommandCreator

Builder for `darcs changes` command. Examples:

 `darcs changes --repo=REPDIR --xml-output [--summary] [--last=N]`
 `darcs changes --repo=REPDIR --count`
 

Author:
Sven Strittmatter

Method Summary
 DarcsChangesBuilder count()
          Switch patch count on.
 DarcsCommand create()
          Create the parameterized command object.
 DarcsChangesBuilder last(int amount)
          How many last patches to show changes for.
 DarcsChangesBuilder repoDir(String directory)
          Directory of repository to pull in.
 DarcsChangesBuilder summary()
          Switch summary output on.
 DarcsChangesBuilder xmlOutput()
          Switch XML output on.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

repoDir

public DarcsChangesBuilder repoDir(String directory)
Directory of repository to pull in.

Parameters:
directory - path to repository
Returns:
the builder itself CHECKSTYLE:OFF
Throws:
IllegalArgumentException - if location is null or empty CHECKSTYLE:ON

xmlOutput

public DarcsChangesBuilder xmlOutput()
Switch XML output on.

Returns:
the builder itself

summary

public DarcsChangesBuilder summary()
Switch summary output on.

Returns:
the builder itself

count

public DarcsChangesBuilder count()
Switch patch count on. If count is on all other options except repoDir will be ignored.

Returns:
the builder itself

last

public DarcsChangesBuilder last(int amount)
How many last patches to show changes for.

Parameters:
amount - amount of last patches
Returns:
the builder itself

create

public DarcsCommand create()
Description copied from interface: DarcsCommandCreator
Create the parameterized command object.

Specified by:
create in interface DarcsCommandCreator
Returns:
creates always new instance


Copyright © 2004-2013 weltraumschaf.de. All Rights Reserved.