[
https://issues.jboss.org/browse/JBIDE-10715?page=com.atlassian.jira.plugi...
]
Daniel Atallah commented on JBIDE-10715:
----------------------------------------
The "Append environment to native environment" vs. "Replace native
environment with specified environment" radio buttons refer to the entire
environment, not to specific individual environment variables.
* With "Append...", any environment variables specified in the launch config
will be appended to the set of environment variables inherited from the Eclipse process
and given to the JBoss process.
** If a variable is explicitly specified in the launch configuration, it will override
any inherited variable of the same name
* With "Replace...", the only environment variables given to the JBoss process
with be the ones explicitly specified in the launch configuration - none are inherited
You can see the effect on the Path (that is is overridden instead of appended to) by
looking at "java.library.path" in the output of "showAll" in the
"SystemProperties" MBean, but this doesn't give the full picture because
other stuff messes with java.library.path and you don't see the rest of the
environment variables.
I didn't see an easy way to dump the environment contents via the JMX console, but
putting the following snippet in a JSP will do the trick:
{code}
<%
for (java.util.Map.Entry<String,String> env : System.getenv().entrySet()) {
System.out.format("%s=%s\n", env.getKey(), env.getValue());
}
%>
{code}
"Path" Environment Variable in Launch Configuration is
overridden with the text "native" by default
---------------------------------------------------------------------------------------------------
Key: JBIDE-10715
URL:
https://issues.jboss.org/browse/JBIDE-10715
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: JBossAS/Servers
Affects Versions: 3.3.0.M5
Environment: Windows 7 / Eclipse Indigo SR1 / JBoss 4.2.3
Reporter: Daniel Atallah
Assignee: Rob Stryker
Fix For: 3.3.0.Beta1
Attachments: JBIDE-10715.png
When a new Launch configuration is created for a JBoss 4.2 Runtime server, the
"Environment" tab contains an initial entry for the "Path" variable
with a value of "native".
This causes the Path of the launched process to be overridden and subsequently not work
correctly if you depend on the System Path for anything.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira