aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes getting file from VSS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "getting file from VSS" Watch "getting file from VSS" New topic
Author

getting file from VSS

Eshwin Sukhdeve
Ranch Hand

Joined: Mar 15, 2012
Posts: 80
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

Joined: May 14, 2008
Posts: 5830
    
    7

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


JBoss In Action
Eshwin Sukhdeve
Ranch Hand

Joined: Mar 15, 2012
Posts: 80
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

Joined: May 14, 2008
Posts: 5830
    
    7

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

Joined: Mar 15, 2012
Posts: 80

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

Joined: Mar 15, 2012
Posts: 80
I had changed somthing..please refer this..please ignore previous post..



i am getting this problem



Eshwin Sukhdeve
Ranch Hand

Joined: Mar 15, 2012
Posts: 80
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
 
jQuery in Action, 2nd edition
 
subject: getting file from VSS