/** * Build the process to execute when the service is started * @param commandList list of commands is inserted on the front * @param env environment variables above those generated by * @throws IOException IO problems */ public void build(Map<String, String> env, List<String> commandList) throws IOException { assert process == null; process = new LongLivedProcess(getName(), processLog, commandList); process.setLifecycleCallback(this); //set the env variable mapping process.putEnvMap(env); }
/** * Build the process to execute when the service is started * @param commandList list of commands is inserted on the front * @param env environment variables above those generated by * @throws IOException IO problems */ public void build(Map<String, String> env, List<String> commandList) throws IOException { assert process == null; process = new LongLivedProcess(getName(), processLog, commandList); process.setLifecycleCallback(this); //set the env variable mapping process.putEnvMap(env); }