ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anderson, Rob (Global Trade)" <Rob.Ander...@nike.com>
Subject RE: cvs task failing from cron
Date Thu, 07 Jul 2005 16:28:57 GMT
I usually have the cron job source my profile like so...

10 30 * * * . ~/.profile ; /usr/bin/ant -buildfile /home/me/build.xml -logfile /home/me/log.txt

Then make sure your PATH is set correctly in your ~/.profile

-Rob A

> -----Original Message-----
> From: blackwater dev [mailto:blackwaterdev@gmail.com]
> Sent: Thursday, July 07, 2005 7:45 AM
> To: Ant Users List
> Subject: Re: cvs task failing from cron
> 
> 
> Thanks Larry...I'll give it a go.
> 
> Thanks again!
> 
> On 7/7/05, Shatzer, Larry <Larry.Shatzer@mirotechnologies.com> wrote:
> > The script that cron calls to run your ant script (if you 
> have one) needs to
> > set up the environment. If there is no script, but it calls 
> ant itself, make
> > a wrapper shell script that sets up the path. I'm sure a 
> few google searches
> > can help.
> > 
> > -- Larry
> > 
> > > -----Original Message-----
> > > From: blackwater dev [mailto:blackwaterdev@gmail.com]
> > > Sent: Thursday, July 07, 2005 7:09 AM
> > > To: Ant Users List
> > > Subject: Re: cvs task failing from cron
> > >
> > >
> > > Sorry Larry to be so dense but I am a linux newbie.
> > >
> > > So in the cron it needs to set the PATH variable as it is the cron
> > > that runs the ant script.
> > >
> > 
> > 
> ---------------------------------------------------------------------
> > 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
> 
> 
> 


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


Mime
View raw message