ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vineet Bhatia <Vineet_Bha...@ocs.com>
Subject RE: [patch]MSVSSGET.java - 2nd try :-(
Date Thu, 25 Jan 2001 16:20:50 GMT
hello martin,

i have been using the GL commandline option for the GET command and it seems
to be doing fine.
The localpath parameter is coming as -GLpath.
How I am using is - I have a master list (a CSV file) consisting of the
files and their versions I need to get from VSS.
I read that file and use the VSSGET task for each line in that file. The
file has entries like this -

.....
SourceFileName.java,version number,vss path,local path,Build number as VSS
label
src1.java,2,/some/vss/path,d:\some\local\path,1001
.....
.....

So it works for me.I wonder if there is anything you are doing different?

- Vineet


-----Original Message-----
From: mpoeschl@marmot.at [mailto:mpoeschl@marmot.at]
Sent: Thursday, January 25, 2001 6:01 AM
To: ant-dev@jakarta.apache.org
Subject: [patch]MSVSSGET.java - 2nd try :-(


ok, once again ... here is my patch:

problem: 
the localpath parameter doesn't work
-GL path => must be -GLpath !!!!

martin

Index: ./src/main/org/apache/tools/ant/taskdefs/optional/vss/MSVSSGET.java
===================================================================
RCS file: 
/home/cvspublic/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/
vss/
MSVSSGET.java,v
retrieving revision 1.6
diff -u -r1.6 MSVSSGET.java
--- ./src/main/org/apache/tools/ant/taskdefs/optional/vss/MSVSSGET.java	
2001/01/03 14:18:46	1.6
+++ ./src/main/org/apache/tools/ant/taskdefs/optional/vss/MSVSSGET.java	
2001/01/25 10:37:40
@@ -200,8 +200,7 @@
                 project.log("Created dir: " + dir.getAbsolutePath());
             }
 
-            cmd.createArgument().setValue(FLAG_OVERRIDE_WORKING_DIR);
-            cmd.createArgument().setValue(m_LocalPath);
+            cmd.createArgument().setValue(FLAG_OVERRIDE_WORKING_DIR + 
m_LocalPath);
         }
     }
 
@@ -314,7 +313,7 @@
             m_AutoResponse = response;
         }
     }
-    
+
     /**
      * Checks the value set for the autoResponse.
      * if it equals "Y" then we return -I-Y
@@ -322,12 +321,12 @@
      * otherwise we return -I
      */
     public void getAutoresponse(Commandline cmd) {
-        
+
         if ( m_AutoResponse == null) {
             cmd.createArgument().setValue(FLAG_AUTORESPONSE_DEF);
         } else if ( m_AutoResponse.equalsIgnoreCase("Y")) {
             cmd.createArgument().setValue(FLAG_AUTORESPONSE_YES);
-            
+
         } else if ( m_AutoResponse.equalsIgnoreCase("N")) {
             cmd.createArgument().setValue(FLAG_AUTORESPONSE_NO);
         }else {

The command completed successfully.

---------------------------------------------------------------------
To unsubscribe, e-mail: ant-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: ant-dev-help@jakarta.apache.org

Mime
View raw message