Commandline commandline = new Commandline();
if ( StringUtils.isNotEmpty( path ) )
{
executable.append( path ).append( File.separator );
executable.append( executorConfigurator.getRelativePath() + File.separator );
commandline.addEnvironment( executorConfigurator.getEnvVar(), path );
}
//Installations are env var they must be add if exists
Map<String, String> environments = getEnvVars( profile );
// no null check we use a private method just here
for ( Iterator<String> iterator = environments.keySet().iterator(); iterator.hasNext(); )