ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ron J. Green, Jr." <>
Subject RE: Help with exec
Date Tue, 14 Nov 2000 16:41:22 GMT
You're right, I picked a bad example. Your example works fine as long as I
leave out os="windows". If I include it, however, doesn't run on my Windows
2000 machine.

Is this a known problem. I checked the FAQ and didn't see it mentioned.

Thanks again,

-----Original Message-----
From: Stefan Bodewig []
Sent: Tuesday, November 14, 2000 2:14 AM
Subject: Re: Help with exec

Ron J. Green, Jr. <> wrote:

> However, I'm having trouble with the "exec" task. On my Windows 2000
> machine when I add the os="windows" attribute, it fails to
> execute. But when I echo the "os" property it prints
> "windows". Example below.
>   <target name="test">
>     <echo message="${os}" />
>     <exec executable="dir" os="windows"/>
>   </target>

I may be wrong (as I don't have the slightest understanding of Windows
8-), but ISTR dir is not an executable but a shell builtin.


<exec executable="cmd" os="windows">
  <arg line="/c dir" />

or something similar work?


View raw message