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

Re: execute java jar file in a post-commit hook

From: kkrikor <krikor.krumlian_at_gmail.com>
Date: 2006-12-05 21:40:14 CET

Moved this to

http://www.nabble.com/execute-java-jar-file-in-a-post-commit-hook-tf2764050.html

Thank you

kkrikor wrote:
>
> Does this work ? I placed the following code in post-commit
> Code:
>
>
> # Trigger a build everytime a commit happens
> /usr/local/java/bin/java -jar
> /home/x/triggerContBuild/target/triggerContBuild/trigger/triggerContBuild.jar
>
> # Send an email everytime a commit happens
> /var/www/svnroot/hooks/commit-email.pl --from x@x.com "$REPOS" "$REV"
> x@x.com
>
>
>
> When i execute this post-commit on the command the jar file runs , But
> when i do a commit i get the email but the java jar file does not run. Any
> thoughts?
>
> I am using Http for my commits, i know the http server runs as apache
> user. So i did a su to apache and tried to execute it on the command line
> that worked too. So what am i missing ?
>

-- 
View this message in context: http://www.nabble.com/execute-java-jar-file-in-a-post-commit-hook-tf2763610.html#a7707390
Sent from the Subversion Dev mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Dec 5 21:40:31 2006

This is an archived mail posted to the Subversion Dev mailing list.