Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[FIXED JENKINS-33693] Do not hardcode .bat extension.
As the default maven command is on the path we can not hard code the
command to mvn.bat as since maven 3.something it has been mvn.cmd

As this is on the path we can just use mvn and let Windows do its thing
with PATHEXT which will has both .BAT and .CMD by default.

This fixes ATH failures when the ATH is run on windows.
  • Loading branch information
jtnord committed Mar 21, 2016
1 parent 697d4ad commit 490adc9
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions core/src/main/java/hudson/tasks/Maven.java
Expand Up @@ -250,8 +250,6 @@ public String invoke(File ws, VirtualChannel channel) throws IOException {
seed = new File(ws,"project.xml").exists() ? "maven" : "mvn";
}

if(Functions.isWindows())
seed += ".bat";
return seed;
}
}
Expand Down

0 comments on commit 490adc9

Please sign in to comment.