Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 96296 invoked from network); 28 Apr 2006 04:25:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 28 Apr 2006 04:25:39 -0000 Received: (qmail 35255 invoked by uid 500); 28 Apr 2006 04:25:30 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 35202 invoked by uid 500); 28 Apr 2006 04:25:30 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 35118 invoked by uid 99); 28 Apr 2006 04:25:29 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Apr 2006 21:25:29 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of carej@us.ibm.com designates 32.97.110.152 as permitted sender) Received: from [32.97.110.152] (HELO e34.co.us.ibm.com) (32.97.110.152) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Apr 2006 21:25:27 -0700 Received: from westrelay02.boulder.ibm.com (westrelay02.boulder.ibm.com [9.17.195.11]) by e34.co.us.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id k3S4P65p023079 for ; Fri, 28 Apr 2006 00:25:06 -0400 Received: from d03av04.boulder.ibm.com (d03av04.boulder.ibm.com [9.17.195.170]) by westrelay02.boulder.ibm.com (8.12.10/NCO/VER6.8) with ESMTP id k3S4P6Ab257096 for ; Thu, 27 Apr 2006 22:25:06 -0600 Received: from d03av04.boulder.ibm.com (loopback [127.0.0.1]) by d03av04.boulder.ibm.com (8.12.11/8.13.3) with ESMTP id k3S4P6xm009496 for ; Thu, 27 Apr 2006 22:25:06 -0600 Received: from d03nm119.boulder.ibm.com (d03nm119.boulder.ibm.com [9.17.195.145]) by d03av04.boulder.ibm.com (8.12.11/8.12.11) with ESMTP id k3S4P6th009493 for ; Thu, 27 Apr 2006 22:25:06 -0600 In-Reply-To: <863A0759A3243C4DAB49851540F9935D0CE3F7@blr-m2-msg.wipro.com> To: "Ant Users List" Subject: RE: Converting a shell script part to ant target MIME-Version: 1.0 X-Mailer: Lotus Notes Release 7.0 HF85 November 04, 2005 From: Jeffrey E Care Message-ID: Date: Fri, 28 Apr 2006 00:28:25 -0400 X-MIMETrack: Serialize by Router on D03NM119/03/M/IBM(Release 6.53HF654 | July 22, 2005) at 04/27/2006 22:28:30, Serialize complete at 04/27/2006 22:28:30 Content-Type: multipart/related; boundary="=_related 001843A58525715E_=" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --=_related 001843A58525715E_= Content-Type: multipart/alternative; boundary="=_alternative 001843A78525715E_=" --=_alternative 001843A78525715E_= Content-Type: text/plain; charset="US-ASCII" Speaking strictly for myself, I'll either just ignore queries like this or respond in the manner that Rob did. The problem is the way you phased your question: I (and I'm sure many of the other experienced users) saw your question as an attempt to get us to do your work for you. You provided no details about what you've tried already, where you got stuck, etc. Things would have been very different if you had provided not only the shell script you're trying to convert, but also the build.xml that you'd started working on & a description of where you're stuck (and what you tried that didn't work to get you unstuck). The experienced Ant users who hang out on this list do so because we want to try and help people; if we didn't care we wouldn't do it. Personally, monitoring the user list takes at least 30 minutes of my time everyday - that's time that I could easily be spending on other things but I give that time because once in a while I can answer a question that provides that one key piece of information that someone needed to get back on track. That said, this list is not your personal question answering service; it's rude & disrespectful to come in here, post a question such as the one you did & then be snarky to the people who have given you the pointers you seem to need to get started. Bottom line: read the smart questions FAQ again & come back once you're tried to solve this problem yourself. We'll be more then happy to _HELP_ your figure out a specific problem (as opposed to just doing it all for you). JEC ____________________________________________________________________________________________ Jeffrey E. (Jeff) Care carej@us.ibm.com IBM WebSphere Application Server Development WAS Pyxis Lead Release Engineer 04/27/2006 11:33 PM Please respond to "Ant Users List" To , cc Subject RE: Converting a shell script part to ant target Thanks Guys for your nice support and suggestions I will see how can I get benefited from all the URL's you people have provided instead of giving solutions. And I also know the basics of before asking questions in forum that one should try to reach the archive. And also if you don't know the solution please be quite and try to concentrate on your own work. Thanks Pritesh -----Original Message----- From: Scot P. Floess [mailto:floess@mindspring.com] Sent: Thursday, April 27, 2006 11:31 PM To: Ant Users List Subject: Re: Converting a shell script part to ant target I concur wholeheartedly. The online manuals are pretty good. Keep in mind when reading them - ant is much more than just a build tool...it can certainly be used as a scripting language. Using ant contrib helps too :) Anderson, Rob (Global Trade) wrote: > Please read the manual... > > http://ant.apache.org/manual/index.html > > You may also benefit from the following... > > http://www.catb.org/~esr/faqs/smart-questions.html > > -Rob A > > >> -----Original Message----- >> From: pritesh.saharey@wipro.com [mailto:pritesh.saharey@wipro.com] >> Sent: Thursday, April 27, 2006 2:48 AM >> To: user@ant.apache.org >> Subject: Converting a shell script part to ant target >> >> >> Hi, >> 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'' ] >> then >> status=Pass >> else >> status=Fail >> fi >> >> >> 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" >> >>>> /usr/local/mail.txt >>>> >> //---------------------------------------------- >> >> >> I will be thankful to you. >> >> >> Regards >> Pritesh >> >> >> >> >> >> >> >> >> >> +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. >> >> >> www.wipro.com >> >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org > > > -- Scot P. Floess 27 Lake Royale Louisburg, NC 27549 252-478-8087 (Home) 919-754-4592 (Work) Chief Architect JPlate http://sourceforge.net/projects/jplate Chief Architect JavaPIM http://sourceforge.net/projects/javapim 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. www.wipro.com --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org --=_alternative 001843A78525715E_= Content-Type: text/html; charset="US-ASCII"
Speaking strictly for myself, I'll either just ignore queries like this or respond in the manner that Rob did.

The problem is the way you phased your question: I (and I'm sure many of the other experienced users) saw your question as an attempt to get us to do your work for you. You provided no details about what you've tried already, where you got stuck, etc. Things would have been very different if you had provided not only the shell script you're trying to convert, but also the build.xml that you'd started working on & a description of where you're stuck (and what you tried that didn't work to get you unstuck).

The experienced Ant users who hang out on this list do so because we want to try and help people; if we didn't care we wouldn't do it. Personally, monitoring the user list takes at least 30 minutes of my time everyday - that's time that I could easily be spending on other things but I give that time because once in a while I can answer a question that provides that one key piece of information that someone needed to get back on track. That said, this list is not your personal question answering service; it's rude & disrespectful to come in here, post a question such as the one you did & then be snarky to the people who have given you the pointers you seem to need to get started.

Bottom line: read the smart questions FAQ again & come back once you're tried to solve this problem yourself. We'll be more then happy to _HELP_ your figure out a specific problem (as opposed to just doing it all for you).

JEC
____________________________________________________________________________________________
Jeffrey E. (Jeff) Care
IBM WebSphere Application Server Development
WAS Pyxis Lead Release Engineer
WebSphere Mosiac
WebSphere Brandmark




<pritesh.saharey@wipro.com>

04/27/2006 11:33 PM
Please respond to
"Ant Users List" <user@ant.apache.org>

To
<user@ant.apache.org>, <floess@mindspring.com>
cc
Subject
RE: Converting a shell script part to ant target






Thanks Guys for your nice support and suggestions I will see how can I
get benefited from all the URL's you people have provided instead of
giving solutions.
And I also know the basics of before asking questions in forum that one
should try to reach the archive.
And also if you don't know the solution please be quite and try to
concentrate on your own work.

Thanks

Pritesh


-----Original Message-----
From: Scot P. Floess [mailto:floess@mindspring.com]

Sent: Thursday, April 27, 2006 11:31 PM
To: Ant Users List
Subject: Re: Converting a shell script part to ant target

I concur wholeheartedly.  The online manuals are pretty good.  Keep in

mind when reading them - ant is much more than just a build tool...it

can certainly be used as a scripting language.  Using ant contrib helps

too :)

Anderson, Rob (Global Trade) wrote:
> Please read the manual...
>
> http://ant.apache.org/manual/index.html

>
> You may also benefit from the following...
>
> http://www.catb.org/~esr/faqs/smart-questions.html
>
> -Rob A
>
>  

>> -----Original Message-----
>> From: pritesh.saharey@wipro.com [mailto:pritesh.saharey@wipro.com]

>> Sent: Thursday, April 27, 2006 2:48 AM
>> To: user@ant.apache.org
>> Subject: Converting a shell script part to ant target
>>
>>
>> Hi,
>>     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'' ]
>> then
>> status=Pass
>> else
>> status=Fail
>> fi
>>
>>
>> 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"
>>    

>>>> /usr/local/mail.txt
>>>>        

>> //----------------------------------------------
>>
>>
>> I will be thankful to you.
>>
>>
>> Regards
>> Pritesh
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> +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.
>>
>>
>> www.wipro.com
>>
>>    

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


--

Scot P. Floess
27 Lake Royale
Louisburg, NC  27549

252-478-8087 (Home)
919-754-4592 (Work)

Chief Architect JPlate  http://sourceforge.net/projects/jplate
Chief Architect JavaPIM http://sourceforge.net/projects/javapim



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.


www.wipro.com

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


--=_alternative 001843A78525715E_=-- --=_related 001843A58525715E_=--