com.googlecode.svntask.command
Class Commit

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

public class Commit
extends Command

Implements the "commit" command. Requires a "path" String argument indicating the path to commit. Has optional boolean argument "keepLocks", "force". Also has an optional String argument "commitMessage" to specify a commit message. Example: <svn><commit path="." commitMessage="changed stuff" /></svn>

Author:
darren (darren@bizo.com), Jon Stevens

Field Summary
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
 
Constructor Summary
Commit()
           
 
Method Summary
 void execute()
           
 void setCommitMessage(java.lang.String commitMessage)
           
 void setDepth(java.lang.String depth)
           
 void setForce(boolean force)
           
 void setKeepLocks(boolean keepLocks)
           
 void setPath(java.lang.String path)
           
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

Commit

public Commit()
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)

setKeepLocks

public void setKeepLocks(boolean keepLocks)

setCommitMessage

public void setCommitMessage(java.lang.String commitMessage)

setForce

public void setForce(boolean force)

setDepth

public void setDepth(java.lang.String depth)


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