ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard, Troy" <Troy.Rich...@blackhillscorp.com>
Subject RE: Problem with Ant and MailLogger
Date Tue, 12 May 2009 20:16:20 GMT
I do have a project properties file and it has the following defined.

MailLogger.mailhost = mail.myserver.com
MailLogger.from = trichard@blackhillscorp.com
MailLogger.failure.to = trichard@blackhillscorp.com
MailLogger.success.to = trichard@blackhillscorp.com
MailLogger.failure.subject = ${app.name} Build Failure
MailLogger.success.subject = ${app.name} Build Success

I have used this ant script to build in a weblogic environment, but when I change the JAVA_HOME
location to use websphere it fails.  However if I use the JAVA_HOME location for weblogic
it works just fine.  So I'm not sure if it has something to do with the java environment or
if it is ANT.

Thanks
Troy

-----Original Message-----
From: Cole, Derek E [mailto:derek.e.cole@lmco.com]
Sent: Tuesday, May 12, 2009 2:12 PM
To: Ant Users List
Subject: RE: Problem with Ant and MailLogger

I am only slightly familiar with this, but don't you have to have a
MailLogger.properties file defined and passed to the mail logger with
-DMailLogger.properties.file=<yourfile>

-----Original Message-----
From: Richard, Troy [mailto:Troy.Richard@blackhillscorp.com]
Sent: Tuesday, May 12, 2009 4:09 PM
To: user@ant.apache.org
Subject: Problem with Ant and MailLogger

I'm getting the following error message:

MailLogger failed to send e-mail!
java.io.IOException: Unexpected reply to command: HELO L00113: 451 4.7.0
Timeout
 waiting for client input
        at org.apache.tools.mail.MailMessage.send(MailMessage.java:445)
        at
org.apache.tools.mail.MailMessage.sendHelo(MailMessage.java:411)
        at
org.apache.tools.mail.MailMessage.<init>(MailMessage.java:176)
        at
org.apache.tools.ant.listener.MailLogger.sendMail(MailLogger.java:273
)
        at
org.apache.tools.ant.listener.MailLogger.buildFinished(MailLogger.jav
a:141)
        at
org.apache.tools.ant.Project.fireBuildFinished(Project.java:2037)
        at org.apache.tools.ant.Main.runBuild(Main.java:778)
        at org.apache.tools.ant.Main.startAnt(Main.java:217)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)

I cannot seem to figure out where my problem is.  I'm trying to build a
java project using the Websphere java environment.  Here is the command
I'm trying to execute.

call %ANT_HOME%/bin/ant.bat -buildfile SampleWebProject.xml -logger
org.apache.tools.ant.listener.MailLogger -DrunFromMain=true -verbose
buildTest

Where %ANT_HOME% = c:\apache-ant-1.7.1

Any help would be appreciated.

Thanks
Troy

Troy B. Richard
Applications Manager for Exploration & Production
Black Hills Corporation
o: 303.566.3360
c: 303.518.6483
e:
troy.richard@blackhillscorp.com<mailto:troy.richard@blackhillscorp.com>


________________________________
This electronic message transmission contains information from Black
Hills Corporation, its affiliate or subsidiary, which may be
confidential or privileged. The information is intended to be for the
use of the individual or entity named above. If you are not the intended
recipient, be aware the disclosure, copying, distribution or use of the
contents of this information is prohibited. If you received this
electronic transmission in error, please reply to sender immediately;
then delete this message without copying it or further reading.

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


This electronic message transmission contains information from Black Hills Corporation, its
affiliate or subsidiary, which may be confidential or privileged. The information is intended
to be for the use of the individual or entity named above. If you are not the intended recipient,
be aware the disclosure, copying, distribution or use of the contents of this information
is prohibited. If you received this electronic transmission in error, please reply to sender
immediately; then delete this message without copying it or further reading.

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


Mime
View raw message