Closed glassfishrobot closed 13 years ago
Reported by pdudits
msreekanth said: This is not an improvement.Clearly it is a bug that needs to be fixed for windows users. Since glassfish installation comes with both asadmin and asadmin.bat, execution will never enter into if condition below and always asadmin file meant for linux will be used.
File asadmin = new File(binDir, "asadmin"); if (!asadmin.exists() && System.getProperty("os.name").contains("indows"))
{ asadmin = new File(binDir, "asadmin.bat"); }
Again in glassfish v2,if applicable, may work since it only comes with one variant of asadmin file .Need to check it if needed.
arungupta said: Adding to the CC list.
Byron is working on a fix.
bnevins said: Fixed in svn revision#84
Fix is as in patch. Now it checks if we are running on Windows. If so – it uses asadmin.bat in preference to asadmin
liwei13705 said: Can you please install this patched version to Java.net Maven2 Repository? The current one there is outdated. http://download.java.net/maven/2/org/glassfish/maven/plugin/maven-glassfish-plugin/
bkravandi said: Sorry I'm new to java, how can I apply this patch ?
kingoleg said: Hi,
Would you like to release a new version of plugin with this and others fixes? Or it's dead?
Regards, Oleg
File: maven-glassfish-plugin_5.patch Attached By: pdudits
Was assigned to bnevins
This issue was imported from java.net JIRA MAVEN_GLASSFISH_PLUGIN-5
Marked as fixed on Tuesday, September 13th 2011, 2:18:19 pm
Currently the plugin tries to execute asadmin with no extension. If not found and OS Platworm is windows, then it tries asadmin.bat. As a result, the plugin does not work with default installation on Windows without deleting asadmin first.
Attached patch reverses the behaviour - asadmin.bat is used by default on Windows platforms, and than falls back to asadmin.
Affected Versions
[current]