public void addToPathOption(String key,String toAppend){
  if (toAppend == null) {
    throw new IllegalArgumentException("Null string appended to sourcePath.");
  }
  String path=options.get(key);
  if (toAppend.startsWith(File.pathSeparator)) {
    if (path == null || path.isEmpty()) {
      path=toAppend.substring(1,toAppend.length());
    }
 else {
      path+=toAppend;
    }
  }
 else {
    if (path == null || path.isEmpty()) {
      path=toAppend;
    }
 else {
      path+=File.pathSeparator + toAppend;
    }
  }
  addOption(key,path);
}

public void addToPathOption ( String key , String toAppend ) { if ( toAppend == null ) { throw new IllegalArgumentException ( "Null string appended to sourcePath." ) ; } String path = options . get ( key ) ; if ( toAppend . startsWith ( File . pathSeparator ) ) { if ( path == null || path . isEmpty ( ) ) { path = toAppend . substring ( 1 , toAppend . length ( ) ) ; } else { path += toAppend ; } } else { if ( path == null || path . isEmpty ( ) ) { path = toAppend ; } else { path += File . pathSeparator + toAppend ; } } addOption ( key , path ) ; }
a method to easily add strings to an option that takes a filepath as an argument
