You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Slawomir Jaranowski (Jira)" <ji...@apache.org> on 2022/05/21 16:01:00 UTC

[jira] [Commented] (MINVOKER-270) Documentation error on postBuildScript explanations

    [ https://issues.apache.org/jira/browse/MINVOKER-270?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17540448#comment-17540448 ] 

Slawomir Jaranowski commented on MINVOKER-270:
----------------------------------------------

PR are welcome

> Documentation error on postBuildScript explanations
> ---------------------------------------------------
>
>                 Key: MINVOKER-270
>                 URL: https://issues.apache.org/jira/browse/MINVOKER-270
>             Project: Maven Invoker Plugin
>          Issue Type: Bug
>    Affects Versions: 3.2.1
>            Reporter: Simon Althoff
>            Priority: Minor
>
> In the table of global variables in the [documentation|https://maven.apache.org/plugins/maven-invoker-plugin/examples/post-build-script.html] it says that 'baseDir' is 'The absolute path to the base directory of the test project.'
> When running a script that is not located in the test projects root, 'baseDir' is set to the script's directory. This contradicts the documentation.
> See relevant line in the [ScriptRunner|https://github.com/apache/maven-script-interpreter/blob/aec79dd1348b323ec1e23338908508eedf6142c6/src/main/java/org/apache/maven/shared/scriptinterpreter/ScriptRunner.java#L227]
>  



--
This message was sent by Atlassian Jira
(v8.20.7#820007)