Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 75849 invoked from network); 20 Sep 2006 10:04:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 20 Sep 2006 10:04:39 -0000 Received: (qmail 19068 invoked by uid 500); 20 Sep 2006 10:04:32 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 19038 invoked by uid 500); 20 Sep 2006 10:04:32 -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 19027 invoked by uid 99); 20 Sep 2006 10:04:32 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Sep 2006 03:04:32 -0700 X-ASF-Spam-Status: No, hits=0.2 required=5.0 tests=NO_REAL_NAME Received: from ([202.54.189.6:21352] helo=smtp.polaris.co.in) by idunn.apache.osuosl.org (ecelerity 2.1 r(10620)) with ESMTP id 5C/E2-00532-81211154 for ; Wed, 20 Sep 2006 03:04:11 -0700 Received: from unknown (HELO smtp.polaris.co.in) ([172.20.102.37]) by smtp.polaris.co.in with ESMTP; 20 Sep 2006 15:35:04 +0530 X-IronPort-AV: i="4.09,190,1157308200"; d="scan'208"; a="7667547:sNHT35754747" Subject: RE: HTML tags inside ANT..? To: "Ant Users List" X-Mailer: Lotus Notes Release 5.0.4 June 8, 2000 Message-ID: From: anandsrider.d@polaris.co.in Date: Wed, 20 Sep 2006 15:34:02 +0530 X-MIMETrack: Serialize by Router on smtp.polaris.co.in/Polaris(Release 6.5.4FP1|June 19, 2005) at 09/20/2006 03:34:04 PM MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Jan/David.... Thanx for all ur support. Will try any one way and get back to u on tht. David... I understood ur code.As u told, Really a bugging thing to handle tht way.... -- anand = =20 "David Corley = =20 \(AT/LMI\)" To: "Ant Users List" =20 Subject: RE: HTML tags insid= e ANT..? =20 = =20 09/20/2006 02:24 = =20 PM = =20 Please respond = =20 to "Ant Users = =20 List" = =20 = =20 = =20 I really should, shouldn't I! It was something that until you said it had slipped through my mind. Thanks for reminding me! /Dave -----Original Message----- From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de] Sent: 20 September 2006 10:39 To: user@ant.apache.org Subject: AW: HTML tags inside ANT..? Have you tried using a filtersfile? Jan >-----Urspr=FCngliche Nachricht----- >Von: David Corley (AT/LMI) [mailto:david.corley@ericsson.com] >Gesendet: Mittwoch, 20. September 2006 10:17 >An: anandsrider.d@polaris.co.in; Ant Users List >Betreff: RE: HTML tags inside ANT..? > >Whoops. The last mail was empty. Sorry about that. > As for composing the HTML inside Ant, I've done that too, but be >warned it ain't pretty! > What I did was have a standard html file that I used as a mail >template. Within that html file, I had several filter keys (such as >@date@, @username@, etc). > So before I sent the build mail, I copied the html file from the >template to some temp directory, running a filterset on it as the copy >took place, thereby replacing the filter keys with html code (that I >had defined in build.xml). > The real pain in the ass is having to use a lot of escape characters >so that Ant doesn't think your markup is part of the build script. > For instance the code below replaces filter keys in my template html >code with links to documents created as part of the build process. > > > > > href=3D"../OverallPMD/QR3ONLY-PMD-OVERALL.html" >target=3D"bottomFrame">QRANK3"/> > href=3D"../OverallPMD/QR4ONLY-PMD-OVERALL.html" >target=3D"bottomFrame">QRANK4"/> > href=3D"../OverallPMD/QR5ONLY-PMD-OVERALL.html" >target=3D"bottomFrame">QRANK5"/> > href=3D"../OverallPMD/QR6ONLY-PMD-OVERALL.html" >target=3D"bottomFrame">QRANK6"/> > href=3D"../OverallPMD/QR7ONLY-PMD-OVERALL.html" >target=3D"bottomFrame">QRANK7"/> > href=3D"../OverallPMD/QR8ONLY-PMD-OVERALL.html" >target=3D"bottomFrame">QRANK8"/> > > > >The corresponding html template is: > >"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> > > >/> Untitled Document > > > > > > > > > > > > >
OVERALL:
class=3D"style1">@OVERQR3@
class=3D"style1">@OVERQR4@
class=3D"style1">@OVERQR5@
class=3D"style1">@OVERQR6@
class=3D"style1">@OVERQR7@
class=3D"style1">@OVERQR8@
> > > >Now there >See how messy that can get? Now it works well, but you have to have the >patience of a saint to work through it all. >Maybe I still don't understand what you want to do, but I think you're >at least getting a better picture of what CAN be done. > >/Dave > >-----Original Message----- >From: anandsrider.d@polaris.co.in [mailto:anandsrider.d@polaris.co.in] >Sent: 20 September 2006 09:50 >To: Ant Users List >Subject: RE: HTML tags inside ANT..? > > >Jan/David, > >Thanx for ur supportive suggestions. > >Real scenario here is .... > >Once the build is thru' am checking for Build Success/Failure in a >shell script . Depending on tht the shell script call seperate mail >tasks inside same build.xml > >for Success/Failure.Presently I want to include some HTML tags inside >those mail tasks to get reflected in the mail. ( Now mail generation is >done >successfully) >I want to happen everything in runtime. > >Jan, i will try the way u suggest. But I prefer tht to be inside by >build file.... > >---- anand > > > > > > > > "David Corley > > > \(AT/LMI\)" To: "Ant >Users List" > > anandsrider.d/Polaris) > > icsson.com> Subject: RE: >HTML tags inside ANT..? > > > > > 09/20/2006 12:47 > > > PM > > > Please respond > > > to "Ant Users > > > List" > > > > > > > > > > > > >I agree with Jan, > I've a setup pretty close to what you're looking for in >use at work. > But to do this you'll need to add the javamail and jaf >jars to the ant bootloader classpath... > Which you can do more or less as follows: > > ant -f build.xml -lib >/directory/containing/javamail.jar/ -lib /directory/containing/jaf.jar/ > > If you don't add the directories containing those two >jars, Ant won't be able to process MIME mail, and will send a UUE >encoded message instead, which will result in your mail showing the >HTML source code instead of the properly formatted content. > You can grab javamail here: > http://java.sun.com/products/javamail/downloads/index.html > And you can grab JAF (JavaBeans Activation >Framework) here: > >http://java.sun.com/products/javabeans/jaf/downloads/index.html > >Hope this helps, >/Dave > > > >-----Original Message----- >From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de] >Sent: 20 September 2006 08:08 >To: user@ant.apache.org >Subject: AW: HTML tags inside ANT..? > > > > >I would use an external message-file, because html (message) inside xml >(buildfile) is very hard to maintain ... > > >Jan > >>-----Urspr=FCngliche Nachricht----- >>Von: anandsrider.d@polaris.co.in [mailto:anandsrider.d@polaris.co.in] >>Gesendet: Mittwoch, 20. September 2006 07:14 >>An: user@ant.apache.org >>Betreff: HTML tags inside ANT..? >> >> >>Hi, >> >>Presently am using ant 1.5.4 version for building java application. I >>used to generate mails to Lotus Notes server upon either >build success >>or failure. >> >>Presently the mail generated will have some texts and attached error >>log file. I want to use HTML tags inside ant and expexting the >>generated mail should >> >>looks like a HTML page. >> >>Any body have idea abt this, which will be helpful >> >>rgds, >>anand >> >>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 >> >>--------------------------------------------------------------------- >>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 > > >--------------------------------------------------------------------- >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 > >--------------------------------------------------------------------- >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 --------------------------------------------------------------------- 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 sen= t 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 th= is mail immediately. You are also hereby notified that any use, any form of= reproduction, dissemination, copying, disclosure, modification, distributi= on and/or publication of this e-mail message, contents or its attachment ot= her than by its intended recipient/s is strictly prohibited. Visit us at http://www.polaris.co.in --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org