ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From k...@apache.org
Subject svn commit: r400003 - in /ant/sandbox/antlibs/vss/src: etc/testcases/msvss.xml main/org/apache/ant/vss/MSVSSConstants.java main/org/apache/ant/vss/MSVSSLOCATE.java main/org/apache/ant/vss/antlib.xml testcases/org/apache/ant/vss/MSVSSTest.java
Date Fri, 05 May 2006 07:41:46 GMT
Author: kevj
Date: Fri May  5 00:41:43 2006
New Revision: 400003

URL: http://svn.apache.org/viewcvs?rev=400003&view=rev
Log:
added status task for VSS antlib (Bug #18146)

Modified:
    ant/sandbox/antlibs/vss/src/etc/testcases/msvss.xml
    ant/sandbox/antlibs/vss/src/main/org/apache/ant/vss/MSVSSConstants.java
    ant/sandbox/antlibs/vss/src/main/org/apache/ant/vss/MSVSSLOCATE.java
    ant/sandbox/antlibs/vss/src/main/org/apache/ant/vss/antlib.xml
    ant/sandbox/antlibs/vss/src/testcases/org/apache/ant/vss/MSVSSTest.java

Modified: ant/sandbox/antlibs/vss/src/etc/testcases/msvss.xml
URL: http://svn.apache.org/viewcvs/ant/sandbox/antlibs/vss/src/etc/testcases/msvss.xml?rev=400003&r1=400002&r2=400003&view=diff
==============================================================================
--- ant/sandbox/antlibs/vss/src/etc/testcases/msvss.xml (original)
+++ ant/sandbox/antlibs/vss/src/etc/testcases/msvss.xml Fri May  5 00:41:43 2006
@@ -100,6 +100,14 @@
   	/>
   </target>
 	
+  <target name="test-status" depends="setup">
+    <vss:status
+	  vsspath="$/${vss-project}"
+	  login="Guest,"
+      user="Guest"
+	/>
+  </target>	
+	
   <target name="cleanup">
 	<vss:destroy
 	  vsspath="$/${vss-project}"

Modified: ant/sandbox/antlibs/vss/src/main/org/apache/ant/vss/MSVSSConstants.java
URL: http://svn.apache.org/viewcvs/ant/sandbox/antlibs/vss/src/main/org/apache/ant/vss/MSVSSConstants.java?rev=400003&r1=400002&r2=400003&view=diff
==============================================================================
--- ant/sandbox/antlibs/vss/src/main/org/apache/ant/vss/MSVSSConstants.java (original)
+++ ant/sandbox/antlibs/vss/src/main/org/apache/ant/vss/MSVSSConstants.java Fri May  5 00:41:43
2006
@@ -56,7 +56,9 @@
     String COMMAND_DECLOAK = "Decloak";
     /**  The 'Locate' command  */
     String COMMAND_LOCATE = "Locate";
-
+    /**  The 'Status' command  */
+    String COMMAND_STATUS = "Status";
+    
     /**  The brief style flag  */
     String STYLE_BRIEF = "brief";
     /**  The codediff style flag  */

Modified: ant/sandbox/antlibs/vss/src/main/org/apache/ant/vss/MSVSSLOCATE.java
URL: http://svn.apache.org/viewcvs/ant/sandbox/antlibs/vss/src/main/org/apache/ant/vss/MSVSSLOCATE.java?rev=400003&r1=400002&r2=400003&view=diff
==============================================================================
--- ant/sandbox/antlibs/vss/src/main/org/apache/ant/vss/MSVSSLOCATE.java (original)
+++ ant/sandbox/antlibs/vss/src/main/org/apache/ant/vss/MSVSSLOCATE.java Fri May  5 00:41:43
2006
@@ -34,7 +34,7 @@
             String msg = "vsspath attribute must be set!";
             throw new BuildException(msg, getLocation());
         }
-        // Cloak always returns 1 - must set failonerror="false" as workaround
+        // Locate always returns 1 - must set failonerror="false" as workaround
         this.setFailOnError(false);
         // build the command line from what we got
         // the format is:

Modified: ant/sandbox/antlibs/vss/src/main/org/apache/ant/vss/antlib.xml
URL: http://svn.apache.org/viewcvs/ant/sandbox/antlibs/vss/src/main/org/apache/ant/vss/antlib.xml?rev=400003&r1=400002&r2=400003&view=diff
==============================================================================
--- ant/sandbox/antlibs/vss/src/main/org/apache/ant/vss/antlib.xml (original)
+++ ant/sandbox/antlibs/vss/src/main/org/apache/ant/vss/antlib.xml Fri May  5 00:41:43 2006
@@ -79,4 +79,8 @@
     name="locate"
     classname="org.apache.ant.vss.MSVSSLOCATE"
     />
+  <taskdef
+    name="status"
+    classname="org.apache.ant.vss.MSVSSSTATUS"
+    />
 </antlib>

Modified: ant/sandbox/antlibs/vss/src/testcases/org/apache/ant/vss/MSVSSTest.java
URL: http://svn.apache.org/viewcvs/ant/sandbox/antlibs/vss/src/testcases/org/apache/ant/vss/MSVSSTest.java?rev=400003&r1=400002&r2=400003&view=diff
==============================================================================
--- ant/sandbox/antlibs/vss/src/testcases/org/apache/ant/vss/MSVSSTest.java (original)
+++ ant/sandbox/antlibs/vss/src/testcases/org/apache/ant/vss/MSVSSTest.java Fri May  5 00:41:43
2006
@@ -55,4 +55,8 @@
     public void testMSVSSLOCATE() throws Exception {
         executeTarget("test-locate");
     }
+    
+    public void testMSVSSSTATUS() throws Exception {
+        executeTarget("test-status");
+    }
 }



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


Mime
View raw message