Lines Matching refs:env

474         BatchEnvironment env = BatchEnvironment.create(out,
481 env.sourcePath.toString(),
482 env.binaryPath.toString()));
485 env.flags |= flags;
486 env.majorVersion = majorVersion;
487 env.minorVersion = minorVersion;
489 env.covFile = covFile;
491 env.setCharacterEncoding(encoding);
498 env.error(0, "warn.class.is.deprecated", "sun.tools.javac.Main");
505 env.parseFile(new ClassFile(file));
507 env.error(0, "cant.read", file.getPath());
514 for (Enumeration e = env.getClasses() ; e.hasMoreElements() ; ) {
520 c.getClassDefinition(env);
532 env.flushErrors();
533 for (Enumeration e = env.getClasses() ; e.hasMoreElements() ; ) {
539 if (!env.dependencies()) {
546 env.dtEvent("Main.compile (SOURCE): loading, " + c);
548 env.loadDefinition(c);
551 env.dtEvent("Main.compile (SOURCE): not parsed, " + c);
560 env.dtEvent("Main.compile (PARSED): skipping local class, " + c);
564 if (tracing) env.dtEvent("Main.compile (PARSED): checking, " + c);
565 src = (SourceClass)c.getClassDefinition(env);
566 src.check(env);
571 src = (SourceClass)c.getClassDefinition(env);
575 env.dtEvent("Main.compile (CHECKED): bailing out on error, " + c);
582 env.dtEvent("Main.compile (CHECKED): compiling, " + c);
585 src.cleanup(env);
608 env.error(0, "cant.write", classfile.getPath());
622 if (env.verbose()) {
626 env.error(0, "cant.write", file.getPath());
631 if (env.print_dependencies()) {
632 src.printClassDependencies(env);
640 env.output(noMemoryErrorString);
644 env.output(stackOverflowErrorString);
651 if (env.nerrors == 0 || env.dump()) {
653 env.error(0, "fatal.error");
657 if (env.nerrors == 0 || env.dump()) {
659 env.error(0, "fatal.exception");
664 int ndepfiles = env.deprecationFiles.size();
665 if (ndepfiles > 0 && env.warnings()) {
666 int ndeps = env.ndeprecations;
667 Object file1 = env.deprecationFiles.elementAt(0);
668 if (env.deprecation()) {
670 env.error(0, "warn.note.deprecations",
673 env.error(0, "warn.note.1deprecation",
678 env.error(0, "warn.note.deprecations.silent",
681 env.error(0, "warn.note.1deprecation.silent",
687 env.flushErrors();
688 env.shutdown();
691 if (env.nerrors > 0) {
693 if (env.nerrors > 1) {
694 msg = getText("main.errors", env.nerrors);
698 if (env.nwarnings > 0) {
699 if (env.nwarnings > 1) {
700 msg += ", " + getText("main.warnings", env.nwarnings);
712 if (env.nwarnings > 0) {
713 if (env.nwarnings > 1) {
714 output(getText("main.warnings", env.nwarnings));
721 if (env.covdata()) {
723 CovAsm.GenJCov(env);
728 if (env.verbose()) {