Exemple #1
0
 void setContext(Context context) {
   log = Log.instance(context);
   options = Options.instance(context);
   lint = Lint.instance(context);
   fsInfo = FSInfo.instance(context);
   config = CompilerConfig.instance(context);
 }
Exemple #2
0
 /** Is this the name of an archive file? */
 private boolean isArchive(File file) {
   String n = file.getName().toLowerCase();
   return fsInfo.isFile(file) && (n.endsWith(".jar") || n.endsWith(".zip"));
 }