• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1810
  • Last Modified:

Try Catch in ant scripts

Hello Experts,

I have an build.xml, i am running an target in which i have to configure the mails, when build gets failed or success the mail has to be sent to the user.

How will i handle this using try catch?

Thanks,
Shailesh
0
ShaileshShinde
Asked:
ShaileshShinde
2 Solutions
 
objectsCommented:
set a failureproperty
0
 
ShaileshShindeAuthor Commented:
Hello Expert,

Can you pls suggest how to impliment this for below target....

<target name="test"
    depends="expand_includes"/>

Thanks,
Shailesh
0
 
objectsCommented:
<target name="send_email" unless="build.failed">
0
 
CEHJCommented:
See "How do I send an email with the result of my build process?"  at  http://ant.apache.org/faq.html
0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now