ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject Converting a shell script part to ant target
Date Thu, 27 Apr 2006 09:48:23 GMT

    Can anyone help me in converting this piece of code from shell
script to an ant target?


# 12 : Check errors at build.msg and the logs

echo "Check there any errors "
cd $IMF/build
rm -rf /usr/local/error.txt
#grep " Error" *.log *.msg > /usr/local/error.txt
grep " Failed" *.log *.msg >> /usr/local/error.txt

count=`cat /usr/local/error.txt|wc -w`
echo $count

if [ ``$count'' = ''0'' ]

sleep 2

# 13 : Create mail file
echo "Runnning create mail script"
echo "To:$maillist" > /usr/local/mail.txt
echo "Subject:Build Summary :: $product/$VER-$RELN/$status"


I will be thankful to you.


+91 80 30298143(O)

The information contained in this electronic message and any attachments to this message are
intended for the exclusive use of the addressee(s) and may contain proprietary, confidential
or privileged information. If you are not the intended recipient, you should not disseminate,
distribute or copy this e-mail. Please notify the sender immediately and destroy all copies
of this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should check this email
and any attachments for the presence of viruses. The company accepts no liability for any
damage caused by any virus transmitted by this email.
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message