Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Ant/JUnit conditional

 
Jeff Storey
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, is there a way I can use a conditional (specifically an IF statement) in ant. I want to send one email subject if the junit failure property has been set, and another email subject if the test has passed.
 
Jan Cumps
Bartender
Posts: 2584
11
C++ Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, Ant-Contrib.

Today, there was talk in ant develop mailing list to add conditionals to the <sequential> task.

Regards, Jan
 
Carol Enderlin
drifter
Ranch Hand
Posts: 1364
 
Jan Cumps
Bartender
Posts: 2584
11
C++ Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
[Edit: this was a reply to a message that has vanished from the tread.]


It should.

From the doco:
I'll give it a try when I find some time.

Regards, Jan
[ March 08, 2007: Message edited by: Jan Cumps ]
 
Jeff Storey
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got it working. I realized that arg1 is the property I'm checking and arg2 is the value of that property.

I appreciate the help.

Jeff
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic