ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "T Master" <tmas...@iknowledgeinc.com>
Subject Re: [antlist] How to install/configure JUnit task
Date Wed, 18 Jul 2001 23:01:35 GMT
Erik,

Running ant via command line using jdk1.2, the optional.jar tasks are being
loaded.
Even the junit.framework.TestCase  loads ok.  Until it attempts to use my
build target which utilises the <junit> task.

Are you using jdk1.2?  Or jdk1.3?

Anyone had a similar problem??

T Master

Project base dir set to: C:\dev\iknowledge\code
 +Target: init
   +Task: property
   +Task: property
   +Task: taskdef
Finding class junit.framework.TestCase
Finding class junit.framework.Assert
Class java.lang.Object loaded from system loader
Class junit.framework.Assert loaded from ant loader
Finding class junit.framework.Test
Class junit.framework.Test loaded from ant loader
Class junit.framework.TestCase loaded from ant loader
 +User task: junit     junit.framework.TestCase
 +Target: jtest
 +Target: jtrash
Build sequence for target `jtest' is [init, jtest]
Complete build sequence is [init, jtest, jtrash]

init:
Setting project property: app.name -> myapp
Setting project property: build.dir ->

jtest:

BUILD FAILED

c:\dev\iknowledge\code\build.xml:21: Could not create task of type: junit
due to
 java.lang.InstantiationException: junit/framework/TestCase
--- Nested Exception ---
java.lang.InstantiationException: junit/framework/TestCase
        at java.lang.Class.newInstance0(Native Method)
        at java.lang.Class.newInstance(Class.java:241)
        at org.apache.tools.ant.Project.createTask(Project.java:439)
        at
org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.jav


Mime
View raw message