[ 
http://jira.codehaus.org/browse/MECLIPSE-422?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=182607#action_182607
 ] 

Andrea Aime edited comment on MECLIPSE-422 at 7/4/09 8:07 AM:
--------------------------------------------------------------

Very much agreed. In GeoTools and GeoServer projects we would like to use a 
separate Eclipse output directory but at the moment it's not possible due to 
this very issue, as we have test resources that do overwrite main resources 
with the same name. Both are related to the respective plugin systems, which 
look for a certain file in the jars, and the tests, that in order to double 
check the plugin system itself, use files with the same name to install test 
plugins.

The separateOutputs.patch file is a trivial patch that makes it so the output 
of src and test end up in different directories fixing the problem for us. The 
intent is to consider the outputDirectory not as the directory where the 
classes will be put, but as the root for the main and source output 
directories, which will be kept separate.  When the outputDirectory is set to 
$OUTPUT, the main sources and resources will be targeted to $OUTPUT/classes, 
whilst the test ones to $OUTPUT/test-classes.

If this behaviour change is not acceptable I'm ready to prepare a patch that 
will add a testOutputDirectory parameter instead.
Oh, I coded the patch against the 2.7 releases sources.

      was (Author: aaime):
    Very much agreed. In GeoTools and GeoServer projects we would like to use a 
separate Eclipse output directory but at the moment it's not possible due to 
this very issue, as we have test resources that do overwrite main resources 
with the same name. Both are related to the respective plugin systems, which 
look for a certain file in the jars, and the tests, that in order to double 
check the plugin system itself, use files with the same name to install test 
plugins.

The separateOutputs.patch file is a trivial patch that makes it so the output 
of src and test end up in different directories fixing the problem for us. The 
intent is to consider the outputDirectory not as the directory where the 
classes will be put, but as the root for the main and source output 
directories, which will be kept separate.  When the outputDirectory is set to 
$OUTPUT, the main sources and resources will be targeted to $OUTPUT/classes, 
whilst the test ones to $OUTPUT/test-classes.

If this behaviour change is not acceptable I'm ready to prepare a patch that 
will add a testOutputDirectory parameter instead.
  
> Cannot specify a separate output directory for test classes when custom 
> buildOutputDirectory set
> ------------------------------------------------------------------------------------------------
>
>                 Key: MECLIPSE-422
>                 URL: http://jira.codehaus.org/browse/MECLIPSE-422
>             Project: Maven 2.x Eclipse Plugin
>          Issue Type: Bug
>          Components: Core : Dependencies resolution and build path 
> (.classpath)
>    Affects Versions: 2.5
>            Reporter: Mark Hobson
>         Attachments: separateOutputs.patch
>
>
> As soon as buildOutputDirectory is set to a non-default value the output 
> directories for all source folders are the same.  It should be possible to 
> specify a buildTestOutputDirectory to separate main and test classes, as is 
> the default behaviour when buildOutputDirectory is not set.

-- 
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
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to