for ( Iterator<String> i = envVars.keySet().iterator(); i.hasNext(); )
{
String key = i.next();
cli.addEnvironment( key, envVars.get( key ) );
/*
* What was the point of this? It doesn't work on windows. try { FileUtils.fileWrite( "/tmp/foo.txt",
* "setting envar[ " + key + " = " + envVars.get( key ) ); } catch ( IOException e ) {
* e.printStackTrace(); // To change body of catch statement use File | Settings | File Templates. }