You can do this by configuring the maillogger in your startscript:
ant build_ant.xml -logger org.apache.tools.ant.listener.MailLogger
Then you have to set the following properties
MailLogger.mailhost=
MailLogger.from=
MailLogger.failure.subject=failed
MailLogger.success.subject=successfull
[EMAI
I tried that to no avail. I got this as my build script:
antRunAsync I copied the way it was.
and TestCommand is:
#!/bin/sh
ssh -t [EMAIL PROTECTED] sudo /sbin/services httpd restart
Not sure what's wrong here.. I tried with nohup set to true and false and my
log
One solution is to use ant-contrib's task:
1) Direct usage:
2) If you need the failure message in the mail (in combination with
ant-contrib's ):
I need to be able to trigger running a specific ant target when the build
succeeds, and another one when it fails. This will be used to send out an
email indicating the status of the build.
I have done this in the past in nant (.NET) which has a built in property
called nant.onsuccess and one ca
I went through this type of thing back in January. Maybe my findings
can help you out, the full thread is here:
http://marc.info/?l=ant-user&m=120128316829325&w=2
-Original Message-
From: mindspin311 [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 22, 2008 11:08 AM
To: user@ant.apache.org
[exec] Pseudo-terminal will not be allocated because stdin is not a terminal.
Doesn't work. Tried it to run a remote command without -t for something like
'ls' and it works fine. It seems to have a problem with '-t'
I thought exec was exactly like working on a command line.
ruel
why can't you just do an exec with the command ssh -t .?
-Original Message-
From: mindspin311 [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 22, 2008 10:37 AM
To: user@ant.apache.org
Subject: sshexec (running remote commands with sudo) forced psuedo-tty
allocation
I'm trying to mimi
I'm trying to mimic this command in ant:
[EMAIL PROTECTED]ssh -t [EMAIL PROTECTED] sudo
/sbin/service httpd restart
build has password-less ssh access to deploy's accounts. Deploy also has
password-less sudoers access to run any root owned apps. This is the only
way I can do this without bein
By now I did a bsh method
void copyProperty(String src, String dest) {
String srcValue = project.getProperty(src);
project.setProperty(dest, srcValue);
}
and I call it with copyProperty("${car}", "car") so that I'm now able at
least to access to the value.
ste
Matt Benson wrote:
---
--- Matt Benson <[EMAIL PROTECTED]> wrote:
> You're in luck. Maybe. I tested the following:
>
>
> ${${foo}}
>
> and sure enough, it doesn't work. This is not so
> much
> because it's no doable as it is because Ant's
> property
> parsing mechanisms don't know any better than to
> match
>
Dominique Devienne wrote:
On Mon, Jul 21, 2008 at 9:59 AM, Dimitris Mouchritsas
<[EMAIL PROTECTED]
What do you think?
Why not simply
Property log4j.lib.dir must be set
Property log4j.jar must be set
etc...
And wrap this into a macro allowing to call as as ?
Only difference is that y
You're in luck. Maybe. I tested the following:
${${foo}}
and sure enough, it doesn't work. This is not so much
because it's no doable as it is because Ant's property
parsing mechanisms don't know any better than to match
the first encountered closing brace. Running from
Ant's svn trunk w
You can't do it with the stock Ant Contrib for loop...
I've written something that does just that...using Ant Contrib - but its
not a perfect solution. You could conceivably do so scripting...
Or, there is another project:
http://antxtras.sourceforge.net/AntXtras/download.html
I believe th
Hi all,
I have a property with name ${car}. Note that the name is not just
"car" but ${car}.
Using echoproperties I see:
[echoproperties] ant.version=Apache Ant version 1.6.5 compiled on June 2
2005
[echoproperties] ${car}=fiat
How to handle that property ? How to do something like:
sin
14 matches
Mail list logo