Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 35906 invoked from network); 22 Dec 2009 22:20:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 Dec 2009 22:20:02 -0000 Received: (qmail 61814 invoked by uid 500); 22 Dec 2009 22:19:48 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 61705 invoked by uid 500); 22 Dec 2009 22:19:46 -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 61674 invoked by uid 99); 22 Dec 2009 22:19:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Dec 2009 22:19:44 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00 X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of Alec.Fernandez@sas.com designates 149.173.6.153 as permitted sender) Received: from [149.173.6.153] (HELO mercav16.na.sas.com) (149.173.6.153) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Dec 2009 22:19:37 +0000 X-TM-IMSS-Message-ID: Received: from merchub02.na.sas.com ([10.19.20.25]) by mercav16.na.sas.com ([10.19.9.246]) with ESMTP (TREND IMSS SMTP Service 7.0; TLS: TLSv1/SSLv3,128bits,RC4-MD5) id bacb001f000339bc ; Tue, 22 Dec 2009 17:19:15 -0500 Received: from MERCMBX14.na.sas.com ([10.19.20.114]) by merchub02.na.sas.com ([10.19.20.25]) with mapi; Tue, 22 Dec 2009 17:19:15 -0500 From: Alec Fernandez To: Ant Users List Date: Tue, 22 Dec 2009 17:19:09 -0500 Subject: RE: Windows 7 and ant exec task Thread-Topic: Windows 7 and ant exec task Thread-Index: AcqCjsEP9LLNVpPkRDOmYDGFZ+KGpgAfShoAAADfWTAAADqAYAAA28UQ Message-ID: <345520A34347BA49B798F70B218ACD1306C75084B8@MERCMBX14.na.sas.com> References: <8AF7C2FEB045FE44AD7D9CE9E6CC6AE003DEFF79@INSMAIL.na.choicepoint.net> <4B2FF96D.20705@gmx.de> <8AF7C2FEB045FE44AD7D9CE9E6CC6AE003DF0209@INSMAIL.na.choicepoint.net> <9EE86F1965E19E499C80DE52AC807B55051715D2@z011021.bk.fin.local> <8AF7C2FEB045FE44AD7D9CE9E6CC6AE003DF024F@INSMAIL.na.choicepoint.net> In-Reply-To: <8AF7C2FEB045FE44AD7D9CE9E6CC6AE003DF024F@INSMAIL.na.choicepoint.net> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Something else to consider is if the file is in one of the areas that=B4s p= rotected by UAC (like Program Files) it may not be where you think it is. = It might be in your windows virtual store... so java looks for it in Progra= m Files/mysoftware but does not find it there because in reality it resides= in \Users\myuserid\AppData\Local\Virtualstore\Program Files\mysoftware... You might try logging in as a different user and seeing where the file trul= y resides. >> -----Original Message----- >> From: Thompson, Greg D. (LNG-DFW) >> [mailto:greg.thompson@lexisnexis.com] >> Sent: Tuesday, December 22, 2009 3:13 PM >> To: Ant Users List >> Subject: RE: Windows 7 and ant exec task >>=20 >> The .bat file works fine on Server 2003 and XP. It doesn't work on >> Windows 7. >>=20 >> Thanks, >> Greg >> -----Original Message----- >> From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de] >> Sent: Tuesday, December 22, 2009 8:03 AM >> To: user@ant.apache.org >> Subject: AW: Windows 7 and ant exec task >>=20 >> BAT files are not native executables. Execute the shell (cmd) instead >> with BAT as argument. >> See the FAQ. >>=20 >> Jan >>=20 >> >-----Urspr=FCngliche Nachricht----- >> >Von: Thompson, Greg D. (LNG-DFW) >> [mailto:greg.thompson@lexisnexis.com] >> >Gesendet: Dienstag, 22. Dezember 2009 14:39 >> >An: Ant Users List >> >Betreff: RE: Windows 7 and ant exec task >> > >> >Zzz is a .bat file. If I specify the full path of zzz, it executes >> >fine. >> > >> >I'd rather not use the full path. The path to the executable will be >> >different on the dev workstations and the build/ci server. >> > >> >Thanks, >> >Greg >> > >> >-----Original Message----- >> >From: Antoine Levy Lambert [mailto:antoine@gmx.de] >> >Sent: Monday, December 21, 2009 4:41 PM >> >To: Ant Users List >> >Subject: Re: Windows 7 and ant exec task >> > >> >Hello Greg, >> > >> >what is zzz ? is it an exe ? a shell script (.cmd, .bat) ? >> > >> >if you specify the full path of zzz, can you then execute it ? >> > >> >Regards, >> > >> >Antoine >> > >> >Thompson, Greg D. (LNG-DFW) wrote: >> >> I'm using Windows 7. When I use the ant exec task, I get >> >> >> >> Cannot run program "zzz": CreateProcess error=3D2, The system cannot >> >> find the file specified. >> >> >> >> When I run the program "zzz" from the command line, it works fine. >> >> The folder that program "zzz" is in is in my path env variable. >> >> >> >> Ant version 1.7.1 >> >> >> >> Java version 1.6. >> >> >> >> Has anyone experienced this problem? I did several google searches >> >> and found nothing. >> >> >> >> This works fine in XP and Windows Server 2003. >> >> >> >> Thanks. >> >> >> >> >> > >> > >> >--------------------------------------------------------------------- >> >To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For >> additional >> >commands, e-mail: user-help@ant.apache.org >> > >> > >> >----------------------------------------- >> >The information contained in this e-mail message is intended only for >> >the personal and confidential use of the recipient(s) named above. >> This >> >message may be an attorney-client communication and/or work product >> and >> >as such is privileged and confidential. If the reader of this message >> >is not the intended recipient or an agent responsible for delivering >> it >> >to the intended recipient, you are hereby notified that you have >> >received this document in error and that any review, dissemination, >> >distribution, or copying of this message is strictly prohibited. If >> you >> >have received this communication in error, please notify us >> immediately >> >by e-mail, and delete the original message. >> > >> >--------------------------------------------------------------------- >> >To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For >> additional >> >commands, e-mail: user-help@ant.apache.org >> > >> > >>=20 >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional >> commands, e-mail: user-help@ant.apache.org >>=20 >>=20 >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org >> For additional commands, e-mail: user-help@ant.apache.org >>=20 --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org