[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

post-commit calling NAnt file (on windows obviously =))

From: Hoska, Richard A. \(HQ-LD070\)[InDyne, Inc] <Richard.A.Hoska_at_nasa.gov>
Date: 2006-07-13 23:30:36 CEST

I'm having a lot of trouble getting a post commit hook to work.


I'm using post-commit.bat to call a NAnt build file, the code below
works perfectly when I just run the batch file either from the command
line or double click on it but its not working with subversion.


I have played with this endlessly and can't seem to get any further than
I am now. I think that the hook is working (as in calling the Nant
build file) because when I have it active commits take noticeably longer
than when I remove it.


If anyone has any ideas I would be most appreciative.

@echo off

cd C:\Program Files\NAnt\bin\
start /b nant -buildfile:c:\svn\PCADS\hooks\UpdateRepository.build

---------------- UpdateRepository.build-----------------------
<?xml version="1.0"?>
<project name="Update Repository" default="Update">
<target name="Update">
<!--<echo>Attempting to Update the repository</echo>-->


<!--<echo>Finished updating the repository</echo>-->


Received on Thu Jul 13 23:31:17 2006

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.