Hi, thanks for the quick reply!
On Friday 18 June 2004 16:31, [EMAIL PROTECTED] wrote:
> Use the exclude only for file regexp who match the include regexp that you
> don't want to include in your unit test (**/*AbstractTest.java for
> example).
I see. But here is what I want to do. I have all the sources and tests in
the same tree called 'src'. Now, I want to use as tests only classes that
match *Test.java, but at the same time don't match a group of *Test.java
files which are located in com.company.experiments package.
<unitTestSourceDirectory>src</unitTestSourceDirectory>
<unitTest>
<includes>
<include>**/*Test.java</include>
</includes>
<excludes>
<exclude>com/company/experiments/**/*</exclude>
</excludes>
</unitTest>
When I use <include>**/*Test.java</include>, does this mean that only classes
that end with Test.java will be compiled as tests? Because it doesn't work
for me for some reason. This include is ignored and every possible class in
the src directory gets included.
> unitTestSourceDirectory must be set to your test directory (src/test)
Unfortunately, this is an old project that we have and all tests are in the
same directory as the sources.
BTW, I use maven-1.0rc3.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]