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 <[EMAIL PROTECTED]> 
04/04/2007 06:37 PM
Please respond to
"Ant Users List" <[email protected]>


To
[email protected]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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

Reply via email to