handlebars-maven-plugin/src/main/java/com/github/jknack/handlebars/maven/I18nJsPlugin.java
private List<File> bundles(final String bundle, final URL[] classpath) throws Exception {
    Set<File> bundles = new LinkedHashSet<File>();
    for (URL url : classpath) {
      File dir = new File(url.toURI());
      bundles.addAll(FileUtils.getFiles(dir, bundle.replace(".", FileUtils.FS) + "*.properties",
          null));
    }
    return new ArrayList<File>(bundles);
  }
/**
   * List all the resource bundle found in the classpath.
   *
   * @param bundle The bundle's name.
   * @param classpath The project classpath.
   * @return Some resource bundles.
   * @throws Exception If something goes wrong.
   */
List all the resource bundle found in the classpath.
@param bundle The bundle's name.
@param classpath The project classpath.
@return Some resource bundles.
@throws Exception If something goes wrong.
List all the resource bundle found in the classpath . @param bundle The bundle ' s name . @param classpath The project classpath . @return Some resource bundles . @throws Exception If something goes wrong .
private List<File> bundles(final String bundle, final URL[] classpath) throws Exception {
    Set<File> bundles = new LinkedHashSet<File>();
    for (URL url : classpath) {
      File dir = new File(url.toURI());
      bundles.addAll(FileUtils.getFiles(dir, bundle.replace(".", FileUtils.FS) + "*.properties",
          null));
    }
    return new ArrayList<File>(bundles);
  }
private List < File > bundles ( final String bundle , final URL [ ] classpath ) throws Exception { Set < File > bundles = new LinkedHashSet < File > ( ) ; for ( URL url : classpath ) { File dir = new File ( url . toURI ( ) ) ; bundles . addAll ( FileUtils . getFiles ( dir , bundle . replace ( "." , FileUtils . FS ) + "*.properties" , null ) ) ; } return new ArrayList < File > ( bundles ) ; }
List all the resource bundle found in the classpath.
List all the resource bundle found in the classpath .