Hi,

As surefire in Maven2 doesn't create HTML reports yet, I'm trying to temporary get around the problem by writing a Marmalade plugin script that uses Ant tasks to do this. So far I'm just trying to get JUnit working through the Marmalade. This is the execute part of my script so far:

        <execute>

<ant:javac srcdir="${classes}" destdir="${junit-classes}" classpath="${lib}" fork="yes" nowarn="on" debug="on" />

            <ant:delete dir="${junit-results}" />
                <ant:mkdir dir="${junit-results}" />

                <ant:junit fork="yes" haltonfailure="no" 
timeout="${junit-timeout}">

                <ant:sysproperty key="basedir" value="${basedir}" />

                        <ant:formatter type="xml" />

                        <ant:classpath path="${lib}" />

                        <ant:classpath>
                                <ant:pathelement path="${lib}" />
                        </ant:classpath>

                        <ant:batchtest todir="${junit-results}">
                        <ant:fileset dir="${junit-classes}" 
includes="**/*Test.class" />
                </ant:batchtest>

                </ant:junit>

        </execute>


Using this I'm receiving the problem error:

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/tools/ant/launch/Locator at org.apache.tools.ant.util.LoaderUtils.getResourceSource(LoaderUtils.java:109)

  etc. etc.


Just wondering if anybody out there has done a similar thing, or knows why such a error is occurring? I've double checked the basic things, like the variables used are fine etc.

Thanks,

Mike



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to