src/share/classes/com/sun/tools/sjavac/CompileProperties.java

Print this page




  55     // Any extra information passed from the command line, for example if:
  56     // -tr .proppp=com.sun.tools.javac.smart.CompileProperties,sun.util.resources.LocaleNamesBundle
  57     // then extra will be "sun.util.resources.LocaleNamesBundle"
  58     String extra;
  59 
  60     public void setExtra(String e) {
  61         extra = e;
  62     }
  63 
  64     public void setExtra(Options a) {
  65     }
  66 
  67     public boolean transform(JavacService javacService,
  68                              Map<String,Set<URI>> pkgSrcs,
  69                              Set<URI>             visibleSrcs,
  70                              Map<URI,Set<String>> visibleClasses,
  71                              Map<String,Set<String>> oldPackageDependents,
  72                              URI destRoot,
  73                              Map<String,Set<URI>>    packageArtifacts,
  74                              Map<String,Set<String>> packageDependencies,
  75                              Map<String,String>      packagePublicApis,

  76                              int debugLevel,
  77                              boolean incremental,
  78                              int numCores,
  79                              PrintStream out,
  80                              PrintStream err) {
  81         boolean rc = true;
  82         for (String pkgName : pkgSrcs.keySet()) {
  83             String pkgNameF = Util.toFileSystemPath(pkgName);
  84             for (URI u : pkgSrcs.get(pkgName)) {
  85                 File src = new File(u);
  86                 boolean r = compile(pkgName, pkgNameF, src, new File(destRoot), debugLevel,
  87                                     packageArtifacts);
  88                 if (r == false) {
  89                     rc = false;
  90                 }
  91             }
  92         }
  93         return rc;
  94     }
  95 




  55     // Any extra information passed from the command line, for example if:
  56     // -tr .proppp=com.sun.tools.javac.smart.CompileProperties,sun.util.resources.LocaleNamesBundle
  57     // then extra will be "sun.util.resources.LocaleNamesBundle"
  58     String extra;
  59 
  60     public void setExtra(String e) {
  61         extra = e;
  62     }
  63 
  64     public void setExtra(Options a) {
  65     }
  66 
  67     public boolean transform(JavacService javacService,
  68                              Map<String,Set<URI>> pkgSrcs,
  69                              Set<URI>             visibleSrcs,
  70                              Map<URI,Set<String>> visibleClasses,
  71                              Map<String,Set<String>> oldPackageDependents,
  72                              URI destRoot,
  73                              Map<String,Set<URI>>    packageArtifacts,
  74                              Map<String,Set<String>> packageDependencies,
  75                              Map<String,List<String>> packagePublicApis,
  76                              Map<String,Set<String>> classpathPackageDependencies,
  77                              int debugLevel,
  78                              boolean incremental,
  79                              int numCores,
  80                              PrintStream out,
  81                              PrintStream err) {
  82         boolean rc = true;
  83         for (String pkgName : pkgSrcs.keySet()) {
  84             String pkgNameF = Util.toFileSystemPath(pkgName);
  85             for (URI u : pkgSrcs.get(pkgName)) {
  86                 File src = new File(u);
  87                 boolean r = compile(pkgName, pkgNameF, src, new File(destRoot), debugLevel,
  88                                     packageArtifacts);
  89                 if (r == false) {
  90                     rc = false;
  91                 }
  92             }
  93         }
  94         return rc;
  95     }
  96