On Mon, 18 Jul 2005, Michael Owen wrote:
You need to include ant-launcher as a dependency.
Btw, you might find that ${a-b} is evaluated as an expression (not sure if
this is an issue in Marmalade, but this was a problem with jelly - just
thought i might warn you).
> 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]
>
--
Kenney Westerhof
http://www.neonics.com
GPG public key: http://www.gods.nl/~forge/kenneyw.key
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]