com.googlecode.svntask.command
Class Log

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

public class Log
extends Command

Used for executing svn log. Output is similar to command line client except that it doesn't (yet) include the number of lines that have changed in the revision and the date format is different. Includes these optional params: url: use a svn url rather than a path to a working copy startRevision: revision number or "HEAD" or "BASE" (defaults to "HEAD") endRevision: revision number or "HEAD" or "BASE" (defaults to "BASE") limit: max number of log entries to get, 0 for all (defaults to 0) stopOnCopy: do we stop on copy? (defaults to false) discoverChangedPaths: do we report of all changed paths for every revision being processed? (defaults to false)

Author:
rayvanderborght

Field Summary
static java.lang.String SVN_LOG
           
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
 
Constructor Summary
Log()
           
 
Method Summary
 void execute()
           
 void setDiscoverChangedPaths(boolean discoverChangedPaths)
          set to true to report of all changed paths for every revision being processed
 void setEndRevision(java.lang.String endRevision)
          the ending revision
 void setIncludeMergedRevisions(boolean includeMergedRevisions)
          if true logs will include changes merged in from elsewhere
 void setLimit(long limit)
          the max number of log messages to return must be positive.
 void setLogProperty(java.lang.String logProperty)
          the log output goes here
 void setPath(java.lang.String path)
          the path to the file
 void setStartRevision(java.lang.String startRevision)
          the starting revision
 void setStopOnCopy(boolean stopOnCopy)
          should svn logging stop on copy
 void setUrl(java.lang.String url)
          the svn url to use (as opposed to the path of a working copy)
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
 

Field Detail

SVN_LOG

public static final java.lang.String SVN_LOG
See Also:
Constant Field Values
Constructor Detail

Log

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

setUrl

public void setUrl(java.lang.String url)
the svn url to use (as opposed to the path of a working copy)


setPath

public void setPath(java.lang.String path)
the path to the file


setStartRevision

public void setStartRevision(java.lang.String startRevision)
the starting revision


setEndRevision

public void setEndRevision(java.lang.String endRevision)
the ending revision


setLimit

public void setLimit(long limit)
the max number of log messages to return must be positive. use 0 for no limit


setStopOnCopy

public void setStopOnCopy(boolean stopOnCopy)
should svn logging stop on copy


setDiscoverChangedPaths

public void setDiscoverChangedPaths(boolean discoverChangedPaths)
set to true to report of all changed paths for every revision being processed


setIncludeMergedRevisions

public void setIncludeMergedRevisions(boolean includeMergedRevisions)
if true logs will include changes merged in from elsewhere


setLogProperty

public void setLogProperty(java.lang.String logProperty)
the log output goes here



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