Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

getting file from VSS

 
Eshwin Sukhdeve
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
getting vss file using ant script

I am not able to get the files from VSS.I am using following code.

and just let me know is localpath attribute is for our local project path?
I am getting the problem in this line failed to executing "vsspath="$\FunctionalAuto\ExcelBased" filetimestamp="modified"/>"
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Eshwin, welcome to Java Ranch!
You're still stuck using VSS? You have my sympathies!

just let me know is localpath attribute is for our local project path?

Yeah, the docs aren't clear on that:

Ant docs wrote:localpath Override the working directory and get to the specified path

Clear as mud to me!

But the docs give an example and then have this helpful sentence:
Ant docs wrote:
localPath="C:\mysrc\pyproject"
. . .
It will recursively get the files which are labeled Release1 and write them to the local directory C:\mysrc\myproject.


Is the VSS repository on your PC or on a remote server? If remote, you also need to supply the serverPath attribute. See the docs for details:
http://ant.apache.org/manual/Tasks/vss.html#vssget

 
Eshwin Sukhdeve
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Thanks for reply..here local path is my local project path..and I am using remote VSS..and i have tried with server path attribute also..there i have specified the path srcsafe.ini of remote machine
even then its not working...
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try using two backslashes - at time since backslashes are used as escape characters. Example:

vsspath="$\\FunctionalAuto\\ExcelBased"

If that doesn't work, post the full vssget, along with the server location.
 
Eshwin Sukhdeve
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

here is the code...I have metioned double \\ also but I am getting error..

<?xml version="1.0" encoding="UTF-8"?>
<project name="Create Runnable Jar for Project Sonnet_Framework with Jar-in-Jar Loader"
xmlns:vss="antlibrg.apache.ant.vss">
<!--this file was created by Eclipse Runnable JAR Export Wizard-->
<!--ANT 1.7 is required
-->
<target name="prepare">
<vssget localPath="D:\Project\sonnetframwwork"
recursive="true"
label="Release1"
login="eshwin.s,Eshu@123"
vsspath="$\\FunctionalAuto\\ExcelBased"
serverPath="\\blrbg1fsr001\\Testing Practice\\Testingpractice_vss\\srcsafe.ini"
writable="true"/>
</target>
</project>

error is..

D:\ANTSonnet>ant prepare
Buildfile: D:\ANTSonnet\build.xml

prepare:
[vssget] 'ss' is not recognized as an internal or external command,
[vssget] operable program or batch file.

BUILD FAILED
D:\ANTSonnet\build.xml:14: Failed executing: ss Get $\\FunctionalAuto\\ExcelBase
d -GLD:\Project\sonnetframwwork -I- -R -VLRelease1 -W -Yeshwin.s,******** Wit
h a return code of 1

Total time: 21 seconds





 
Eshwin Sukhdeve
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I had changed somthing..please refer this..please ignore previous post..



i am getting this problem



 
Eshwin Sukhdeve
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi peter...my problem is got solved..i had just removed the label="Release1" from the above code
now I am able to get the files from VSS..Thanks for help..I will come to you again for next problem..;)
Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic