[ 
https://jira.codehaus.org/browse/MCOMPILER-156?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=272348#comment-272348
 ] 

Stephen Connolly commented on MCOMPILER-156:
--------------------------------------------

FYI. There may be potential classpath issues.

IIRC ${project.build.outputDirectory} is on the classpath that is provided to 
javac.

If the @readonly is removed from the #outputDirectory parameters, then the 
default will still be on the classpath that is provided to javac

That might cause issues if you try to compile the same class twice (as the 
class will already be available on the classpath) This may be the reason why 
the parameter is @readonly (to stop users shooting themselves in the foot)

Thoughts?

> Make outputDirectory & testOutputDirectory configurable at the plugin level
> ---------------------------------------------------------------------------
>
>                 Key: MCOMPILER-156
>                 URL: https://jira.codehaus.org/browse/MCOMPILER-156
>             Project: Maven 2.x Compiler Plugin
>          Issue Type: Improvement
>    Affects Versions: 2.3.2
>            Reporter: Frédéric Camblor
>
> I'd like to change the test output directory for a particular 
> maven-compiler-plugin execution.
> Problem is : maven-compiler-plugin is relying on 
> /project/build/outputDirectory|testOutputDirectory pom configuration for 
> compilation.
> It would be nicer to have these parameters configurables (obviously with a 
> default value to ${project.build.outputDirectory} or 
> ${project.build.testOutputDirectory} to keep backward compatibility)
> My use case is for some "incubation tests" I'd want to compile but not to 
> execute (because, as they are named, they are in failure (incubation) for the 
> moment .. test first methodology :)).
> I would be able to define this design by executing maven-compiler-plugin on 
> an additionnal execution while overriding the testOutputDirectory (because I 
> don't want to execute these tests).

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


Reply via email to