You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Changqing Wang <cw...@cyberelan.com> on 2000/11/10 00:27:39 UTC

How to get files from Microsoft Visual Source Safe?

Hello,
I created a simple file "test.xml" to get files from Microsoft Visual Source
Safe.

<project name="test" default="dist" basedir=".">
  <target name="dist" >
	<vssget localPath="C:\Demos"
        vsspath="/Demos"
        writable="true"/>
  </target>
</project>

But I get the following error, can you tell me why and how I can finish this
task?

C:\>ant -buildfile test.xml dist
Buildfile: test.xml

dist:
Created dir: C:\Demos

BUILD FAILED

C:\test.xml:6: java.io.IOException: CreateProcess: ss Get
$/Demos -GLC:\Demos -
- -W error=2
java.io.IOException: CreateProcess: ss Get $/Demos -GLC:\Demos -I- -W
error=2
        at java.lang.Win32Process.create(Native Method)
        at java.lang.Win32Process.<init>(Win32Process.java:66)
        at java.lang.Runtime.execInternal(Native Method)
        at java.lang.Runtime.exec(Runtime.java:551)
        at java.lang.reflect.Method.invoke(Native Method)
        at
org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Exe
ute.java:390)
        at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:247)
        at
org.apache.tools.ant.taskdefs.optional.vss.MSVSS.run(MSVSS.java:161)
        at
org.apache.tools.ant.taskdefs.optional.vss.MSVSSGET.execute(MSVSSGET
java:167)
        at org.apache.tools.ant.Target.execute(Target.java:142)
        at org.apache.tools.ant.Project.runTarget(Project.java:818)
        at org.apache.tools.ant.Project.executeTarget(Project.java:532)
        at org.apache.tools.ant.Project.executeTargets(Project.java:506)
        at org.apache.tools.ant.Main.runBuild(Main.java:420)
        at org.apache.tools.ant.Main.main(Main.java:149)

Total time: 1 second
C:\>


Thanks a lot.
Changqing Wang