Glassfish 3.1.2 installation on windows will place both asadmin and asadmin.bat in the bin folder for glassfish. The detection logic in AsadminCommand is slightly broken:
81 if (!asadmin.exists() && System.getProperty("os.name").contains("indows"))
{ 82 asadmin = new File(binDir, "asadmin.bat"); 83 }
asadmin shell script will be found, and regardless of the operating system being windows, the wrong file will be executed.
the check for the presence of asadmin is not required, I think, and simply the check for windows should be sufficient to run the .bat command instead.
Glassfish 3.1.2 installation on windows will place both asadmin and asadmin.bat in the bin folder for glassfish. The detection logic in AsadminCommand is slightly broken:
81 if (!asadmin.exists() && System.getProperty("os.name").contains("indows"))
{ 82 asadmin = new File(binDir, "asadmin.bat"); 83 }
asadmin shell script will be found, and regardless of the operating system being windows, the wrong file will be executed. the check for the presence of asadmin is not required, I think, and simply the check for windows should be sufficient to run the .bat command instead.
Environment
Windows
Affected Versions
[current]