[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 558
  • Last Modified:

Programatically deploying SVN files?

Have an SVN repository. It has a TRUNK with all the production code and a branch for each release. The release code is then copied to production and merged back to to the TRUNK once validated as working during a deployment. We use a spreadsheet to to communicate the exact version number to have promoted to production.

My idea is to write a script in Perl, Java, or possibly even Visual Basic to read the spreadsheet and deploy the files.

So I'm wondering if there are any APIs or modules out that can connect to SVN and retrieve and copy a specific file (from a specific branch with a specific version number) to a specific final location? This is all in MS Windows. I just have not been able to find anything.

I also know there are better ways to handle SVN than the method being used, but please keep the answers to what I'm asking for vs. suggesting better ways to handle SVN. Thanks!
0
KGNickl
Asked:
KGNickl
  • 2
2 Solutions
 
for_yanCommented:

this is a Java subversion client:

http://jsvn.alternatecomputing.com/

I am not sure if it is really operational (seems old site) but jar file is downloadable
0
 
for_yanCommented:

This seesm to be newer:

http://svnkit.com/
0
 
Suhas .QA ManagerCommented:
For perl you can try the modules:

Alein::SVN
SVN::Client
0
 
KGNicklAuthor Commented:
SVN::Client seems like it might be a great module to help in scripting this.

Not sure about SVNKit, but looks like it could be a good solution. Didn't feel like digging into the website to find out.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now