mirror of https://github.com/apache/maven.git
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@345048 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2d8bbe0e14
commit
7e6eefa883
|
@ -196,18 +196,20 @@ public class BootstrapInstaller
|
|||
|
||||
Runtime r = Runtime.getRuntime();
|
||||
|
||||
String OS = System.getProperty( "os.name" ).toLowerCase();
|
||||
String os = System.getProperty( "os.name" ).toLowerCase();
|
||||
|
||||
if ( OS.indexOf( "windows 9" ) > -1 )
|
||||
//If this is windows set the shell to command.com or cmd.exe with correct arguments.
|
||||
if ( os.indexOf( "Windows" ) != -1 )
|
||||
{
|
||||
if (os.indexOf("95") != -1 || os.indexOf("98") != -1 || os.indexOf("Me") != -1)
|
||||
{
|
||||
p = r.exec( "command.com /c set" );
|
||||
}
|
||||
else if ( (OS.indexOf( "nt" ) > -1 )
|
||||
|| ( OS.indexOf( "windows 20" ) > -1 )
|
||||
|| ( OS.indexOf( "windows xp" ) > -1) )
|
||||
else
|
||||
{
|
||||
p = r.exec( "cmd.exe /c set" );
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
p = r.exec( "env" );
|
||||
|
|
Loading…
Reference in New Issue