ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcamp...@webcpd.com
Subject RE: MailLogger
Date Mon, 19 Jan 2004 18:48:24 GMT
Kajsa,

I'm invoking ANT with:

ant -logger org.apache.tools.ant.listener.MailLogger -
DMailLogger.properties.file=MailLogger.properties

I have a target init trying to print out the property
MailLogger.properties.file:

<target name="init" description="Cria diretórios para build e distribuição">
	<echo message="${MailLogger.properties.file}" />
	<tstamp/>
	<mkdir dir="${buildDir}" />
	<mkdir dir="${distDir}" />
	<mkdir dir="${buildDirFramework}" />
</target>

This is my output:

init:
     [echo] ${MailLogger.properties.file}

I don't know if I'm using <echo> in a wrong way or if the property has not
been set.

Regards,
Marco Campelo

Anderson, Kajsa (Kajsa.Anderson@thomson.com) escreveu:
>
>Marco,
>
>Have you tried ing the relavent properties to make sure they're being
>set correctly?
>
>Kajsa Anderson
>
>-----Original Message-----
>From: mcampelo@webcpd.com [mailto:mcampelo@webcpd.com]
>Sent: Monday, January 19, 2004 11:37 AM
>To: Ant Users List
>Subject: RE: MailLogger
>
>
>Hello Kajsa,
>
>thanks for your answer.
>
>I invoked Ant as you do:
>
>ant -logger org.apache.tools.ant.listener.MailLogger
>-DMailLogger.properties.file=MailLogger.properties
>
>Build run sucessfully with no email messages sent! :(
>
>PS: My ANT version is 1.6
>
>Regards,
>Marco Campelo
>
>Anderson, Kajsa (Kajsa.Anderson@thomson.com) escreveu:
>>
>>Here's how I invoke Ant using MailLogger...
>>
>>ant -logger org.apache.tools.ant.listener.MailLogger
>>-DMailLogger.properties.file=maillogger.properties
>>
>>Perhaps MailLogger.properties.file isn't set in your build?
>>
>>HTH
>>
>>Kajsa Anderson
>>
>>-----Original Message-----
>>From: mcampelo@webcpd.com [mailto:mcampelo@webcpd.com]
>>Sent: Monday, January 19, 2004 11:02 AM
>>To: Ant Users List
>>Subject: RE: MailLogger
>>
>>
>>Luis,
>>
>>thanks for your answer.
>>
>>Unfortunately, it's still not working!
>>
>>I created a file named MailLogger.properties with the following content:
>>
>>-- x --
>>MailLogger.mailhost=10.10.10.10
>>MailLogger.from=marco.campelo@vivo.com.br
>>MailLogger.replyto=marco.campelo@vivo.com.br
>>MailLogger.failure.to=marco.campelo@vivo.com.br
>>MailLogger.success.to=marco.campelo@vivo.com.br
>>MailLogger.failure.subject=Warning: Integration build has failed
>>MailLogger.success.subject=Info: Integration build has succeed
>>-- x --
>>
>>This file is in the same directory of build.xml.
>>
>>So I called ant -verbose -logger org.apache.tools.ant.listener.MailLogger.
>>
>>I'm trying to use the option -verbose but I can't see any debug information
>>during the execution! What's wrong?
>>
>>C:\eclipse\workspace\ServiceRouter>ant -verbose -logger
>>org.apache.tools.ant.listener.MailLogger
>>Buildfile: build.xml
>>
>>init:
>>
>>compileFramework:
>>
>>compileServiceRouter:
>>
>>dist:
>>
>>buildServiceRouter:
>>
>>BUILD SUCCESSFUL
>>Total time: 8 seconds
>>
>>Regards,
>>Marco Campelo
>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org
>


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


Mime
View raw message