Why dont you use the surefire plugin and the cobertura plugin? 

manfred

Manfred Moser
http://www.mosabuam.com
skype: mosabua
http://www.linkedin.com/in/manfredmoser


On Wednesday January 7 2009, Patrick Struhs wrote:
> I am using the maven-exec-plugin to run some automated java tests
> after a maven build.  It's working great.  Now I would like to
> instrument the jarfiles I am testing, and run my tests against
> those.  I would need to prepend the classpath in order to do this. 
> But I don't see any way to do this with the maven-exec-plugin.
>
> My other option was to use -Djava.ext.dirs=/instfiles but when I
> use that it will not load classes specified on the classpath.  I
> think it is because they are in application loader while I am
> trying to call it from the extension loader.  If I add all jars to
> the java.ext.dirs directory the tests run.  Or if I specify all
> jars ( including the instrumented jars ) on the classpath it works,
>  but not when I have mixed classpath and -Djava.ext.dirs.
>
> Is there anyway for me to prepend the classpath generated by the
> maven-exec-plugin?
>
> Thanks, Patrick
>
> Here's a snippet from my pom
>
>         <configuration>
>           <executable>java</executable>
>           <arguments>
>          
> <argument>-Djava.ext.dirs=/usr/java/jdk1.6.0_04/jre/lib/ext:/usr/ja
>va/packages/lib/ext:/home/user/deploy/Standards-Encoding</argument>
> <argument>-classpath</argument>
>             <classpath/>
>             <argument>-Xmx1024M</argument>
>            
> <argument>org.familysearch.standards.test.EncodingTestCase</argumen
>t> </arguments>
>         </configuration>
>
>
>  NOTICE: This email message is for the sole use of the intended
> recipient(s) and may contain confidential and privileged
> information. Any unauthorized review, use, disclosure or
> distribution is prohibited. If you are not the intended recipient,
> please contact the sender by reply email and destroy all copies of
> the original message.



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to