Exemple #1
0
 /** Returns the number of files to be generated if {@link #build} is invoked now. */
 public int countArtifacts() {
   int r = 0;
   JPackage[] pkgs = packages.values().toArray(new JPackage[packages.size()]);
   // avoid concurrent modification exception
   for (JPackage pkg : pkgs) r += pkg.countArtifacts();
   return r;
 }