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
|