Yet another Ant + JUnit classpath problem

前端 未结 3 1753
清酒与你
清酒与你 2021-01-13 01:39

I\'m developing an Eclipse SWT application using Eclipse. There are also some JUnit 4 tests, which test some DAO\'s. But when I try to run the tests via an ant build, all of

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-13 01:53

    I was getting this only when using the 'fork=true' option to the junit task. It was happening because my ANT_HOME had '..' in it (e.g. '/3rdparth/jboss/jboss-5/../tools'). Once I reduced that path, the 'multiple versions of ant' warning went away.

提交回复
热议问题