You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by soussou97 <db...@yahoo.fr> on 2007/04/04 15:07:43 UTC

Running Ant via Shell script

Hi;

I try to understand the following command : $ANT_HOME/bin/ant create_base.sh
Its possible to run Ant via a shell script under Linux ? Why to use this
type of command (advantage) ?

Regards;


-- 
View this message in context: http://www.nabble.com/Running-Ant-via-Shell-script-tf3525700.html#a9836553
Sent from the Ant - Users mailing list archive at Nabble.com.


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


Re: Running Ant via Shell script

Posted by pr...@polaris.co.in.
u can call the ant task inside the shelll script.


below is content of script file a.sh.. u need to just run script file 
............... as $a.sh

ant all --> all is a task in build.xml

a=`grep -ni "BUILD SUCCESSFUL" BuildLogger1.txt|wc -l`

if [ $a -ne 0 ]
then
  echo "Found"
  ant Mail_SuccessStatus_wl
else
  echo "Not Found"
  ant Mail_FailureStatus_wl
fi


R u clear with solution.

Bye



soussou97 <db...@yahoo.fr> 
04/04/2007 06:37 PM
Please respond to
"Ant Users List" <us...@ant.apache.org>


To
user@ant.apache.org
cc

Subject
Running Ant via Shell script







Hi;

I try to understand the following command : $ANT_HOME/bin/ant 
create_base.sh
Its possible to run Ant via a shell script under Linux ? Why to use this
type of command (advantage) ?

Regards;


-- 
View this message in context: 
http://www.nabble.com/Running-Ant-via-Shell-script-tf3525700.html#a9836553
Sent from the Ant - Users mailing list archive at Nabble.com.


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



This e-Mail may contain proprietary and confidential information and is sent for the intended recipient(s) only.  If by an addressing or transmission error this mail has been misdirected to you, you are requested to delete this mail immediately. You are also hereby notified that any use, any form of reproduction, dissemination, copying, disclosure, modification, distribution and/or publication of this e-mail message, contents or its attachment other than by its intended recipient/s is strictly prohibited.

Visit us at http://www.polaris.co.in