Home Analytics DevShare
The community of Analytics developers are invited to follow and participate in the developer network.
OpenText technical experts collaborate with supported customers and partners in the Magellan product area.

Using linux environment variables

kclarkkclark BIRT GuruEM
edited November 1, 2013 in DevShare
A lot of Linux users have grown to love environment variables, they make coding faster with less keystrokes. The following code will show you how to call $HOME and display it in lblPath.
temp = System.getenv("HOME");
reportContext.getDesignHandle().findElement("lblPath").text = temp
<br />
There are two things to remember. Packages.java.lang is required and the leading $ for your environment variable is not required for System.getenv().

Kristopher Clark

Actuate Corporation – The BIRT Company™

http://www.actuate.com | http://birtondemand.com


My Blog



Sign In or Register to comment.