Message: The following issue has been reopened.
Reopener: Arnaud HERITIER Date: Tue, 4 May 2004 6:56 AM need to add a test case --------------------------------------------------------------------- View the issue: http://jira.codehaus.org/secure/ViewIssue.jspa?key=MPANT-14 Here is an overview of the issue: --------------------------------------------------------------------- Key: MPANT-14 Summary: unitTest resources copied to wrong location Type: Bug Status: Reopened Priority: Major Original Estimate: Unknown Time Spent: Unknown Remaining: Unknown Project: maven-ant-plugin Fix Fors: 1.7 Versions: 1.6 1.7 Assignee: Arnaud HERITIER Reporter: Matthias Kerkhoff Created: Thu, 29 Apr 2004 1:03 AM Updated: Tue, 4 May 2004 6:56 AM Description: It is possible to specify a directory into which maven copies the specified test resources. According to the schema and the current implementation, it is absolutly legal to have constructs like the following in the project.xml: <!-- Unit test classes --> <unitTest> <includes> <include>**/*Test.java</include> </includes> <!-- unit test resources --> <resources> <resource> <directory>TESTDATA-1</directory> <targetPath>DIRECTORY-1</targetPath> <includes> <include>**</include> </includes> </resource> <resource> <directory>TESTDATA-2</directory> <targetPath>DIRECTORY-2</targetPath> <includes> <include>**</include> </includes> </resource> </resources> </unitTest> Such a block will map TESTDATA-1/** to target/test-classes/DIRECTORY-1 and TESTDATA-2/** to target/test-classes/DIRECTORY-2. The plugin does assume that all test resources should be copied to target/test-classes (or whatever directory ${testclasses} points to). Such an assumption is incorrect. The problem applies to a number of generated ant targets, for example to compile, to compile-tests, to internal-test... --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]