org.apache.tools.ant.taskdefs.optional.vss
Class MSVSS
java.lang.Object
|
+--org.apache.tools.ant.Task
|
+--org.apache.tools.ant.taskdefs.Exec
|
+--org.apache.tools.ant.taskdefs.optional.vss.MSVSS
- Direct Known Subclasses:
- MSVSSGET
- public abstract class MSVSS
- extends Exec
A base class for creating tasks for executing commands on Visual SourceSafe.
The class extends the 'exec' task as it operates by executing the ss.exe program
supplied with SourceSafe. By default the task expects ss.exe to be in the path,
you can override this be specifying the ssdir attribute.
This class provides set and get methods for 'login' and 'vsspath' attributes. It
also contains constants for the flags that can be passed to SS.
- Author:
- Craig Cottingham, Andrew Everitt
Fields inherited from class org.apache.tools.ant.taskdefs.Exec |
fos |
Constructor Summary |
MSVSS()
|
Method Summary |
java.lang.String |
getLoginCommand()
|
java.lang.String |
getSSCommand()
Builds and returns the command string to execute ss.exe |
java.lang.String |
getVsspath()
|
void |
setLogin(java.lang.String login)
Set the login to use when accessing vss.
|
void |
setSsdir(java.lang.String dir)
Set the directory where ss.exe is located |
void |
setVsspath(java.lang.String vssPath)
Set the path to the item in vss to operate on
Ant can't cope with a '$' sign in an attribute so we have to add it here.
|
Methods inherited from class org.apache.tools.ant.Task |
getDescription, getLocation, getOwningTarget, getProject, getTaskName, init, log, log, setDescription, setLocation, setOwningTarget, setTaskName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PROJECT_PREFIX
public static final java.lang.String PROJECT_PREFIX
COMMAND_GET
public static final java.lang.String COMMAND_GET
- The 'Get' command
COMMAND_CHECKOUT
public static final java.lang.String COMMAND_CHECKOUT
- The 'Checkout' command
COMMAND_LABEL
public static final java.lang.String COMMAND_LABEL
- The 'Label' command
COMMAND_HISTORY
public static final java.lang.String COMMAND_HISTORY
- The 'History' command
FLAG_LOGIN
public static final java.lang.String FLAG_LOGIN
FLAG_OVERRIDE_WORKING_DIR
public static final java.lang.String FLAG_OVERRIDE_WORKING_DIR
FLAG_AUTORESPONSE
public static final java.lang.String FLAG_AUTORESPONSE
FLAG_RECURSION
public static final java.lang.String FLAG_RECURSION
FLAG_VERSION
public static final java.lang.String FLAG_VERSION
FLAG_VERSION_DATE
public static final java.lang.String FLAG_VERSION_DATE
FLAG_VERSION_LABEL
public static final java.lang.String FLAG_VERSION_LABEL
FLAG_WRITABLE
public static final java.lang.String FLAG_WRITABLE
VALUE_NO
public static final java.lang.String VALUE_NO
VALUE_YES
public static final java.lang.String VALUE_YES
MSVSS
public MSVSS()
setSsdir
public final void setSsdir(java.lang.String dir)
- Set the directory where ss.exe is located
- Parameters:
dir
- the directory containing ss.exe
getSSCommand
public final java.lang.String getSSCommand()
- Builds and returns the command string to execute ss.exe
setLogin
public final void setLogin(java.lang.String login)
- Set the login to use when accessing vss.
Should be formatted as username,password
- Parameters:
login
- the login string to use
getLoginCommand
public java.lang.String getLoginCommand()
- Returns:
- the appropriate login command if the 'login' attribute was specified, otherwise an empty string
setVsspath
public final void setVsspath(java.lang.String vssPath)
- Set the path to the item in vss to operate on
Ant can't cope with a '$' sign in an attribute so we have to add it here.
Also we strip off any 'vss://' prefix which is an XMS special and should probably be removed!
- Parameters:
vssPath
-
getVsspath
public java.lang.String getVsspath()
- Returns:
- m_vssPath
Copyright © 2000 Apache Software Foundation. All Rights Reserved.