org.jenkinsci.plugins.darcs.cmd
Class DarcsGetBuilder

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

public class DarcsGetBuilder
extends DarcsBaseCommandBuilder
implements DarcsCommandCreator

Builder for `darcs get` command. Example: `darcs get FROM TO`

Author:
Sven Strittmatter

Field Summary
private static String COMMAND
          Darcs subcommand.
private  String from
          From where to get.
private  String to
          To where to get.
 
Constructor Summary
DarcsGetBuilder(String darcsExe)
          Initializes the DarcsBaseCommandBuilder.command with "get".
 
Method Summary
 DarcsCommand create()
          Create the parameterized command object.
 DarcsGetBuilder from(String location)
          From where to get the repository.
 DarcsGetBuilder to(String location)
          To where the repository will be checked out.
 
Methods inherited from class org.jenkinsci.plugins.darcs.cmd.DarcsBaseCommandBuilder
createArgumentList, getDarcsExe
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMMAND

private static final String COMMAND
Darcs subcommand.

See Also:
Constant Field Values

from

private String from
From where to get.


to

private String to
To where to get.

Constructor Detail

DarcsGetBuilder

DarcsGetBuilder(String darcsExe)
Initializes the DarcsBaseCommandBuilder.command with "get".

Parameters:
darcsExe - name of Darcs executable, e.g. "darcs" or "/usr/local/bin/darcs"
Method Detail

from

public DarcsGetBuilder from(String location)
From where to get the repository.

Parameters:
location - file or URI
Returns:
the builder itself CHECKSTYLE:OFF
Throws:
IllegalArgumentException - if location is null or empty CHECKSTYLE:ON

to

public DarcsGetBuilder to(String location)
To where the repository will be checked out.

Parameters:
location - file path
Returns:
the builder itself CHECKSTYLE:OFF
Throws:
IllegalArgumentException - if location is null CHECKSTYLE:ON

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.