on 10-30-2014 6:31 PM
Hi,
Is there a way to read system properties in my script?
eg. I want to read the Messaging server properties in my script for the purpose of sending emails.
Thanks,
Priyanka
Hi Priyanka,
System properties can be read same way as they are done in plain java, that is using System.getProperty
Example to get the temporary directory I have used this in one of my scripts:
String dir = System.getProperty("java.io.tmpdir");
Thanks,
Gayathri
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.