Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 62342 invoked from network); 28 Jan 2006 18:49:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 28 Jan 2006 18:49:27 -0000 Received: (qmail 99511 invoked by uid 500); 28 Jan 2006 18:49:24 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 99461 invoked by uid 500); 28 Jan 2006 18:49:23 -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 99450 invoked by uid 99); 28 Jan 2006 18:49:23 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 28 Jan 2006 10:49:23 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [213.46.243.15] (HELO amsfep17-int.chello.nl) (213.46.243.15) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 28 Jan 2006 10:49:22 -0800 Received: from [192.168.0.2] (really [213.89.102.190]) by amsfep17-int.chello.nl (InterMail vM.6.01.04.04 201-2131-118-104-20050224) with ESMTP id <20060128184900.RKIP3085.amsfep17-int.chello.nl@[192.168.0.2]> for ; Sat, 28 Jan 2006 19:49:00 +0100 In-Reply-To: <00ad01c62439$94efff10$0d02a8c0@athlon> References: <004801c6242b$ae2f7fe0$0d02a8c0@athlon> <4F0FDF55-9127-47C6-B741-C025921B10BF@chello.se> <00ad01c62439$94efff10$0d02a8c0@athlon> Mime-Version: 1.0 (Apple Message framework v746.2) X-Priority: 3 Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Tommy Nordgren Subject: Re: Problems with exec task Date: Sat, 28 Jan 2006 19:48:59 +0100 To: "Ant Users List" X-Mailer: Apple Mail (2.746.2) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I just remembered something about the exec task: On Windows, the Execute class, used by the ExecTask, itself launches cmd.exe to handle the command. You might try executable="${vbs.script}" On Jan 28, 2006, at 7:35 PM, Rhino wrote: > I tried adding resolveExecutable="true" and it made no difference. > > What do you mean when you say to use an absolute path? I am already > using one in the 'vbs.script' property so I added the absolute path > to 'cmd.exe'. This made no difference either; the task still has no > errors but the name didn't get added to the Word document. > > This is the current version of the task: > > > > resolveexecutable="true"> > > > > > > > > I'm not sure what else to try.... > > > Rhino > ----- Original Message ----- From: "Tommy Nordgren" > > To: "Ant Users List" > Sent: Saturday, January 28, 2006 12:24 PM > Subject: Re: Problems with exec task > > >> Use the exec attribute resolveExecutable="true", >> or use an absolute path. >> On Jan 28, 2006, at 5:55 PM, Rhino wrote: >> >>> I'm having a bit of trouble with an exec task in Windows XP >>> Professional and I would appreciate a bit of help from the >>> experts on this mailing list. >>> >>> I have created a short VBScript that invokes a Microsoft Word >>> macro; the macro expects exactly two parameters on the command >>> line and adds the values of these two parameters to a Word >>> document. >>> >>> When I do this on my Win XP command line, regardless of where I >>> am in the file system: >>> >>> "C:\Documents and Settings\Rhino\My Documents >>> \LaunchWdMacro.vbs" Fred Flintstone >>> >>> the VBScript works fine and "Fred Flinstone" is written into the >>> Word document. >>> >>> However, when I try to do the same thing in Ant, I run into >>> problems. >>> >>> When I try the exec this way: >>> >>> >>> >>> >>> >>> >>> >>> >>> I get no errors from Ant but the name Fred Flintstone has not >>> been added to the Word document either. I've also tried the exec >>> this way but with the same result; Fred Flintstone does not get >>> added to the Word document: >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> Can anyone help me figure out what I need to change to make the >>> exec task work correctly? I need the exec task to run without >>> errors _and_ I need the parameters passed from the command line >>> to wind up in the Word document. >>> >>> I'm sure my VBScript is working fine since it works from the >>> Windows command line; I just can't quite get it to work from Ant. >>> >>> --- >>> Rhino >>> >>> >>> >>> -- >>> No virus found in this outgoing message. >>> Checked by AVG Free Edition. >>> Version: 7.1.375 / Virus Database: 267.14.23/243 - Release Date: >>> 27/01/2006 >>> >>> >>> -------------------------------------------------------------------- >>> - >>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org >>> For additional commands, e-mail: user-help@ant.apache.org >>> >> >> "Home is not where you are born, but where your heart finds peace" - >> Tommy Nordgren, "The dying old crone" >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org >> For additional commands, e-mail: user-help@ant.apache.org >> >> >> -- >> No virus found in this incoming message. >> Checked by AVG Free Edition. >> Version: 7.1.375 / Virus Database: 267.14.23/243 - Release Date: >> 27/01/2006 >> > > > > -- > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.1.375 / Virus Database: 267.14.23/243 - Release Date: > 27/01/2006 > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org > "Home is not where you are born, but where your heart finds peace" - Tommy Nordgren, "The dying old crone" --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org