Hello,
I'm trying to run the following command using exec in ant:
ls -l /foo/bar | wc -l
Currently, I have my exec looking like this:
<exec executable="ls" outputproperty="noOfFiles">
            <arg value="-l" />
            <arg value="/foo/bar" />
            <arg value="|" />
            <arg value="wc" />
            <arg value="-l" />
</exec>
The ls command looks to be working but it's having a hard time piping the output to wc. Any suggestions?