org.apache.tools.ant.taskdefs.optional.vss
Class MSVSSCHECKIN
java.lang.Object
|
+--org.apache.tools.ant.ProjectComponent
|
+--org.apache.tools.ant.Task
|
+--org.apache.tools.ant.taskdefs.optional.vss.MSVSS
|
+--org.apache.tools.ant.taskdefs.optional.vss.MSVSSCHECKIN
- public class MSVSSCHECKIN
- extends MSVSS
Task to perform CheckIn commands to Microsoft Visual Source Safe.
- Author:
- Martin Poeschl
Fields inherited from class org.apache.tools.ant.taskdefs.optional.vss.MSVSS |
COMMAND_CHECKIN, COMMAND_CHECKOUT, COMMAND_GET, COMMAND_HISTORY, COMMAND_LABEL, FLAG_AUTORESPONSE_DEF, FLAG_AUTORESPONSE_NO, FLAG_AUTORESPONSE_YES, FLAG_LOGIN, FLAG_OVERRIDE_WORKING_DIR, FLAG_QUIET, FLAG_RECURSION, FLAG_VERSION, FLAG_VERSION_DATE, FLAG_VERSION_LABEL, FLAG_WRITABLE, PROJECT_PREFIX, VALUE_NO, VALUE_YES |
Methods inherited from class org.apache.tools.ant.Task |
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, handleErrorOutput, handleOutput, init, log, log, maybeConfigure, perform, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MSVSSCHECKIN
public MSVSSCHECKIN()
execute
public void execute()
throws BuildException
- Executes the task.
Builds a command line to execute ss and then calls Exec's run method
to execute the command line.
- Overrides:
execute
in class Task
- Following copied from class:
org.apache.tools.ant.Task
- Throws:
BuildException
- if someting goes wrong with the build
setLocalpath
public void setLocalpath(Path localPath)
- Set the local path.
getLocalpathCommand
public void getLocalpathCommand(Commandline cmd)
- Builds and returns the -GL flag command if required
The localpath is created if it didn't exist
setRecursive
public void setRecursive(boolean recursive)
- Set behaviour recursive or non-recursive
getRecursiveCommand
public void getRecursiveCommand(Commandline cmd)
- Returns:
- the 'recursive' command if the attribute was 'true', otherwise an empty string
setWritable
public final void setWritable(boolean argWritable)
- Set behaviour, used in get command to make files that are 'got' writable
getWritableCommand
public void getWritableCommand(Commandline cmd)
- Returns:
- the 'make writable' command if the attribute was 'true', otherwise an empty string
setAutoresponse
public void setAutoresponse(java.lang.String response)
getAutoresponse
public void getAutoresponse(Commandline cmd)
- Checks the value set for the autoResponse.
if it equals "Y" then we return -I-Y
if it equals "N" then we return -I-N
otherwise we return -I
setComment
public void setComment(java.lang.String comment)
- Set the comment to apply in SourceSafe
If this is null or empty, it will be replaced with "-" which
is what SourceSafe uses for an empty comment.
getComment
public java.lang.String getComment()
- Gets the comment to be applied.
- Returns:
- the comment to be applied.
Copyright © 1999-2001 Apache Software Foundation. All Rights Reserved.