Grokbase Groups Maven users May 2003
FAQ
Has someone been using JUnit automated testing with 1.0betav9. I cannot
get it to work. The plugin.jelly file of the test plugin contains the
following excerpt:

<taskdef name="junit"
classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTask"/>

It seems it cannot find the class JUnitTask. Is there something I can
check, has someone else solved this problem?

By the way I am running with jdk1.4 and ant-1.5.1. Hope that someone can
help me.

greetings Jettro Coenradie

--
****************************************************************************
This message contains information that may be privileged or confidential and
is the property of the Cap Gemini Ernst & Young Group. It is only intended
for the person to whom it is addressed. If you are not the intended
recipient, you are not authorized to read, print, retain, copy disseminate,
distribute, or use this message or any part thereof. If you receive this
message in error, please notify the sender immediately and delete all copies
of this message.
****************************************************************************

Search Discussions

  • Jean-François El Fouly at May 14, 2003 at 12:49 pm
    A 14:23 14/05/2003 +0200, vous avez écrit :
    Has someone been using JUnit automated testing with 1.0betav9. I cannot
    get it to work. The plugin.jelly file of the test plugin contains the
    following excerpt:

    <taskdef name="junit"
    classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTask"/>

    It seems it cannot find the class JUnitTask. Is there something I can
    check, has someone else solved this problem?

    By the way I am running with jdk1.4 and ant-1.5.1. Hope that someone can
    help me.
    At least to bootstrap Maven you need to have optional.jar and junit.jar in
    the lib directory of your ant installation.
    I suspect it might also be the case for downloaded installs.

    BTW we've been using automated testing with 1.0b9 on 75 projects and we've
    no such problem.

    Cheers,

    Jean-François El Fouly



    ---------------------------------------------------------------------
    To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
    For additional commands, e-mail: users-help@maven.apache.org
  • Jettro Coenradie at May 14, 2003 at 1:03 pm
    Do you mean I need ant installed locally als well, isn't maven using its
    own ant library? Does it mean I have to but ANT_HOME/bin in the path as
    well?

    Now I feel really stupid, I cannot get it to work for a project with 1
    file and 1 testcase and 1 testsuite and you guys are working with 75
    projects.

    any help would be welcom (maybe an example project.xml)

    thanks in advance

    Jean-François El Fouly wrote:
    A 14:23 14/05/2003 +0200, vous avez écrit :
    Has someone been using JUnit automated testing with 1.0betav9. I cannot
    get it to work. The plugin.jelly file of the test plugin contains the
    following excerpt:

    <taskdef name="junit"
    classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTask"/>

    It seems it cannot find the class JUnitTask. Is there something I can
    check, has someone else solved this problem?

    By the way I am running with jdk1.4 and ant-1.5.1. Hope that someone can
    help me.

    At least to bootstrap Maven you need to have optional.jar and
    junit.jar in the lib directory of your ant installation.
    I suspect it might also be the case for downloaded installs.

    BTW we've been using automated testing with 1.0b9 on 75 projects and
    we've no such problem.

    Cheers,

    Jean-François El Fouly



    ---------------------------------------------------------------------
    To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
    For additional commands, e-mail: users-help@maven.apache.org
    --
    ****************************************************************************
    This message contains information that may be privileged or confidential and
    is the property of the Cap Gemini Ernst & Young Group. It is only intended
    for the person to whom it is addressed. If you are not the intended
    recipient, you are not authorized to read, print, retain, copy disseminate,
    distribute, or use this message or any part thereof. If you receive this
    message in error, please notify the sender immediately and delete all copies
    of this message.
    ****************************************************************************
  • Jettro Coenradie at May 14, 2003 at 1:06 pm
    Adiitional the beginning of the trace when I invoke maven site:generate

    C:\temp\TestJUnit\TestJUnit>maven site:generate -e
    __ __
    \/ |__ Jakarta _ ___
    \/| / _` \ V / -_) ' \ ~ intelligent projects ~
    _| |_\__,_|\_/\___|_||_| v. 1.0-beta-9-SNAPSHOT

    site:
    xdoc:register-reports:
    maven-junit-report-plugin:register:


    site:run-reports:
    [echo] Generating the Unit Tests...
    maven-junit-report-plugin:report:
    java:prepare-filesystem:

    java:compile:
    [javac] Since fork is true, ignoring compiler setting.

    BUILD FAILED
    org.apache.commons.jelly.JellyTagException: null:37:50: <attainGoal>
    null:31:37: <attainGoal> null:67:77: <taskdef> task
    def class org.apache.tools.ant.taskdefs.optional.junit.JUnitTask cannot
    be found





    Jettro Coenradie wrote:
    Has someone been using JUnit automated testing with 1.0betav9. I cannot
    get it to work. The plugin.jelly file of the test plugin contains the
    following excerpt:

    <taskdef name="junit"
    classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTask"/>

    It seems it cannot find the class JUnitTask. Is there something I can
    check, has someone else solved this problem?

    By the way I am running with jdk1.4 and ant-1.5.1. Hope that someone can
    help me.

    greetings Jettro Coenradie

    --
    *************************************************************************** *
    This message contains information that may be privileged or confidential and
    is the property of the Cap Gemini Ernst & Young Group. It is only intended
    for the person to whom it is addressed. If you are not the intended
    recipient, you are not authorized to read, print, retain, copy disseminate,
    distribute, or use this message or any part thereof. If you receive this
    message in error, please notify the sender immediately and delete all copies
    of this message.
    *************************************************************************** *
    --
    ****************************************************************************
    This message contains information that may be privileged or confidential and
    is the property of the Cap Gemini Ernst & Young Group. It is only intended
    for the person to whom it is addressed. If you are not the intended
    recipient, you are not authorized to read, print, retain, copy disseminate,
    distribute, or use this message or any part thereof. If you receive this
    message in error, please notify the sender immediately and delete all copies
    of this message.
    ****************************************************************************
  • Jettro Coenradie at May 14, 2003 at 1:44 pm
    Thanks for the help,
    again I feel really stupid. It turns out that I thought to be using
    jdk1.4, it turned out that I was using the jdk provided with jdeveloper
    (i.e custom 1.3).

    But it works now, and I finally can continue


    Jettro Coenradie wrote:
    Has someone been using JUnit automated testing with 1.0betav9. I cannot
    get it to work. The plugin.jelly file of the test plugin contains the
    following excerpt:

    <taskdef name="junit"
    classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTask"/>

    It seems it cannot find the class JUnitTask. Is there something I can
    check, has someone else solved this problem?

    By the way I am running with jdk1.4 and ant-1.5.1. Hope that someone can
    help me.

    greetings Jettro Coenradie

    --
    *************************************************************************** *
    This message contains information that may be privileged or confidential and
    is the property of the Cap Gemini Ernst & Young Group. It is only intended
    for the person to whom it is addressed. If you are not the intended
    recipient, you are not authorized to read, print, retain, copy disseminate,
    distribute, or use this message or any part thereof. If you receive this
    message in error, please notify the sender immediately and delete all copies
    of this message.
    *************************************************************************** *
    --
    ****************************************************************************
    This message contains information that may be privileged or confidential and
    is the property of the Cap Gemini Ernst & Young Group. It is only intended
    for the person to whom it is addressed. If you are not the intended
    recipient, you are not authorized to read, print, retain, copy disseminate,
    distribute, or use this message or any part thereof. If you receive this
    message in error, please notify the sender immediately and delete all copies
    of this message.
    ****************************************************************************

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupusers @
categoriesmaven
postedMay 14, '03 at 12:22p
activeMay 14, '03 at 1:44p
posts5
users2
websitemaven.apache.org
irc#maven

People

Translate

site design / logo © 2019 Grokbase