Hi Brett,

  Thanks for the information.  I've been told that due to jcoverage/Cobertura 
licensing issues we can't directly call the main Cobertura class, thus the need 
to do getRuntime.exec().  Glad to hear that there's going to be support for 
system.exec in alpha 3; is there going to be a way to grab the return code and 
the streams?  Right now I've taken the easy way out and am using the Execute 
class from Ant.  I don't like the Ant dependency, but I figured when the time 
comes the appropriate functionality can be moved over into a Maven utility 
class.

Another thing I'm swiping from Ant is the way they use wildcards in filesets.  
That'll save a lot of typing when adding jars to a classpath.  Will Maven have 
something similar?  (This might be another good opportunity for an Ant-derived 
utility class! :-)

We'll definitely contribute the Cobertura plugin back out somewhere when it's 
ready.  The Cobertura project is a definite possibility.  Would it make more 
sense to contribute it directly to Maven?  Either way would be fine with us.

BTW, if you need any help with the system.exec API let me know; since I need 
it, I've got some spare cycles available to work on it.

Thanks again,
Will

-----------------------------------------
Will Gwaltney
SAS Institute
[EMAIL PROTECTED]
919-531-9025
"mathematics is not just a cultural activity that we ourselves have created, 
but it has a life of its own" - Roger Penrose
-----------------------------------------


-----Original Message-----
From: Brett Porter [mailto:[EMAIL PROTECTED] 
Sent: Monday, May 23, 2005 7:19 PM
To: Maven Developers List
Subject: Re: [m2] Where in pom.xml to list dependent jars for an exec'ed app?

Hi Will,

The dependencies of the plugin itself will be loaded into the classloader of 
the plugin. The last time we tried this, we just called the classes directly, 
but jcoverage's reliance on System.exit caused problems. Corbetura may have 
fixed that.

Here is an (out of date) plugin you could use as a base:
http://cvs.mojo.codehaus.org/mojo/maven-jcoverage-plugin/src/main/java/org/apache/maven/plugin/jcoverage/

If you do need to do a system.exec, for now you can hardcode the paths to get 
it working and we'll make sure we get the API for it into alpha-3. We need it 
for other plugins which have needed this too (eg the jpox enhancer)

We will also be adding support to the lifecycle to better facilitate this 
report - you might like to check out the design documents at 
http://docs.codehaus.org/display/MAVEN/Lifecycle

Thanks - do you intend to donate this to the Corbetura project?

Cheers,
Brett

Will Gwaltney wrote:

>I'm currently writing a plugin to run Cobertura (a recent fork of jcoverage) 
>by means of getRuntime.exec(...).  I've got the basics in place, but I'm now 
>wondering where to specify the classpath for Cobertura itself.  It requires a 
>number of jar files in order to run, and I'm not sure whether it would be 
>better to list them as dependencies in the <dependencies> block for the 
>project or to set them in the <plugin> block for the Cobertura plugin.  So I 
>figured I'd tap into the collective wisdom of the mailing list.  What do you 
>think?
>
>Will
>
>-----------------------------------------
>Will Gwaltney
>SAS Institute
>[EMAIL PROTECTED]
>919-531-9025
>"mathematics is not just a cultural activity that we ourselves have 
>created, but it has a life of its own" - Roger Penrose
>-----------------------------------------
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED] For additional 
>commands, e-mail: [EMAIL PROTECTED]
>
>
>  
>


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


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

Reply via email to