On 12/5/06, kkrikor <krikor.krumlian@gmail.com> 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 ?
This would be more appropriate on the users@ list and would probably get
more responses. The only thing I can suggest, from other messages I have
seen, is that hooks are also executed without any environment variables
set. So you might need to just setup the environment more before running
Java.
Mark
Received on Tue Dec 5 20:26:36 2006