Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 57752 invoked from network); 20 Oct 2007 15:47:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Oct 2007 15:47:49 -0000 Received: (qmail 80098 invoked by uid 500); 20 Oct 2007 15:47:34 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 80055 invoked by uid 500); 20 Oct 2007 15:47:34 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 80044 invoked by uid 99); 20 Oct 2007 15:47:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Oct 2007 08:47:34 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of arun.george.1981@gmail.com designates 66.249.82.231 as permitted sender) Received: from [66.249.82.231] (HELO wx-out-0506.google.com) (66.249.82.231) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Oct 2007 15:47:38 +0000 Received: by wx-out-0506.google.com with SMTP id h30so1631019wxd for ; Sat, 20 Oct 2007 08:47:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=hTEoGCG8N3oFsScplyY0frSO9/CwF6UAoitlQLcjvSA=; b=Br+2mtkT0uO/QxTO+a1xcHNIOuxz4vh2ToWzCkcgsxq7Jcf70NDBp1dZUjDnTGJkWLRST4UKYZM/UWWdKGCN0bRVU0OoLvxgeCSlyOBbvd5lZ+MT9Wv4bLlyXwX7xKZB4TbtDfFU15cqtvnMdB3WKr1GPNH3NAF4RurZNInfqyc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=hIvkY6Vp8/3U6SswN7Bia0TUDT1egqn1EHa7+2dzFC36aEG4BtqJSPRHhZI3Mpb+++Qhs4UNnz/y7LC12DKU3M2cnZauf23B5M0LvmyIZjEIk7M7HCEYq4dsSnKUjHsviLTcRGlol0OG2VMGX9kuLPFd3VS0eYkdwT2O9fcy3Mg= Received: by 10.70.18.11 with SMTP id 11mr5100205wxr.1192895235832; Sat, 20 Oct 2007 08:47:15 -0700 (PDT) Received: by 10.70.74.8 with HTTP; Sat, 20 Oct 2007 08:47:15 -0700 (PDT) Message-ID: Date: Sat, 20 Oct 2007 21:17:15 +0530 From: Arun To: user@ant.apache.org Subject: Passing environment to cron MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_12270_10035703.1192895235819" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_12270_10035703.1192895235819 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, have a problem running ant script as a cronjob. The cron tells BUILD FAILED /home/build/mobchannel/mobchannelWEB/build.xml:230: /home/build/mobchannel/mobchannelWEB/${env.CATALINA_HOME}/bin not found. But when I directly execute the build.xml using ant this error does not occur. My CATALIN_HOME points to correctly and so does my JAVA_HOME. The ${tomcat.home}/bin is getting expanded to path /home/build/mobchannel/mobchannelWEB/${env.CATALINA_HOME}/bin . When it should have been /usr/local/bin/apache-tomcat-6.0.13/bin. Why does my ant script do this when run from a cronjob using perl script. Obviously the env property should be empty. I am calling ant -logfile build.log from my perl script. And I am including the perlscript as a cron job. How can I pass the environment to ant. I have my CATALIN_HOME entry in ~/.bashrc. And When I echo in console I can see that too. -- Thanks Arun George ------=_Part_12270_10035703.1192895235819--