ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lynne Lawrence <...@visuallink.com>
Subject Re: Ant and Junitreport task
Date Wed, 09 Oct 2002 12:58:04 GMT
Hi Fionnula,

I use junitreport with ant.  I have never seen your particular error.  Perhaps
if you post your target it would help.  Here is my entire target - maybe you
will see something in it to help.

    <target name="ut" depends="buildtest, dropdb, createdb"
            description="run unit tests (will build first)">
        <mkdir dir="${tmpdir}/testresults" />
        <mkdir dir="${tmpdir}/testresults/reports" />
        <junit fork="on" dir="${basedir}" >
            <classpath>
                <path refid="testrun.class.path" />
            </classpath>
            <formatter type="xml" />
            <batchtest todir="${tmpdir}/testresults">
                <fileset dir="${testsrcdir}">
                    <include name="**/*_UT.java" />
                </fileset>
            </batchtest>
        </junit>
        <junitreport todir="${tmpdir}/testresults/reports">
            <fileset dir="${tmpdir}/testresults">
                <include name="TEST-*.xml" />
            </fileset>
            <report format="frames" todir="${tmpdir}/testresults/reports" />
        </junitreport>
        <echo message="See results in:" />
        <echo message="  ${tmpdir}/testresults/reports/index.html" />
    </target>

I have the following jars in $ANT_HOME/lib:

ant.jar
crimson.jar
jakarta-ant-1.4.1-optional.jar
jaxp.jar

Hope something here helps.

Regards,

Lynne Lawrence

Fionnula Glynn wrote:

> Hi,
>
> Has anyone used the junitreport task in Ant?  When I set the report format
> to "xml" I get a 'java.lang.LinkageError: loader constraints violated when
> linking org/w3c/dom/Document class'.  I know it's got something to do with
> the classpaths that I have set, which are as follows:
> .;
> C:\j2sdk1.4.0_02\jre\lib;
> C:\JUnit\junit3.8.1\junit.jar;
> C:\tools\ant\lib;
> C:\j2sdk1.4.0_02\lib\tools.jar;
> C:\JUnit\junit3.8.1\junit\samples;
>
> I get the same error if I include the xalan.jar and xerces.jar in the class
> paths.
>
> Has anyone seen this before?  I'm going nuts!  :-(
>
> Fionnuala Glynn.


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message