private void resolveFiles(List<String> classpaths,Map<String,String> files,String[] paths,String prefix){
  for (  String path : paths) {
    String relativePath=fileHandler.getName(path);
    if (prefix != null) {
      relativePath=fileHandler.append(prefix,relativePath);
    }
    if (classpaths != null) {
      classpaths.add(relativePath);
    }
    if (fileHandler.isDirectory(path)) {
      String[] children=fileHandler.getChildren(path);
      if (children != null && children.length != 0) {
        resolveFiles(null,files,children,relativePath);
      }
    }
 else {
      files.put(relativePath,path);
    }
  }
}

private void resolveFiles ( List < String > classpaths , Map < String , String > files , String [ ] paths , String prefix ) { for ( String path : paths ) { String relativePath = fileHandler . getName ( path ) ; if ( prefix != null ) { relativePath = fileHandler . append ( prefix , relativePath ) ; } if ( classpaths != null ) { classpaths . add ( relativePath ) ; } if ( fileHandler . isDirectory ( path ) ) { String [ ] children = fileHandler . getChildren ( path ) ; if ( children != null && children . length != 0 ) { resolveFiles ( null , files , children , relativePath ) ; } } else { files . put ( relativePath , path ) ; } } }
resolves all files it finds into a map , with relative paths as the key and absolute path as the value .
