private void addFilesParameter(DaemonParameters parameters,String parameterName,String filePrefix,Map<String,String> files){
  StringBuilder propertiesJSON=new StringBuilder();
  propertiesJSON.append("[");
  int fileId=0;
  for (  Map.Entry<String,String> entry : files.entrySet()) {
    String relativePath=entry.getKey();
    String absolutePath=entry.getValue();
    if (fileId != 0) {
      propertiesJSON.append(",");
    }
    propertiesJSON.append("\"" + relativePath + "\"");
    parameters.setFile(filePrefix + fileId,absolutePath);
    fileId++;
  }
  propertiesJSON.append("]");
  parameters.setParameter(parameterName,propertiesJSON.toString());
}

private void addFilesParameter ( DaemonParameters parameters , String parameterName , String filePrefix , Map < String , String > files ) { StringBuilder propertiesJSON = new StringBuilder ( ) ; propertiesJSON . append ( "[" ) ; int fileId = 0 ; for ( Map . Entry < String , String > entry : files . entrySet ( ) ) { String relativePath = entry . getKey ( ) ; String absolutePath = entry . getValue ( ) ; if ( fileId != 0 ) { propertiesJSON . append ( "," ) ; } propertiesJSON . append ( "\"" + relativePath + "\"" ) ; parameters . setFile ( filePrefix + fileId , absolutePath ) ; fileId ++ ; } propertiesJSON . append ( "]" ) ; parameters . setParameter ( parameterName , propertiesJSON . toString ( ) ) ; }
adds a list of file parameters to the daemon parameters .
