Fork me on GitHub Fork me on GitHub

Process


<%
	
	var process = require("process");
	print(process.getEnv("JAVA_HOME")); 

%>

Overview

process allow to access to externally defined properties and environment variables


Operations

Operation Returns Description
getEnv(String name)String
process.getEnv("JAVA_HOME")
Gets the value of the specified environment variable.
getEnvs()Scriptable
process.getEnvs()
getEnvs() Returns an unmodifiable String map view of the current system environment.
setProperty(String key,String value)String
process.setProperty("Key","Test Property")
Sets the system property indicated by the specified key.
getProperty(String propertyName)String
process.getProperty("Key")
Gets the system property indicated by the specified key.
getProperties()Scriptable
process.getProperties()
getProperties() Determines the current system properties.