langtools/src/share/classes/com/sun/tools/javac/main/Main.java
changeset 1208 5072b0dd3d52
parent 735 372aa565a221
child 1471 57506cdfb7b4
equal deleted inserted replaced
1206:3a05355982a9 1208:5072b0dd3d52
    29 import java.io.IOException;
    29 import java.io.IOException;
    30 import java.io.PrintWriter;
    30 import java.io.PrintWriter;
    31 import java.util.MissingResourceException;
    31 import java.util.MissingResourceException;
    32 
    32 
    33 import com.sun.tools.javac.code.Source;
    33 import com.sun.tools.javac.code.Source;
       
    34 import com.sun.tools.javac.file.CacheFSInfo;
    34 import com.sun.tools.javac.file.JavacFileManager;
    35 import com.sun.tools.javac.file.JavacFileManager;
    35 import com.sun.tools.javac.jvm.Target;
    36 import com.sun.tools.javac.jvm.Target;
    36 import com.sun.tools.javac.main.JavacOption.Option;
    37 import com.sun.tools.javac.main.JavacOption.Option;
    37 import com.sun.tools.javac.main.RecognizedOptions.OptionHelper;
    38 import com.sun.tools.javac.main.RecognizedOptions.OptionHelper;
    38 import com.sun.tools.javac.util.*;
    39 import com.sun.tools.javac.util.*;
   365                 out.flush();
   366                 out.flush();
   366                 out = new PrintWriter(System.out, true);
   367                 out = new PrintWriter(System.out, true);
   367             }
   368             }
   368 
   369 
   369             context.put(Log.outKey, out);
   370             context.put(Log.outKey, out);
       
   371 
       
   372             // allow System property in following line as a Mustang legacy
       
   373             boolean batchMode = (options.get("nonBatchMode") == null
       
   374                         && System.getProperty("nonBatchMode") == null);
       
   375             if (batchMode)
       
   376                 CacheFSInfo.preRegister(context);
   370 
   377 
   371             fileManager = context.get(JavaFileManager.class);
   378             fileManager = context.get(JavaFileManager.class);
   372 
   379 
   373             comp = JavaCompiler.instance(context);
   380             comp = JavaCompiler.instance(context);
   374             if (comp == null) return EXIT_SYSERR;
   381             if (comp == null) return EXIT_SYSERR;