Skip to content

Prevent printing the EXEC_DIR when it's just a disk letter#304

Closed
rostidev wants to merge 1 commit intoapache:masterfrom
rostidev:patch-1
Closed

Prevent printing the EXEC_DIR when it's just a disk letter#304
rostidev wants to merge 1 commit intoapache:masterfrom
rostidev:patch-1

Conversation

@rostidev
Copy link
Copy Markdown
Contributor

@rostidev rostidev commented Dec 31, 2019

This fixes following bug and also consistent with another 'cd /d "%EXEC_DIR%"' a few lines above.
When you're on the root of some disk running mvn.cmd prints an extra line with current dir before the correct output.
For example:

D:>mvn -version
D:
Apache Maven 3.6.3 (cecedd3)
Maven home: D:\develop\apache-maven-3.6.3\bin..
Java version: 11.0.5, vendor: Oracle Corporation, runtime: C:\Program Files\Java\jdk-11.0.5
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"

Following this checklist to help us incorporate your
contribution quickly and easily:

  • Make sure there is a JIRA issue filed
    for the change (usually before you start working on it). Trivial changes like typos do not
    require a JIRA issue. Your pull request should address just this issue, without
    pulling in other changes.
  • Each commit in the pull request should have a meaningful subject line and body.
  • Format the pull request title like [MNG-XXX] - Fixes bug in ApproximateQuantiles,
    where you replace MNG-XXX with the appropriate JIRA issue. Best practice
    is to use the JIRA issue title in the pull request title and in the first line of the
    commit message.
  • Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
  • Run mvn clean verify to make sure basic checks pass. A more thorough check will
    be performed on your pull request automatically.
  • You have run the Core IT successfully.

If your pull request is about ~20 lines of code you don't need to sign an
Individual Contributor License Agreement if you are unsure
please ask on the developers list.

To make clear that you license your contribution under
the Apache License Version 2.0, January 2004
you have to acknowledge this by using the following check-box.

This fixes following bug and also consistent with another 'cd /d "%EXEC_DIR%"' a few lines above.
When you're on the root of some disk running mvn.cmd prints an extra line with current dir before the correct output.
For example:

D:\>mvn -version
D:\
Apache Maven 3.6.3 (cecedd3)
Maven home: D:\develop\apache-maven-3.6.3\bin\..
Java version: 11.0.5, vendor: Oracle Corporation, runtime: C:\Program Files\Java\jdk-11.0.5
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
@rostidev
Copy link
Copy Markdown
Contributor Author

rostidev commented Jan 3, 2020

This pull request is approved two days ago. When will it be merged? I don't have a write access to this repository and so I can't merge it by myself.

@michael-o
Copy link
Copy Markdown
Member

@rosti-il Please create a JIRA issue and I will merge.

@rostidev
Copy link
Copy Markdown
Contributor Author

Just created a Jira issue for this PR:
https://issues.apache.org/jira/browse/MNG-6850

@asfgit asfgit closed this in da5d8b8 Jan 14, 2020
@slachiewicz
Copy link
Copy Markdown
Member

Thx!

asfgit pushed a commit that referenced this pull request Jun 26, 2021
This fixes following bug and also consistent with another 'cd /d "%EXEC_DIR%"' a few lines above.
When you're on the root of some disk running mvn.cmd prints an extra line with current dir before the correct output

Closes #304
@jira-importer
Copy link
Copy Markdown

Resolve #8445

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants