Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 86423 invoked from network); 19 Mar 2004 15:48:02 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 19 Mar 2004 15:48:02 -0000 Received: (qmail 73002 invoked by uid 500); 19 Mar 2004 15:47:43 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 72863 invoked by uid 500); 19 Mar 2004 15:47:42 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 72806 invoked from network); 19 Mar 2004 15:47:42 -0000 Received: from unknown (HELO besec550.swift.com) (195.99.94.5) by daedalus.apache.org with SMTP; 19 Mar 2004 15:47:41 -0000 Received: by besec550.swift.com with ESMTP id i2JFjY3Q019448 for ; Fri, 19 Mar 2004 15:45:35 GMT Date: Fri, 19 Mar 2004 16:47:36 +0100 From: RADEMAKERS Tanguy Subject: Re: REPOST: problem with character set when sending junit testrep ort via mail In-reply-to: <40F7DCE7F3CED611BD480002A5093514026AEF0B@sevmex01.barco.com> To: Ant Users List Message-id: <405B1618.9040304@swift.com> Organization: S.W.I.F.T. sc MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=us-ascii Content-transfer-encoding: 7BIT X-Accept-Language: en-us, en User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040113 References: <40F7DCE7F3CED611BD480002A5093514026AEF0B@sevmex01.barco.com> X-MASF: 0.0 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Well, i guess it *might* be possible by using a combo of and writing a custom Deblauwe, Wim wrote: >Hi, > >I changed the mail task to attach the html file, not display it in the >message body. This seems to work fine. I will re-try the other solution if >we where to upgrade to a new ant version. > >What I'd like to do is set the number of failures in the message, but I >don't suppose the junit task sets such a property? >I would then do this: > > > results in the attached html"> > ... > > >Is it possible? > >-----Original Message----- >From: RADEMAKERS Tanguy [mailto:tanguy.rademakers@swift.com] >Sent: vrijdag 19 maart 2004 13:38 >To: Ant Users List >Subject: Re: REPOST: problem with character set when sending junit >testrep ort via mail > > >Wim, > >1) What differs between the times when it works, and the time when it >doesn't work (other than the fact that the mail works..., obviousely)? >Does it work when all tests pass and fail when they fail, or is it one >specific test failing that causes the probem? What happens when you mail >the report from the disk using your mail client? > >2) Don't suppose there's any way you could upgrade your version of ant. >1.5.4 supports the encoding attribute of mail.... > >/t > >Deblauwe, Wim wrote: > > > >>Hi Tanguy, >> >>I'm setting the messagemimetype, not the encoding. The encoding can only be >>set in versions of ant higher then the one I'm using (I am using 1.5.3). >> >> >The > > >>strange thing is that is sometimes works, and other times doesn't work. >> >>Anyway, this is part of my ant file: >> >> >> >failureProperty="failure" dir="${basedir}" haltonerror="no" >>haltonfailure="no"> >> >> >> >> >> >location="${basedir}\lib\log4j.jar"/> >> >location="${basedir}\lib\jdom.jar"/> >> >location="${basedir}\lib\dnsjava-1.2.2.jar"/> >> >location="${basedir}\lib\activation.jar"/> >> >location="${basedir}\lib\mail.jar"/> >> >location="${basedir}\lib\classes.jar"/> >> >location="${basedir}\lib\xdsiii.jar"/> >> >location="${basedir}\lib\xmlrpc-1.1.jar"/> >> >location="${basedir}\jre\lib\comm.jar"/> >> >> >> >haltonerror="no" haltonfailure="no" if="all"> >> >> >name="**/testbench/*Test.class"/> >> >name="com/barco/bds/is/colmeasdev/testbench/XRiteDTP92Test.class"/> >> >name="com/barco/bds/is/dinvw/testbench/*Test.class"/> >> >> >name="com/barco/bds/is/timedtasks/testbench/TimedTaskSerializationTest.clas >> >> >s > > >>"/> >> >name="com/barco/bds/is/util/testbench/MethodToolTest.class"/> >> >> >name="com/barco/bds/is/util/DefaultMessageHandlerTest.class"/> >> >> >> >> >haltonerror="no" haltonfailure="no" unless="all"> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> > >>messageFile="${report.dir}\junit-noframes.html" >> tolist="xxx@barco.com" >> cclist="yyy@barco.com" >> subject="JUnit Test Results - NewDev >>branch: ${TODAY}" >> mailhost="smtp.barco.com" >> from="JUnitTest@barco.com"> >> >> >> >> >>-----Original Message----- >>From: RADEMAKERS Tanguy [mailto:tanguy.rademakers@swift.com] >>Sent: vrijdag 19 maart 2004 13:10 >>To: Ant Users List >>Subject: Re: REPOST: problem with character set when sending junit >>testreport via mail >> >> >>Dag Wim, >> >>Could you post your , and tasks from your >>build.xml? >>Are you setting the messagemimetype and/or encoding attributes on ? >> >>/t >> >>Deblauwe, Wim wrote: >> >> >> >> >> >>>I haven't seen any reply yet to my question, although this list is very >>>active. >>> >>>Isn't there anyone who can help me? >>> >>>-----Original Message----- >>>From: Deblauwe, Wim [mailto:wim.deblauwe@barco.com] >>>Sent: dinsdag 16 maart 2004 17:33 >>>To: 'user@ant.apache.org' >>>Subject: problem with character set when sending junit testreport via >>>mail >>> >>> >>>Hi, >>> >>>I'm using ant 1.5.3 and have a problem when I send a mail containing the >>>report of the junit tests. In stead of the mail, I get a mail with the >>>following message in it: >>> >>>"This message uses a character set that is not supported by the Internet >>>Service. To view the original message content, open the attached message. >>> >>> >>> >>> >>If >> >> >> >> >>>the text doesn't display correctly, save the attachment to disk, and then >>>open it using a viewer that can display the original character set. " >>> >>>The mail has an attachment message.txt with this: >>> >>>Received: from kuuvir04.barco.com ([150.158.252.11]) by kuurex03.barco.com >>>with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2657.72) >>>id GZN8M8CY; Tue, 16 Mar 2004 16:13:12 +0100 >>>Received: From BVWCLTJ8 ([150.158.203.114]) by kuuvir04.barco.com >>> >>> >>> >>> >>(WebShield >> >> >> >> >>>SMTP v4.5 MR1a); >>>id 1079449983947; Tue, 16 Mar 2004 16:13:03 +0100 >>>Message-ID: < 24478976.1079449990515.JavaMail.WIMD@BVWCLTJ8 >>> > >>>Date: Tue, 16 Mar 2004 15:13:09 +0000 >>>From: JUnitTest@barco.com >>>To: xxx @barco.com >>>Subject: JUnit Test Results - NewDev branch: March 16 2004 >>>Cc: yyy@barco.com >>>Mime-Version: 1.0 >>>Content-Type: multipart/mixed; >>>boundary="----=_Part_0_20089978.1079449989265" >>> >>>------=_Part_0_20089978.1079449989265 >>>Content-Type: text/html; charset=Cp1252 >>>Content-Transfer-Encoding: quoted-printable >>> >>> >>>I'm using the junitreport task to create the report and the mail task to >>>send email. >>> >>>somebody have clue what might case this? >>> >>>kind regards, >>> >>>Wim >>> >>>Ing. Wim Deblauwe >>>Software Development Engineer >>> >>>BarcoView - Medical Imaging Systems >>>Theodoor Sevenslaan 106 >>>B-8500 Kortrijk, Belgium >>>Tel. +32 56 233 985 Fax +32 56 233 457 >>>www.barco.com >>>wim.deblauwe@barco.com >>> >>>- - - - - - - - DISCLAIMER - - - - - - - - >>>Unless indicated otherwise, the information contained in this message is >>>privileged and confidential, and is intended only for the use of the >>>addressee(s) named above and others who have been specifically authorized >>> >>> >>> >>> >>to >> >> >> >> >>>receive it. If you are not the intended recipient, you are hereby notified >>>that any dissemination, distribution or copying of this message and/or >>>attachments is strictly prohibited. The company accepts no liability for >>> >>> >>> >>> >>any >> >> >> >> >>>damage caused by any virus transmitted by this email. Furthermore, the >>>company does not warrant a proper and complete transmission of this >>>information, nor does it accept liability for any delays. If you have >>>received this message in error, please contact the sender and delete the >>>message. Thank you. >>>- - - - - - - - DISCLAIMER - - - - - - - - >>>Unless indicated otherwise, the information contained in this message is >>>privileged and confidential, and is intended only for the use of the >>>addressee(s) named above and others who have been specifically authorized >>> >>> >>> >>> >>to >> >> >> >> >>>receive it. If you are not the intended recipient, you are hereby notified >>>that any dissemination, distribution or copying of this message and/or >>>attachments is strictly prohibited. The company accepts no liability for >>> >>> >>> >>> >>any >> >> >> >> >>>damage caused by any virus transmitted by this email. Furthermore, the >>>company does not warrant a proper and complete transmission of this >>>information, nor does it accept liability for any delays. If you have >>>received this message in error, please contact the sender and delete the >>>message. Thank you. >>> >>> >>> >>> >>> >>> >>> >>--------------------------------------------------------------------- >>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org >>For additional commands, e-mail: user-help@ant.apache.org >>- - - - - - - - DISCLAIMER - - - - - - - - >>Unless indicated otherwise, the information contained in this message is >>privileged and confidential, and is intended only for the use of the >>addressee(s) named above and others who have been specifically authorized >> >> >to > > >>receive it. If you are not the intended recipient, you are hereby notified >>that any dissemination, distribution or copying of this message and/or >>attachments is strictly prohibited. The company accepts no liability for >> >> >any > > >>damage caused by any virus transmitted by this email. Furthermore, the >>company does not warrant a proper and complete transmission of this >>information, nor does it accept liability for any delays. If you have >>received this message in error, please contact the sender and delete the >>message. Thank you. >> >> >> >> >> > >--------------------------------------------------------------------- >To unsubscribe, e-mail: user-unsubscribe@ant.apache.org >For additional commands, e-mail: user-help@ant.apache.org >- - - - - - - - DISCLAIMER - - - - - - - - >Unless indicated otherwise, the information contained in this message is >privileged and confidential, and is intended only for the use of the >addressee(s) named above and others who have been specifically authorized to >receive it. If you are not the intended recipient, you are hereby notified >that any dissemination, distribution or copying of this message and/or >attachments is strictly prohibited. The company accepts no liability for any >damage caused by any virus transmitted by this email. Furthermore, the >company does not warrant a proper and complete transmission of this >information, nor does it accept liability for any delays. If you have >received this message in error, please contact the sender and delete the >message. Thank you. > > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org