subversion-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bert Huijben" <b...@qqmail.nl>
Subject RE: hook-script with java programm
Date Thu, 08 Apr 2010 12:01:57 GMT


> -----Original Message-----
> From: Sandro Frenzel [mailto:s.frenzel@technisat.de]
> Sent: donderdag 8 april 2010 11:55
> To: users@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



Mime
View raw message