The Artima Developer Community
Sponsored Link

Java Buzz Forum
Another work-around for Ant + JUnit classpath problems

1 reply on 1 page. Most recent reply: Aug 15, 2007 8:30 AM by Mike Kaufman

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Mike Kaufman

Posts: 125
Nickname: mkaufman
Registered: Jan, 2007

Mike Kaufman started programming in 1973 and is still here.
Another work-around for Ant + JUnit classpath problems Posted: Aug 14, 2007 9:49 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Mike Kaufman.
Original Post: Another work-around for Ant + JUnit classpath problems
Feed Title: Closing Braces
Feed URL: https://closingbraces.net/feed/
Feed Description: After-hours notes and opinions on Java and system development.
Latest Java Buzz Posts
Latest Java Buzz Posts by Mike Kaufman
Latest Posts From Closing Braces

Advertisement
Using JUnit in Ant build scripts can be prone to classpath problems, as specifying junit.jar via the junit task's classpath results in it being loaded by a different classloader than that which loads the Ant libraries. In addition to the solutions given in the Ant documentation and FAQ, another possible approach is to include all of the Ant libraries into the junit task's classpath.

Read: Another work-around for Ant + JUnit classpath problems


Mike Kaufman

Posts: 125
Nickname: mkaufman
Registered: Jan, 2007

Re: Another work-around for Ant + JUnit classpath problems Posted: Aug 15, 2007 8:30 AM
Reply to this message Reply
Sorry, that was all a silly mistake on my part - the real fix is to ensure that "includeAntRuntime" isn't turned off. Have replaced the article with an explanation.

Flat View: This topic has 1 reply on 1 page
Topic: rite Custom Tags Libraries: Simple and Classic, Part II Previous Topic   Next Topic Topic: Unit Tests and Gambling

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use