You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Simon Althoff (Jira)" <ji...@apache.org> on 2020/09/09 11:25:00 UTC

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

Simon Althoff created MINVOKER-270:
--------------------------------------

             Summary: 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


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.3.4#803005)