aspose file tools*
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
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: 41800
    
  62
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: 4655
    
    5

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

Joined: Mar 22, 2005
Posts: 41800
    
  62
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