Actually, I found a solution. The problem seemed to be that I had VSS installed in C:\Program Files\Microsoft Visual Studio\VSS. I had to quote this to put it in the CLASSPATH and I don't think Java likes that. i.e. My CLASSPATH looked like
asdfasdf;asdfasdfas;"C:\Proga... .. ...";asdlkfjsdl Replacing the quoted path with the ~'ed path (C:\Progra~1\Micros~3\VSS) worked like a charm. Wierd, huh? Also, I could use that same path (with / instead of \) and it would work fine too. BTW, perhaps a patch is needed so that ssDir can take values with \ in them. K.C. > -----Original Message----- > From: Mikkel Bruun [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 22, 2000 2:20 AM > To: '[EMAIL PROTECTED]' > Subject: SV: Is VSSGET still working? > > > You need to set the following property: > set SSDIR=\\server\vss\db > > wherer SSDIR points to whereever your vss db might be placed. > > Mikkel > > > -----Oprindelig meddelelse----- > Fra: KC Baltz [mailto:[EMAIL PROTECTED] > Sendt: 21. november 2000 18:12 > Til: '[EMAIL PROTECTED]' > Emne: Is VSSGET still working? > > > I'm trying to use it with Ant 1.2. I have the optional.jar > in ant/lib. I > have ss.exe in my path. Here is the Target > > <target name="vss" depends="init"> > <vssget vsspath = "${ssProject}" > recursive = "true" > login = "${ssUser},${ssPassword}" > writable = "false" > /> > </target> > > Here is the error I get: > > D:\src\ant\build.xml:383: java.io.IOException: CreateProcess: ss Get > $/ResponseWorks -I- -R -Yuser,pass error=2 > java.io.IOException: CreateProcess: ss Get $/ResponseWorks -I- -R > -Yuser,pass 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.ex > ec(Execute.jav > a: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(MS > VSSGET.java:16 > 7) > 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 > > Thanks in advance, > K.C. Baltz >
