You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by "Everitt, Andrew" <An...@gbr.xerox.com> on 2000/07/17 09:57:07 UTC

[Patch] MSVSS.java

Allow the caller to set the path to ss.exe as an attribute to the task. See
also patch to MSVSSGET.java.

Thanks,
Andi.


cvs diff MSVSS.java (in directory
D:\OPENSOURCE\APACHE\JAKARTA\jakarta-ant\src\main\org\apache\too
ls\ant\taskd
efs\optional\vss\)
Index: MSVSS.java
===================================================================
RCS file:
/home/cvspublic/jakarta-ant/src/main/org/apache/tools/ant/taskde
fs/optional/
vss/MSVSS.java,v
retrieving revision 1.1
diff -r1.1 MSVSS.java
66,67c66,67
<  * supplied with SourceSafe. You will need to have ss.exe in 
your PATH to
use this
<  * task.
---
>  * supplied with SourceSafe. By default the task expects 
ss.exe to be in
the path,
>  * you can override this be specifying the ssdir attribute.
78a79
>     private String m_SSDir = "";
82a84,105
>      * Set the directory where ss.exe is located
>      *
>      * @param dir the directory containing ss.exe
>      */
>     public final void setssdir(String dir) {
>         m_SSDir = project.translatePath(dir);
>     }
>
>     /**
>      * Builds and returns the command string to execute ss.exe
>      */
>     public final String getSSCommand() {
>         String toReturn = m_SSDir;
>         if ( !toReturn.equals("") && !toReturn.endsWith("\\") ) {
>             toReturn += "\\";
>         }
>         toReturn += SS_EXE;
>
>         return toReturn;
>     }
>
>     /**
131c154
<     public static final String SS_EXE = "ss";
---
>     private static final String SS_EXE = "ss";