ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peter reilly <peter.rei...@corvil.com>
Subject Re: calling script file.
Date Thu, 13 Mar 2003 11:38:07 GMT
It may be better to use
<arg value=""/> rather than <arg line="""/>, the second
will cause problems with names which may contain spaces - like
for example j2ee.home.

Peter.
On Thursday 13 March 2003 11:30, Rajat Gupta wrote:
> Hello Shahaji,
> I have developed a Survey Sample Application which is available on OTN. The
> ANT Build packaged with this application installs the application on the
> OC4J server. During this, I have called some shell scripts from ANT. You
> might want to see that. The URL for the application is
> http://otn.oracle.com/sample_code/tech/xml/survey/content.html. It has been
> tested on Linux platform also.
>
> Particularly, the task I have used (regarding your question) is ...
>      <exec executable="sh" os="SunOS, Linux, Solaris, HP-UX"
> resultproperty="InstallDataSource" failonerror="true"
> failifexecutionfails="true">
>        <arg line="Install.sh"/>
>        <arg line="3"/>
>        <arg line="${j2ee.home}"/>
>        <arg line="${oc4j.admin.pwd}"/>
>        <arg line="${db.name}"/>
>        <arg line="${db.port}"/>
>        <arg line="${db.tnsname}"/>
>      </exec>
>
> Hope this helps,
> Rajat
>
>
> -----Original Message-----
> From: shahaji.kadam@orbitech.co.in [mailto:shahaji.kadam@orbitech.co.in]
> Sent: Thursday, March 13, 2003 1:56 PM
> To: user@ant.apache.org
> Subject: calling script file.
>
>
>
> i have existing script file (xxx.sh) on unix.
>
> how to run this script from within ant ?
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message