admin@glassfish.java.net

start-instance --setenv

From: Byron Nevins <byron.nevins_at_oracle.com>
Date: Tue, 20 Jul 2010 17:20:35 -0700

setenv adds the given properties to the environment of the instance.

I.e every process normally starts with the environment of its parent.
V2 would add the given properties to the environment of the instance.

We don't need this in V3, AFAIK.

=================
excerpt from ASLauncher (module: admin) in V2

         String[] cmd=command.getCommandAsArray();
         //getLogger().log(Level.INFO, "\n" + Arrays.toString(cmd));
         ProcessBuilder pb = new ProcessBuilder(cmd);
         // set the environment if any
         if (env != null)
             setEnv(pb.environment(), env);

The setEnv call takes the given properties (env) and stuffs them, one by
one, into the Process' environment. When pb.start() is called later the
instance will see those props
as environmental variables.


-- 
Byron Nevins  -  Oracle Corporation
Home: 650-359-1290
Cell: 650-784-4123
Sierra: 209-295-2188