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

Re: [Subclipse-users] Svnant fails when run as hook

From: Mark Phippard <markphip_at_gmail.com>
Date: 2007-11-23 15:53:52 CET

On Nov 23, 2007 5:36 AM, Johannes Braunias
<Johannes.Braunias@sonydadc.com> wrote:
> I'm experiencing the following problem:
> I want to copy files out of a repository to a folder, after a commit is
> executed.
> I implemented therefore the following ant task as a post-commit hook.
> (All on a Windows system.)
> When executing the task from the command line, this works fine.
> When executing it as a hook in the post-commit batch, it fails.
> The only difference: from command line, it runs on my user account, when
> executing as a hook, it runs as the SYSTEM user.
> The Path variable is available (set in the hook batch file). Hmm, other
> variables needed?
> After a commit, ant starts, but the "svn" process hangs. When it is killed,
> the rest of the ant log file is written.

I do not have anything concrete to tell you, but I can say that when a
hook script is run, there is no environment at all. So %PATH% will
not be set, nor will any other variable that you might need.

Mark Phippard
To unsubscribe, e-mail: users-unsubscribe@subclipse.tigris.org
For additional commands, e-mail: users-help@subclipse.tigris.org
Received on Fri Nov 23 15:54:09 2007

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

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