You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by GitBox <gi...@apache.org> on 2020/04/09 08:57:27 UTC
[GitHub] [maven] jhermann commented on issue #334: mvn.cmd: prevent autorun
execution in final exit command
jhermann commented on issue #334: mvn.cmd: prevent autorun execution in final exit command
URL: https://github.com/apache/maven/pull/334#issuecomment-611415748
I have this autorun script:
```
@echo off
IF /I x"%COMSPEC%"==x%CMDCMDLINE% (
cd "%USERPROFILE%"
clear
set PATH=%PATH:;C:\Program Files (x86)\Common Files\Oracle\Java\javapath=%
)
```
The IF guard does not seem to work for the call you have. Using /D is the safe option for scripted cmd calls, leaving it out is generally not robust (the above IF is just a last defense).
And obviously, clearing the screen after a mvn run is somewhat sub-optimal.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services