[woproject-ant-tasks] WOApplication's executable parsing of JAVA_EXECUTABLE_ARGS not allowing for standard java options
-----------------------------------------------------------------------------------------------------------------------
Key: WOL-1002
URL: http://issues.objectstyle.org/jira/browse/WOL-1002
Project: WOProject/WOLips
Issue Type: Improvement
Environment: MacOSX, UNIX
Reporter: Lachlan Deck
Assigned To: Lachlan Deck
Priority: Trivial
Due to the historic decision in JavaMonitor, and the like, to not provide separate input fields for JVM args vs application args the executable for woapplications attempt to parse the arguments and assign them appropriately.
However, there are various options for java (refer to 'man java' on unix) that are prefixed by a single hyphen (-) that are wrongly parsed as standard WO property keys. For example, -agentlib:libname, is wrongly treated as a property key for the value -somekey below. Obviously, -somekey is an actual property key for someValue but everything is wrongly parsed from that point onwards.
So if the arguments are as follows:
./myapp -WOHost localhost -WOPort 2001 -WOCachingEnabled YES -WODebuggingEnabled NO -WOOutputPath /Library/WebObjects/Logs/AjaxExample/AjaxExample-1 -WOAutoOpenInBrowser NO -WOAutoOpenClientApplication NO -WOLifebeatInterval 30 -WOLifebeatEnabled YES -WOLifebeatDestinationPort 1085 -WOAdaptor WODefaultAdaptor -WOWorkerThreadCount 8 -WOListenQueueSize 128 -WOWorkerThreadCountMin 16 -WOWorkerThreadCountMax 256 -NSProjectSearchPath () -WOSessionTimeOut 3600 -WOApplicationName AjaxExample -WOMonitorEnabled YES -WONoPause YES -agentlib:libname -somekey someValue
I propose a work-around for this situation by allowing people to escape these java options with an extra double-hyphen. e.g., in the following list the first will be added directly to the arguments for the jvm after sed replacing the double hyphen.
---agentlib:libname -someKey someValue
-- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.objectstyle.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
This archive was generated by hypermail 2.0.0 : Mon Apr 20 2009 - 07:32:28 EDT