How to set properties to groovy script which is executable from java code
===

in my groovy script I have this code:

        def username = System.getenv()['USER']
        def password = System.getenv()['PASS']

it is because I cant use this information as parameter to groovy script because other user shouldnt know it. When I run this script I set this parameter in my system. Now I have problem. I have java application which run groovy script remotely. Is there some way how I can set enviromental variable in java code ? (here I found that this isnt possible: http://stackoverflow.com/questions/7054972/java-system-properties-and-environment-variables) or is there some safe way how to send this properties from java to groovy
