com.googlecode.svntask.command
Class Switch

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by com.googlecode.svntask.Command
          extended by com.googlecode.svntask.command.Switch
All Implemented Interfaces:
java.lang.Cloneable

public class Switch
extends Command

Used for executing svn switch. Defaults to recursive == true. Requires an svn URL and optionally a revision. HEAD is the default peg/revision if a revision is not specified. depth is INFINITY. allowUnversionedObstructions is true.

Author:
Raman Gupta, Jon Stevens

Field Summary
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
 
Constructor Summary
Switch()
           
 
Method Summary
 void execute()
           
 void setAllowUnversionedObstructions(boolean allowUnversionedObstructions)
           
 void setDepth(java.lang.String depth)
           
 void setPath(java.lang.String path)
           
 void setPegRevision(long pegRevision)
           
 void setRecursive(boolean recursive)
           
 void setRevision(long revision)
           
 void setSvnUrl(java.lang.String svnUrl)
           
protected  void validateAttributes()
           
 
Methods inherited from class com.googlecode.svntask.Command
executeCommand, getTask, setTask
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Switch

public Switch()
Method Detail

execute

public void execute()
             throws java.lang.Exception
Specified by:
execute in class Command
Throws:
java.lang.Exception

validateAttributes

protected void validateAttributes()
                           throws java.lang.Exception
Specified by:
validateAttributes in class Command
Throws:
java.lang.Exception

setPath

public void setPath(java.lang.String path)

setSvnUrl

public void setSvnUrl(java.lang.String svnUrl)
               throws org.tmatesoft.svn.core.SVNException
Throws:
org.tmatesoft.svn.core.SVNException

setPegRevision

public void setPegRevision(long pegRevision)

setRevision

public void setRevision(long revision)

setDepth

public void setDepth(java.lang.String depth)

setAllowUnversionedObstructions

public void setAllowUnversionedObstructions(boolean allowUnversionedObstructions)

setRecursive

public void setRecursive(boolean recursive)


Copyright © 2011 Jon Scott Stevens. All Rights Reserved. Build version: 1.0.8