> -----Original Message-----
> From: Christian Andersson [mailto:[EMAIL PROTECTED]
> Sent: 11 September 2003 19:10
> To: Maven Users List
> Subject: Re: Cactus Plugin
> 
> 
> 
> Vincent Massol wrote:
> >
> > One of the feature that I need to add back is the ability for the
Cactus
> > plugin to automatically find out what classes are Cactus tests. This
> > feature was in the cactus plugin in the early version and has
> > disappeared since then. It was working great at that time.
> 
> Hi there, sorry for bursting in here...
> 
> You say that the older plugin automaticly found out what classes were
> cactus classes, wow did it do that? reflection?
> 
> I'm in the process of trying to create an rmi-generation plugin for my
> own usage (and for you if you want it) and automaticly detecting which
> classes I should run rmic for would be a very nice thing.

The old is available at:

http://cvs.apache.org/viewcvs.cgi/maven/src/plugins-build/cactus/src/mai
n/org/apache/maven/cactus/?hideattic=0

Here's some javadoc excerpt:

/**
 * Process [EMAIL PROTECTED] FileSet} and extracts classes that are Cactus tests. A
 * class is considered to be a Cactus Test Case if:
 * <ul>
 *   <li>It extends [EMAIL PROTECTED] AbstractTestCase}</li>
 *   <li>It is not abstract</li>
 *   <li>It has at least one method that starts with "test", returns
void 
 *       and takes no parameters</li>
 * </ul>
[...]

It was indeed done by loading the test class in memory using reflection
and performing the checks to verify if it was a junit test.

-Vincent


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

Reply via email to