Réf. : Problem with includes and excludes in unitTest

2004-06-18 Thread Nicolas . CHALUMEAU
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).
unitTestSourceDirectory must be set to your test directory (src/test)

 unitTestSourceDirectorysrc/test/unitTestSourceDirectory
unitTest
includes
include**/*Test.java/include
/includes
resources
resource
directorysrc/directory
includes
 include**/*.xml/include
/includes
/resource
/resources
/unitTest

Nicolas,





Josip Gracin [EMAIL PROTECTED]
18/06/2004 15:42
Veuillez répondre à Maven Users List

 
Pour :  [EMAIL PROTECTED]
cc : 
Objet : Problem with includes and excludes in unitTest


Hello!

Could somebody please tell me why the following code from project.xml 
still 
tries to compile several hundred test classes when I run 
maven clean test:compile?  As far as I understand the includes's and 
excludes's, this should exclude all files and it should not compile 
anything, right?

unitTestSourceDirectorysrc/unitTestSourceDirectory
unitTest
includes
include**/*Test.java/include
/includes
excludes
exclude**/*/exclude
/excludes
resources
resource
directorysrc/directory
includes
 include**/*.xml/include
/includes
/resource
/resources
/unitTest

Thanks in advance!


-
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]



Re: Réf. : Problem with includes and excludes in unitTest

2004-06-18 Thread Josip Gracin
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.

unitTestSourceDirectorysrc/unitTestSourceDirectory
unitTest
includes
include**/*Test.java/include
/includes
excludes
excludecom/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]



Re: Réf. : Problem with includes and excludes in unitTest

2004-06-18 Thread Josip Gracin
I have attached the build element from my project.xml file.  And partial 
output of maven -X clean test:compile is available at

http://veeone.tel.fer.hr/out.txt

Best regards,
Josip
	build
		sourceDirectorysrc/sourceDirectory 
		resources
			resource
directorysrc/directory
	includes
   			include**/*/include
	/includes
excludes
exclude**/*.java/exclude
excludeCVS/exclude
/excludes 
			/resource
		/resources
		sourceModifications
			sourceModification
classNamenonExistantClass/className
excludes
	excludehr/**/exclude
	excludecom/ingemark/experiments/**/exclude
	exclude**/*Test.java/exclude
	exclude**/test/**/*.java/exclude
	excludecom/ingemark/security/ws/**/exclude
/excludes
			/sourceModification
		/sourceModifications
		unitTestSourceDirectorysrc/unitTestSourceDirectory
		unitTest
			includes
include**/*Test.java/include
			/includes 
			excludes
excludecom/ingemark/experiments/**/*.java/exclude
			/excludes 
			resources
resource
	directorysrc/directory
			includes
   			include**/*.xml/include
   	 	/includes
/resource
			/resources 
		/unitTest
	/build

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

Réf. : Re: Réf. : Problem with includes and excludes in unitTest

2004-06-18 Thread Nicolas . CHALUMEAU
I see a first probleme with your resources :

sourceDirectorysrc/sourceDirectory 
resources
resource
directorysrc/directory

According to this section the directory where are the resources is 
src/src/**/*.xml  for your src and your test. I sure you want it to be 
only src/*.xml. 

So set it to (for  sourceDirectory and unitTestSourceDirectory) :
sourceDirectorysrc/sourceDirectory 
resources
resource
directory./directory

Can you show the directory structure of your project ?

Nicolas





Josip Gracin [EMAIL PROTECTED]
18/06/2004 17:08
Veuillez répondre à Maven Users List

 
Pour :  Maven Users List [EMAIL PROTECTED]
cc : 
Objet : Re: Réf. : Problem with includes and excludes in unitTest


I have attached the build element from my project.xml file.  And partial 

output of maven -X clean test:compile is available at

http://veeone.tel.fer.hr/out.txt

Best regards,
Josip
-
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]

Re: Réf. : Re: Réf. : Problem with includes and excludes in unitTest

2004-06-18 Thread John Casey
It has absolutely NOT been my experience for maven to work in this
fashion. The resources section has NOTHING to do with the
sourceDirectory section. His original specification is correct in
this.

-j


On Fri, 2004-06-18 at 11:18, [EMAIL PROTECTED] wrote:
 I see a first probleme with your resources :
 
 sourceDirectorysrc/sourceDirectory 
 resources
 resource
 directorysrc/directory
 
 According to this section the directory where are the resources is 
 src/src/**/*.xml  for your src and your test. I sure you want it to be 
 only src/*.xml. 
 
 So set it to (for  sourceDirectory and unitTestSourceDirectory) :
 sourceDirectorysrc/sourceDirectory 
 resources
 resource
 directory./directory
 
 Can you show the directory structure of your project ?
 
 Nicolas
 
 
 
 
 
 Josip Gracin [EMAIL PROTECTED]
 18/06/2004 17:08
 Veuillez rpondre  Maven Users List
 
  
 Pour :  Maven Users List [EMAIL PROTECTED]
 cc : 
 Objet : Re: Rf. : Problem with includes and excludes in unitTest
 
 
 I have attached the build element from my project.xml file.  And partial 
 
 output of maven -X clean test:compile is available at
 
 http://veeone.tel.fer.hr/out.txt
 
 Best regards,
 Josip
 -
 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]
-- 
John Casey
[EMAIL PROTECTED]
CommonJava Open Components Project
http://www.commonjava.org


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