ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From PASSIGNAT STEPHANE <STEPHANE.PASSIG...@sgam.com>
Subject RE: mail target
Date Thu, 06 Jun 2002 17:37:59 GMT
Thank you very much.

Stephane


-----Message d'origine-----
De : Hal Hildebrand (web) [mailto:Hal.Hildebrand@hellblazer.com]
Envoyé : jeudi 6 juin 2002 19:18
À : Ant Users List
Objet : Re: mail target


The problem is that the EmailTask is not setting the "project" of the
Message.

I forgot to submit this as a bug to Ant, but attached is the fixed task.

Cheers.

----- Original Message -----
From: "PASSIGNAT STEPHANE" <STEPHANE.PASSIGNAT@sgam.com>

> Hello,
>
> I've a problem with the target mail.
>
> java.lang.NullPointerException
>         at
org.apache.tools.ant.taskdefs.email.Message.print(Message.java)
>         at
> org.apache.tools.ant.taskdefs.email.PlainMailer.send(PlainMailer.java)
>         at
> org.apache.tools.ant.taskdefs.email.EmailTask.execute(EmailTask.java)
>         at org.apache.tools.ant.Task.perform(Task.java)
>         at org.apache.tools.ant.Target.execute(Target.java)
>         at org.apache.tools.ant.Target.performTasks(Target.java)
>         at org.apache.tools.ant.Project.executeTarget(Project.java)
>         at org.apache.tools.ant.Project.executeTargets(Project.java)
>         at org.apache.tools.ant.Main.runBuild(Main.java)
>         at org.apache.tools.ant.Main.start(Main.java)
>         at org.apache.tools.ant.Main.main(Main.java)
>
> ant code :
>
> <target name="mailme" >
> <mail from="${mail_from}" mailhost="${mailhost}"
> tolist="${listemail}" messagemimetype="text/plain" encoding="plain"
> subject="[${revision}] ${project}"
> message="pi=3.14"/>
> </target>
>
>
> does anybody knows what to do ?
>
> Stephane
>
>
> --
> To unsubscribe, e-mail:
<mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:ant-user-help@jakarta.apache.org>
>
>
>

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


Mime
View raw message