You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Frédéric Camblor (JIRA)" <ji...@codehaus.org> on 2011/07/05 14:15:42 UTC

[jira] Created: (MCOMPILER-156) Make outputDirectory & testOutputDirectory configurable at the plugin level

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

       

[jira] Updated: (MCOMPILER-156) Make outputDirectory & testOutputDirectory configurable at the plugin level

Posted by "Stephen Connolly (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MCOMPILER-156?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stephen Connolly updated MCOMPILER-156:
---------------------------------------

    Attachment: MCOMPILER-156.patch

The fix is trivial... the real question is whether we should fix... given that fixing this may allow the user to shoot their own foot off

> 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
>            Priority: Trivial
>         Attachments: MCOMPILER-156.patch
>
>
> 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

       

[jira] Updated: (MCOMPILER-156) Make outputDirectory & testOutputDirectory configurable at the plugin level

Posted by "Stephen Connolly (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MCOMPILER-156?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stephen Connolly updated MCOMPILER-156:
---------------------------------------

    Priority: Trivial  (was: Major)

> 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
>            Priority: Trivial
>
> 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

       

[jira] Commented: (MCOMPILER-156) Make outputDirectory & testOutputDirectory configurable at the plugin level

Posted by "Frédéric Camblor (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MCOMPILER-156?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=272350#comment-272350 ] 

Frédéric Camblor commented on MCOMPILER-156:
--------------------------------------------

Why wouldn't you provide #outputDirectory parameter to javac instead of ${project.build.outputDirectory} ?

maven-compiler-plugin wouldn't have rights on this ? (it would be managed by maven core ?)

> 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
>            Priority: Trivial
>         Attachments: MCOMPILER-156.patch
>
>
> 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

       

[jira] Commented: (MCOMPILER-156) Make outputDirectory & testOutputDirectory configurable at the plugin level

Posted by "Stephen Connolly (JIRA)" <ji...@codehaus.org>.
    [ 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