ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@bost.de>
Subject Re: Help with exec
Date Tue, 14 Nov 2000 08:14:11 GMT
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