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

Re: Hooks on Windows

From: Talley, Brooks <brooks_at_frnk.com>
Date: 2004-04-23 20:34:11 CEST

On Fri, 23 Apr 2004 15:32:24 +0100, "Eric Carlson"
<eric.carlson@group-technical.com> said:
> How can I tell the hook script to turn off output for all its invoked
> scripts please? Also, what I really want is not to just lose these
> logs but pip them to a file? All this is of course of thats what my
> real problem causing the hooks to fail is. I know they are being
> invoked because as a test I added "copy foo.txt bar.txt" as the first
> line in one and bar.txt was created ok. Cheers.

You might also consider writing a small VBScript to do the actual ANT
execution and capture the stdout/stderr results. Just have your
post-commit.bat run "cscript d:\dir\hooks\post-commit.vbs %1 %2", and
you've got a lot more flexibility and power.

The VBScript can, for instance, send you an email if stderr isn't empty,
or based on keywords from stdout.

Cheers
-b

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Apr 23 20:32:48 2004

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.