public static File findFileUnderCommunityHome(String relativePath){
  File file=new File(getCommunityHomePath(),toSystemDependentName(relativePath));
  if (!file.exists()) {
    throw new IllegalArgumentException("Cannot find file '" + relativePath + "' under '"+ getCommunityHomePath()+ "' directory");
  }
  return file;
}

public static File findFileUnderCommunityHome ( String relativePath ) { File file = new File ( getCommunityHomePath ( ) , toSystemDependentName ( relativePath ) ) ; if ( ! file . exists ( ) ) { throw new IllegalArgumentException ( "Cannot find file '" + relativePath + "' under '" + getCommunityHomePath ( ) + "' directory" ) ; } return file ; }
find file by its path relative to ' community ' directory irrespective of current project
