My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
ReadMe  
What you need to know to use this project.
Featured, Phase-Deploy
Updated Feb 4, 2010 by alex.pet...@gmail.com

Introduction

SvnCommitToFTP (SC2FTP) is a program written in C# on the .NET Platform to upload files committed to a subversion repository to a specified FTP site.

This project depends on SubversionSharp and AprSharp. I am distributing the DLL's since it's a huge pain to compile them and to setup the project if you don't have them.

SubversionSharp is here: http://www.softec.st/en/OpenSource/ClrProjects/SubversionSharp/SubversionSharp.html

AprSharp is here: http://www.softec.st/en/OpenSource/ClrProjects/AprSharp/AprSharp.html

Features

SC2FTP supports the following subversion commands:

  • Upload new file.
  • Upload changes to a file.
  • Delete file.
  • Rename file (since it's technically counted as a delete / add).
  • Create directory.
  • Delete directory (if it is empty).

All SC2FTP commands are logged and timestamped in the log file.

Installation Directions

  1. Just copy all of the files into the "hooks" directory of the repo.
  2. Rename the SvnCommitToFTP.exe file to post-commit.exe in order for it to be executed automatically.
  3. Modify the settings.xml and set the appropriate values. Log file directory should be absolute.
  4. Technically, the application can be run by itself on the command line if you pass it the path to the subversion repository and revision who's changes you want to upload.

Issues

  • If the Subversion bin directory is setup in the PATH environment variable, you need to remove it. The dll versions are conflicting, and it causes issues. Just remove it from the PATH and it should work okay.
  • If you delete a directory without first deleting the items under it. The delete on the FTP directory will fail. You will have to manually delete the folder with your FTP client.

Comment by pixel...@gmail.com, Dec 18, 2008

Hi,

How exactly do you run this using command line and pass the subversion repository and revision info to it? I don't want the files to be FTP'd to the server every time I do a commit, only when I determine the version is stable.

Thanks, -Roman


Sign in to add a comment
Powered by Google Project Hosting