[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: Francois Beausoleil <fbos_at_users.sourceforge.net>
Date: 2004-04-23 17:49:06 CEST

Simply redirect the output of the Ant command to a file or nul:

ant build.xml >NUL

 - or -

ant build.xml >ant-build.log

If you're on W2K or XP, you can also do the following:

ant build.xml 1>NUL 2>NUL

which will also redirect STDERR.

Hope that helps !
François

On Fri, 23 Apr 2004 15:32:24 +0100, "Eric Carlson"
<eric.carlson@group-technical.com> said:
> I have a hook which gets the HEAD, performs an ant build and then
> publishes the committed files to a staging webserver. Its all kicked
> off by the file hooks\post-commit.bat. I had trouble whenever this
> tried to echo output, i.e. write to stdout - the whole job stopped. So
> I revised by scripts not to do that but unfortunately it invokes ant
> which logs stuff by default (i.e. even when theres nothing to do) and
> so kills the script at that point.
>
> 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.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
Developer of Java Gui Builder
http://jgb.sourceforge.net/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Apr 23 17:55:55 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.