Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Ant build failed: Reference application not found

 
Leandro Coutinho
Ranch Hand
Posts: 423
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi. I'm following this tutorial: http://ant.apache.org/manual/tutorial-HelloWorldWithAnt.html

The problem I get when integrating with JUnit.


ant works, but ant junit doesn't work.
The test class:

Could you help me? Thank you!
 
Leandro Coutinho
Ranch Hand
Posts: 423
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I saw an example here: http://www.roseindia.net/tutorials/ant/ant-and-junit.shtml
Then was able to fix this problem.
I created:
 
Roland Young
Greenhorn
Posts: 1
Eclipse IDE Mac OS X Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm posting this reply because this topic was the top hit in my Google search. I have found what may be a better solution.

The problem seems to be that the refid at line 14 in your original example references a definition (at line 05) that is nested inside another target (the run target).
It seems reasonable that Ant won't look for the definition in that scope.

My solution was to move the definition to the project scope (as a peer of the path definition that does work) and replace the original definition with a reference:


I hope this may help someone else who runs into the same issue.
 
Alex Dan Dodu
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Thank you both Leandro and Roland!
It really did help someone else who ran into the same issue...

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic