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

RE: hook-script with java programm

From: Bert Huijben <bert_at_qqmail.nl>
Date: Thu, 8 Apr 2010 14:01:57 +0200

> -----Original Message-----
> From: Sandro Frenzel [mailto:s.frenzel_at_technisat.de]
> Sent: donderdag 8 april 2010 11:55
> To: users_at_subversion.apache.org
> Subject: hook-script with java programm
>
> Hello all,
>
> I run a java programm within a SVN post-commit script and it works fine.
>
> When something goes wrong a exception is thrown and the programm stops
> without any information given to the user. Is it possible to 'pipe' the
> error message over the post-commit script to the user?
>
> In a perl script I can do something like this: '[...] die "Denied:
Filename
> cannot be renamed on $path! $!"; [...]'. This error message is returned to
> the SubVersion process and displayed in a SubVersion client.
>
> How can I do this in Java? Maybe I have to post this thread in a Java
forum,
> too. However, I hope someone can help me here :-)!

You should write output to System.err instead of System.out, because only
the stderr text is transferred to the client.

        Bert
Received on 2010-04-08 14:02:33 CEST

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.