Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 9548 invoked from network); 1 Dec 2008 12:24:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Dec 2008 12:23:59 -0000 Received: (qmail 61342 invoked by uid 500); 1 Dec 2008 12:24:08 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 60908 invoked by uid 500); 1 Dec 2008 12:24:07 -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 60897 invoked by uid 99); 1 Dec 2008 12:24:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Dec 2008 04:24:07 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [80.195.74.34] (HELO andromeda.mgtlimited.com) (80.195.74.34) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Dec 2008 12:22:36 +0000 Received: from cetus.mgtlimited.com (cetus.mgtlimited.com [80.195.74.41]) by andromeda.mgtlimited.com (8.13.8/8.13.8) with ESMTP id mB1CDh01027073 for ; Mon, 1 Dec 2008 12:14:04 GMT Received: from mgt_dom-MTA by cetus.mgtlimited.com with Novell_GroupWise; Mon, 01 Dec 2008 12:14:50 +0000 Message-Id: <4933D5360200000D0023B703@cetus.mgtlimited.com> X-Mailer: Novell GroupWise Internet Agent 7.0.3 Date: Mon, 01 Dec 2008 12:14:46 +0000 From: "Mike Stewart" To: "Ant Users List" Subject: RE: ANT failing from command line References: <3360D96DC965E646A7801B794FEAEED805009E3A@LONEXCH310.corp.kbr.com> <4933CD940200000D0023B6F9@cetus.mgtlimited.com> <3360D96DC965E646A7801B794FEAEED805009F3F@LONEXCH310.corp.kbr.com> In-Reply-To: <3360D96DC965E646A7801B794FEAEED805009F3F@LONEXCH310.corp.kbr.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-MGt-MailScanner-Information: Please contact the ISP for more information X-MGt-MailScanner: Found to be clean X-MGt-MailScanner-From: mstewart@mgtplc.com X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No It must be picking up another installation of ANT from somewhere, do a sear= ch for ant on the hard drive and open the ant.jar file and inside there ope= n the manifest.mf file that will give you the version of the ant installati= on. Mike S. >>> "Ammar Khalid" 01/12/2008 11:56:45 >>> 1- After running the SET at DOS, as you can see ANT_HOME is set to: C:\installations\apache-ant-1.7.1 2- Also in the PATH env variable, you can see, the path to ant is: C:\installations\apache-ant-1.7.1\bin 3- I also ran ant -diagnostics and the output is below after the output to SET ------------------------------------------------------------------------ N:\tasks\ant task for juliet>SET ALLUSERSPROFILE=3DC:\Documents and Settings\All Users ANT_HOME=3DC:\installations\apache-ant-1.7.1 APPDATA=3DC:\Documents and Settings\bbnt752\Application Data CLASSPATH=3DC:\Program Files\Documentum\dctm.jar;C:\Documentum\config;C:\Program F iles\Documentum\java\1.4.2_11\bin; C:\installations\apache-ant-1.7.1\lib\ant.jar CommonProgramFiles=3DC:\Program Files\Common Files COMPUTERNAME=3DKEAUK05169 ComSpec=3DC:\WINNT\system32\cmd.exe FP_NO_HOST_CHECK=3DNO HOMEDRIVE=3DN: HOMEPATH=3D\ HOMESHARE=3D\\LONFILE307\HOME$\bbnt752=20 JAD_HOME=3DC:\jadnt158 JAVA_HOME=3DC:\j2sdk1.4.2_13 LOGONSERVER=3D\\LONDCGC301 NUMBER_OF_PROCESSORS=3D2 OS=3DWindows_NT Path=3DC:\Program Files\Documentum\Shared;c:\Oracle\Ora920\bin;C:\Oracle\Ora817\bi n;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program Files\Business Ob jects\common\3.5\bin\NOTES\DATA;C:\Program Files\Business Objects\common\3.5\bin \NOTES;C:\Program Files\Windows Imaging\;C:\j2sdk1.4.2_13\bin;C:\jadnt158;C:\Pro gram Files\CollabNet Subversion Server;C:\Program Files\TortoiseSVN\bin;C:\insta llations\apache-ant-1.7.1\bin PATHEXT=3D.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH PROCESSOR_ARCHITECTURE=3Dx86 PROCESSOR_IDENTIFIER=3Dx86 Family 15 Model 4 Stepping 3, GenuineIntel PROCESSOR_LEVEL=3D15 PROCESSOR_REVISION=3D0403 ProgramFiles=3DC:\Program Files PROMPT=3D$P$G SESSIONNAME=3DConsole SystemDrive=3DC: SystemRoot=3DC:\WINNT TEMP=3DC:\TEMP TMP=3DC:\TEMP TOMCAT_HOME=3DC:\tomcat5.0.28 UATDATA=3DC:\WINNT\system32\CCM\UATData\D9F8C395-CAB8-491d-B8AC-179A1FE1BE 77 USERDNSDOMAIN=3DCORP.KBR.COM USERDOMAIN=3DHALHOUSTON USERNAME=3Dbbnt752 USERPROFILE=3DC:\Documents and Settings\bbnt752 windir=3DC:\WINNT ------------------------------------------------------------------------ ---- N:\tasks\ant task for juliet>ant -diagnostics ------- Ant diagnostics report ------- Apache Ant version 1.6.2 compiled on July 16 2004 ------------------------------------------- Implementation Version (JDK1.2+ only) ------------------------------------------- core tasks : 1.6.2 optional tasks : not available ------------------------------------------- ANT_HOME/lib jar listing ------------------------------------------- ant.home: C:\installations\apache-ant-1.7.1 ant-antlr.jar (5752 bytes) ant-apache-bcel.jar (8611 bytes) ant-apache-bsf.jar (3939 bytes) ant-apache-log4j.jar (3056 bytes) ant-apache-oro.jar (39627 bytes) ant-apache-regexp.jar (3762 bytes) ant-apache-resolver.jar (4071 bytes) ant-commons-logging.jar (3910 bytes) ant-commons-net.jar (47026 bytes) ant-jai.jar (21348 bytes) ant-javamail.jar (6998 bytes) ant-jdepend.jar (8132 bytes) ant-jmf.jar (6593 bytes) ant-jsch.jar (30797 bytes) ant-junit.jar (93518 bytes) ant-launcher.jar (12143 bytes) ant-netrexx.jar (9881 bytes) ant-nodeps.jar (431580 bytes) ant-starteam.jar (35355 bytes) ant-stylebook.jar (2330 bytes) ant-swing.jar (6738 bytes) ant-testutil.jar (14941 bytes) ant-trax.jar (6881 bytes) ant-weblogic.jar (14205 bytes) ant.jar (1323005 bytes) xercesImpl.jar (1223877 bytes) xml-apis.jar (194354 bytes) ------------------------------------------- Tasks availability ------------------------------------------- importtypelib : Initialization error image : Missing dependency javax.media.jai.PlanarImage sshexec : Missing dependency com.jcraft.jsch.UserInfo replaceregexp : Initialization error test : Not Available icontract : Not Available scp : Missing dependency com.jcraft.jsch.UserInfo translate : Initialization error vajload : Not Available WsdlToDotnet : Initialization error jpcovmerge : Not Available cvsversion : Not Available ildasm : Initialization error maudit : Not Available antlr : Initialization error ftp : Initialization error jpcovreport : Not Available xmlvalidate : Initialization error cab : Initialization error jdepend : Missing dependency jdepend.xmlui.JDepend symlink : Initialization error mmetrics : Not Available junit : Initialization error vajexport : Not Available N:\tasks\ant task for juliet>ant -version Apache Ant version 1.6.2 compiled on July 16 2004 -----Original Message----- From: Mike Stewart [mailto:MStewart@mgtplc.com]=20 Sent: 01 December 2008 11:42 To: Ant Users List Subject: Re: ANT failing from command line in the DOS window type SET and see what the environment variable ANT_HOME is set to, also check the PATH variable as this could be causing issues. Mike S. >>> "Ammar Khalid" 01/12/2008 11:34:55 >>> I have written an ANT script and tested in my eclipse environment and it works fine from within eclipse environment. When I run the script using command line command: N:\tasks\ant task for juliet>ant -buildfile build.xml Buildfile: build.xml=20 On checking the web, I saw that this maybe due to older version of ANT such as 1.6.2. But I have ANT 1.7.1, however when I run the command: ant -version, it shows the following: N:\tasks\ant task for juliet>ant -version Apache Ant version 1.6.2 compiled on July 16 2004 This is baffling me? Any ideas When I try to run the same script that works from eclipse, it shows the following output at command line: N:\tasks\ant task for juliet>ant -buildfile build.xml Buildfile: build.xml deploy_convert_tool: [echo] Ant version: ${antversion} [echo] Unzipping the ConvertTool.zip file [unzip] Expanding: N:\tasks\ant task for juliet\ConvertTool.zip into N:\task s\ant task for juliet [echo] Copying the Convert tool files BUILD FAILED java.lang.NoSuchMethodError: org.apache.tools.ant.util.FileUtils.getFileUtils()L org/apache/tools/ant/util/FileUtils; For your reference the script is at as below: simple example build file =09 =09=09 =09=09 =09=09 =09=09 =09=09 =09=09 =09=09=09=09=09 =09=09=09 =09=09 =09=09 This e-mail, including any attached files, may contain confidential and privileged information for the sole use of the intended recipient. Any review, use, distribution, or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive information for the intended recipient), please contact the sender by reply e-mail and delete all copies of this message. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org=20 For additional commands, e-mail: user-help@ant.apache.org=20 --=20 This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. --=20 This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org=20 For additional commands, e-mail: user-help@ant.apache.org=20 --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org=20 For additional commands, e-mail: user-help@ant.apache.org=20 --=20 This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. --=20 This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org