You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by George Dibi <Ge...@intervoice.com> on 2005/07/07 16:23:18 UTC

antcall task not behing executed.

Hi all,

Can someone help me with this problem?
I am trying to do an "if" condition but it is failing to send the email
after successful build.

         <condition property="isdnSuccessful">
              <equals arg1="${isdnResult}" arg2="0" />
          </condition>
          <antcall target="isdnsuccess"/>
          <antcall target="isdnfail"/>
  </target>

  <target name="isdnsuccess" if="isdnSuccessful">
       <mail mailhost="mail-relay-dal.intervoice.int" mailport="25"
      	     subject= "Successfull Isdnss build"
             encoding="plain"
             from="${mail.fromlist}" tolist="${mail.tolist}"
	     files="${build.log}/isdnss/data.txt">
       </mail> 
  </target>

  <target name="isdnfail" unless="isdnSuccessful">
       <mail mailhost="mail-relay-dal.intervoice.int" mailport="25"
             subject= "Isdnss build failed"
             encoding="plain"
             from="${mail.fromlist}" tolist="${mail.tolist}"
             files =
"${build.log}/${isdnss.mtc.collection}/build.report,${build.log}/missing
.err">
       </mail>
       <fail message="Build failed"/>
  </target>


-----Original Message-----
From: blackwater dev [mailto:blackwaterdev@gmail.com] 
Sent: Thursday, July 07, 2005 8:34 AM
To: Ant Users List
Subject: Re: cvs task failing from cron

So cvs should be in my path env variable?  How do I check that?

echo $PATH?

On 7/7/05, Shatzer, Larry <La...@mirotechnologies.com> wrote:
> Make sure your script for cron sets up your path so cvs is in your
path.
> Cronjobs run in a minimal environment.
> 
> -- Larry
> 
> > -----Original Message-----
> > From: blackwater dev [mailto:blackwaterdev@gmail.com]
> > Sent: Thursday, July 07, 2005 5:48 AM
> > To: Ant Users List
> > Subject: cvs task failing from cron
> >
> >
> > I have a cvs task that uses ssh authentication to checkout:
> >
> > <cvs cvsRoot="me@192.168.0.64:/usr/local/cvs"
> >        cvsRsh="ssh"
> >          package="cars"
> >        dest="/httpd/htdocs"
> > />
> >
> > After asking a question yesterday about storing my ssh password, I
set
> > up an ssh key and now when I ssh into the box, I can run the build
> > script and everything runs fine and it doesn't ask for my password.
> > The problem is, I need to run the same build script from a cron job.
> > I know the cron job is running as other tasks are executed but for
> > some reason when the cvs task is run from the cron, I get this
error:
> >
> > checkout:
> > [cvs] Caught exception: No such file or directory
> >
> > Here's the cron:
> > 10 30 * * * /usr/bin/ant -buildfile /home/me/build.xml
> > -logfile /home/me/log.txt
> >
> > Why won't this script run from a cron?
> >
> > Thanks!
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


This e-mail transmission may contain information that is proprietary, privileged and/or confidential and is intended exclusively for the person(s) to whom it is addressed. Any use, copying, retention or disclosure by any person other than the intended recipient or the intended recipient's designees is strictly prohibited. If you are the intended recipient, you must treat the information in confidence and in accordance with all laws related to the privacy and confidentiality of such information.  If you are not the intended recipient or their designee, please notify the sender immediately by return e-mail and delete all copies of this email, including all attachments.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org