You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (JIRA)" <ji...@apache.org> on 2015/09/06 22:46:13 UTC
[jira] [Closed] (MECLIPSE-204) Support to set the test output
directory with property
[ https://issues.apache.org/jira/browse/MECLIPSE-204?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Osipov closed MECLIPSE-204.
-----------------------------------
Resolution: Auto Closed
This issue has been auto closed because it has been inactive for a long period of time. If you think this issue still applies, retest your problem with the most recent version of Maven and the affected component, reopen and post your results.
> Support to set the test output directory with property
> ------------------------------------------------------
>
> Key: MECLIPSE-204
> URL: https://issues.apache.org/jira/browse/MECLIPSE-204
> Project: Maven Eclipse Plugin
> Issue Type: Improvement
> Affects Versions: 2.2
> Environment: -
> Reporter: Martin Heitz
> Priority: Minor
>
> Problem still exists in version $Id: EclipsePlugin.java 479356 2006-11-26 13:24:31Z fgiust $
> While it is possible to set a different output directory for compiled classes using -DoutputDirectory=.... it is not possible to specify an output directory for test classes. This is strange, because the plugin already creates a special output directory when not called with -DoutputDirectory=. e.g.
> <classpathentry kind="src" path="src/test/java" output="target/test-classes"/>
> <classpathentry kind="src" path="src/test/resources" output="target/test-classes"/>
> <classpathentry kind="output" path="target/classes"/>
> So it would also be easy, to add an option -DtestOutputDirectory=
> Code to be changed is in the class EclipsePlugin:
> String testOutput = null;
> boolean useStandardOutputDir = buildOutputDirectory.equals( new File( project.getBuild().getOutputDirectory() ) );
> if ( useStandardOutputDir )
> {
> testOutput = IdeUtils.toRelativeAndFixSeparator( projectBaseDir, new File( project.getBuild()
> .getTestOutputDirectory() ), false );
> }
> Instead of doing the test for the standard dir, just check, if the option was set instead.
> REASON for the request:
> We have tests, which check if some special interface is implemented by the classes in the source and then execute tests for the classes found. But test implementations of the interface shall not be tested.
> Best regards from sunny Black Forrest, Germany,
> Martin Heitz
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)