ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vihan Pandey" <vihanpan...@gmail.com>
Subject Re: replaceregex issues
Date Thu, 13 Mar 2008 13:17:35 GMT
On 3/12/08, neo anderson <javadeveloper999@yahoo.co.uk> wrote:
>
> How do I use shell script in ant? I try the following code, but it does not
> work.
>
> <project>
>        <target name="test">
>                <shellscript shell="bash">
>                        (echo "hi!";)
>                </shellscript>
>        </target>
> </project>

> Though it return build successfully. But there is nothing echo on the
> screen. What should I do if I want to run shell script command or use
> command (e.g., ) a bit like shell script in ant?

Can you try doing a (touch foo.bar) instead of the (echo "hi!";) and
see if an empty file gets created?

Regards,

- vihan

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message