You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Moretti, Luciano (MED)" <Lu...@med.ge.com> on 2003/08/18 17:46:04 UTC

Building Custom unit task- Problems

Hi-

I'm trying to build a custom Junit task to run hansel coverage test suites-

Here's what I've got so far in my maven.xml-

    <goal name="lmoretti:coverage">
       <junit printsummary="yes" haltonfailure="no" fork="yes"
    timeout="600000" >
         <classpath refid="sapphire.classpath" />
         <formatter type="xml" />
         <mkdir dir="${maven.build.dir}/test-reports/coverage"/>
         <batchtest todir="${maven.build.dir}/test-reports/coverage">
           <fileset dir="${maven.test.dest}">
             <include name="target/classes/**/*CoverageTests.java"/>
           </fileset>
         </batchtest>
       </junit>
    </goal>


When I try to run it, I get no output.
When I look at the maven.log, there is the following-

    2003-08-18 10:39:04,362 WARN 
    org.apache.commons.jelly.tags.ant.AntTag - Could not convert tag:
    junit into an Ant task, data type or property
    2003-08-18 10:39:04,362 WARN 
    org.apache.commons.jelly.tags.ant.AntTag - Could not convert tag:
    classpath into an Ant task, data type or property
    2003-08-18 10:39:04,363 WARN 
    org.apache.commons.jelly.tags.ant.AntTag - Could not convert tag:
    formatter into an Ant task, data type or property
    2003-08-18 10:39:04,367 WARN 
    org.apache.commons.jelly.tags.ant.AntTag - Could not convert tag:
    batchtest into an Ant task, data type or property


This goal is copied from a Ant build.xml file, with some modification 
for Maven-  What am I missing?

also- what is the variable for Maven's classpath?

Thank you,

Luciano Moretti


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org