It's not a secret anymore!*
The moose likes Java in General and the fly likes How to download file from vss through java code Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "How to download file from vss through java code" Watch "How to download file from vss through java code" New topic
Author

How to download file from vss through java code

sirisha makkapati
Ranch Hand

Joined: Dec 10, 2006
Posts: 83
Hi to All,

I wanted to download spec.doc file from vss through java code.
can any one give me the code,

My Vss Path=C:\Visula-SourceSafe\srcsafe.ini and file path in vss is $\Docs\spec.doc.

Thanks in advance.
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

VSS is a Microsoft product and has no Java API. It does have a command line tool called ss.exe which you can call with a ProcessBuilder. Check the help files that come with VSS to see what the command whould be.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41064
    
  43
The Apache Ant tool ships with tasks that integrate with VSS, so you could either run a suitable Ant build file programmatically, or rip out the code that accesses VSS and use that in your code. It most likely uses Runtime.exec or ProcessBuilder internally.


Ping & DNS - my free Android networking tools app
Pat Farrell
Rancher

Joined: Aug 11, 2007
Posts: 4646
    
    5

Of course, its fairly easy to do this using SVN/subversion
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41064
    
  43
Originally posted by Pat Farrell:
Of course, its fairly easy to do this using SVN/subversion

This intrigues me. Are you saying that it's easy to use Java to access an SVN repository, or that somehow SVN can be used to access a VSS repository? Both would be nice, actually.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to download file from vss through java code
 
Similar Threads
NullpointerException in getting files from vss
Can you retrieve from SourceSafe on a Unix box?
create web application to intereact VSS database without client installation
How to download ile from vss thriough java code
File storage in VSS