• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to download file from vss through java code

 
sirisha makkapati
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Pat Farrell
Rancher
Posts: 4678
7
Linux Mac OS X VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Of course, its fairly easy to do this using SVN/subversion
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic