You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Nick Matthews (JIRA)" <ji...@codehaus.org> on 2005/04/08 00:54:42 UTC

[jira] Created: (MPTEST-49) test:test does not allow multiple source directories

test:test does not allow multiple source directories
----------------------------------------------------

         Key: MPTEST-49
         URL: http://jira.codehaus.org/browse/MPTEST-49
     Project: maven-test-plugin
        Type: Bug
    Reporter: Nick Matthews
    Priority: Critical


Our project is set up as follows:
src/main/java
src/main/resources
src/tests/java
src/tests/resources

Some of the files in src/tests/resources are xml files which are used to generate JUnit source files. These are generated into 

target/testutil

This value is set in our properties file as
maven.clienttester.src.dir = ${maven.build.dir}/testutil


<ant:path id="testutil.src.dir" location="${maven.clienttester.src.dir}"/>
<maven:addPath id="maven.test.compile.src.set" id="testutil.src.dir"/>

Now, calling the test:compile goal will compile the source files from target/testutil into target/test-classes

This is good.
However, test:test doesn't attempt to run any of these test files. test:test only runs the files located in src/tests/java, as defined in my project.xml file.

This is not so good. Since I have source files for everything, I would prefer not to use maven.test.search.classdir property. test:test should honour the maven.test.compile.src.set variable, the same as test:compile.




-- 
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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org