• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to download file from vss through java code  RSS feed

 
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.
 
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.
 
Rancher
Posts: 42975
76
  • 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.
 
Rancher
Posts: 4686
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: 42975
76
  • 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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!