How to call a target when another target fails in NAnt?

129 views Asked by At

I have two different tasks say A and B. If A fails I need to call B. How is it possible with NAnt.

1

There are 1 answers

0
Nilay Vishwakarma On BEST ANSWER

I found a way, (for any one who goes across the same issue)

<trycatch>
    <try>
        <call target="A" />
    </try>
    <catch>
        <call target="B" />
    </catch>
</trycatch>