[
http://jira.codehaus.org/browse/MECLIPSE-204?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Carlos Sanchez updated MECLIPSE-204:
------------------------------------
Patch attached: (was: Yes)
> Support to set the test output directory with property
> ------------------------------------------------------
>
> Key: MECLIPSE-204
> URL: http://jira.codehaus.org/browse/MECLIPSE-204
> Project: Maven 2.x 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 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