« Return to Thread: [jira] Created: (MECLIPSE-422) Cannot specify a separate output directory for test classes when custom buildOutputDirectory set

Issue Comment Edited: (MECLIPSE-422) Cannot specify a separate output directory for test classes when custom buildOutputDirectory set

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View in Thread


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

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

Ok, second attempt (testOutputDirectory.patch), this time tested with the GeoTools and GeoServer projects. Seems to work fine there. It would be nice to get confirmation from other people affected by this issue.

In this one I've added an explicit testOutputDirectory configuration option. It defaults to the project one, and can be overridden like this:

{code:xml}
     <plugin>
         <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-eclipse-plugin</artifactId>
        <configuration>
          <outputDirectory>bin/classes</outputDirectory>
          <testOutputDirectory>bin/test-classes</testOutputDirectory>
        </configuration>
      </plugin>
{code}

If the developers think this patch is good for inclusion I'll extend it to the documentation as well.

      was (Author: aaime):
    Ok, second attempt (testOutputDirectory.patch), this time tested with the GeoTools and GeoServer projects. Seems to work fine there. It would be nice to get confirmation from other people affected by this issue.

In this one I've added an explicit testOutputDirectory configuration option. It defaults to the project one, and can be overridden like this:

{code:xml}
     <plugin>
         <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-eclipse-plugin</artifactId>
        <configuration>
          <outputDirectory>bin/classes</outputDirectory>
          <testOutputDirectory>bin/test-classes</testOutputDirectory>
        </configuration>
      </plugin>
{code:xml}

If the developers think this patch is good for inclusion I'll extend it to the documentation as well.
 

> 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, testOutputDirectory.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

       

 « Return to Thread: [jira] Created: (MECLIPSE-422) Cannot specify a separate output directory for test classes when custom buildOutputDirectory set