ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ron J. Green, Jr." <rgr...@austin.rr.com>
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,
Ron

-----Original Message-----
From: Stefan Bodewig [mailto:bodewig@bost.de]
Sent: Tuesday, November 14, 2000 2:14 AM
To: ant-user@jakarta.apache.org
Subject: Re: Help with exec


Ron J. Green, Jr. <rgreen@austin.rr.com> 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.

Does

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

or something similar work?

Stefan


Mime
View raw message