ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ivan Ivanov <>
Subject <loadproperties> issues
Date Fri, 17 Dec 2004 12:19:22 GMT
Dear Colleagues,

Today I noticed that our night build scripts have
stooped sending their emails with MailLogger and after
4 hours of debugging I found what is the problem. I
define MailLogger properties in
MailLogger.failure.subject=Build Failed for ${product}
MailLogger.success.subject=Build Succeeded for
${product} on ${FULLDATE}

The error was that the line
ends with a space:<Space_comes_here>.

Now I removed the wrong space and it works likes a
charm. Please note that if we place a space after 
it fails with
javax.mail.SendFailedException: Sending failed;
  nested exception is:
        class javax.mail.MessagingException: Unknown
SMTP host: ;
i.e. we can see the error. But if the space is after line, Ant send the email but to
wrong address.

I checked the documentation of <property file="...">
and <loadproperties> tasks but this behaviour is not
I would also suggest that we add a trim attribute (and
I am a volunteer for it) to <loadproperties> that will
trim the properties' values.

Regards Ivan

Do you Yahoo!? 
Send a seasonal email greeting and help others. Do

Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 

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

View raw message