ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Corley \(AT/LMI\)" <>
Subject RE: HTML tags inside ANT..?
Date Wed, 20 Sep 2006 07:17:31 GMT
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:
	And you can grab JAF (JavaBeans Activation Framework) here:

Hope this helps,


-----Original Message-----
From: [] 
Sent: 20 September 2006 08:08
Subject: AW: HTML tags inside ANT..?

    <message src="message.html" mimetype="text/html"/> </mail>

I would use an external message-file, because html (message) inside xml (buildfile) is very
hard to maintain ... 


>-----Urspr√ľngliche Nachricht-----
>Von: []
>Gesendet: Mittwoch, 20. September 2006 07:14
>Betreff: HTML tags inside ANT..?
>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
>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
>To unsubscribe, e-mail: For additional 
>commands, e-mail:

To unsubscribe, e-mail: For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message