You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by sh...@orbitech.co.in on 2003/03/13 09:25:40 UTC
calling script file.
i have existing script file (xxx.sh) on unix.
how to run this script from within ant ?
Re: calling script file.
Posted by peter reilly <pe...@corvil.com>.
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
RE: calling script file.
Posted by Rajat Gupta <Ra...@oracle.com>.
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