You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Zhendi Su <Zh...@oracle.com> on 2002/08/02 00:47:31 UTC

wild-card expansion in task

Hi,

I need to expand the wild-card in <exec> task on UNIX.  I understand
that this can not be done directly because the shell and not ant is
responsible for expanding the wild-card.  I wonder if there is a
workaround.  Any help is appreciated!

Thanks,

-Zhendi


Re: wild-card expansion in task

Posted by Diane Holt <ho...@yahoo.com>.
--- Zhendi Su <Zh...@oracle.com> wrote:
> I need to expand the wild-card in <exec> task on UNIX.  I understand
> that this can not be done directly because the shell and not ant is
> responsible for expanding the wild-card.  I wonder if there is a
> workaround.  Any help is appreciated!

Just exec the shell instead -- eg:
  <target name="run">
    <exec executable="sh">
      <arg line='-c "ls *.txt"'/>
    </exec>
  </target>

Diane

=====
(holtdl@yahoo.com)



__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>