Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1743
  • 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

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