src/share/classes/sun/tools/javac/Main.java

Print this page




 175             return MessageFormat.format(message, fixed1, fixed2, fixed3);
 176         } catch (MissingResourceException e) {
 177             if (fixed1 == null)  fixed1 = "null";
 178             if (fixed2 == null)  fixed2 = "null";
 179             if (fixed3 == null)  fixed3 = "null";
 180             String message = "JAVAC MESSAGE FILE IS BROKEN: key={0}, arguments={1}, {2}, {3}";
 181             return MessageFormat.format(message, key, fixed1, fixed2, fixed3);
 182         }
 183     }
 184 
 185     // What major and minor version numbers to use for the -target flag.
 186     // This should grow every time the minor version number accepted by
 187     // the VM is incremented.
 188     private static final String[] releases =      { "1.1", "1.2", "1.3", "1.4" };
 189     private static final short[] majorVersions =  {    45,    46,    47,    48 };
 190     private static final short[] minorVersions =  {     3,     0,     0,     0 };
 191 
 192     /**
 193      * Run the compiler
 194      */

 195     public synchronized boolean compile(String argv[]) {
 196         String sourcePathArg = null;
 197         String classPathArg = null;
 198         String sysClassPathArg = null;
 199         String extDirsArg = null;
 200         boolean verbosePath = false;
 201 
 202         String targetArg = null;
 203         short majorVersion = JAVA_DEFAULT_VERSION;
 204         short minorVersion = JAVA_DEFAULT_MINOR_VERSION;
 205 
 206         File destDir = null;
 207 //JCOV
 208         File covFile = null;
 209         String optJcov = "-Xjcov";
 210         String optJcovFile = "-Xjcov:file=";
 211 //end JCOV
 212         int flags = F_WARNINGS | F_DEBUG_LINES | F_DEBUG_SOURCE;
 213         long tm = System.currentTimeMillis();
 214         Vector v = new Vector();




 175             return MessageFormat.format(message, fixed1, fixed2, fixed3);
 176         } catch (MissingResourceException e) {
 177             if (fixed1 == null)  fixed1 = "null";
 178             if (fixed2 == null)  fixed2 = "null";
 179             if (fixed3 == null)  fixed3 = "null";
 180             String message = "JAVAC MESSAGE FILE IS BROKEN: key={0}, arguments={1}, {2}, {3}";
 181             return MessageFormat.format(message, key, fixed1, fixed2, fixed3);
 182         }
 183     }
 184 
 185     // What major and minor version numbers to use for the -target flag.
 186     // This should grow every time the minor version number accepted by
 187     // the VM is incremented.
 188     private static final String[] releases =      { "1.1", "1.2", "1.3", "1.4" };
 189     private static final short[] majorVersions =  {    45,    46,    47,    48 };
 190     private static final short[] minorVersions =  {     3,     0,     0,     0 };
 191 
 192     /**
 193      * Run the compiler
 194      */
 195     @SuppressWarnings("fallthrough")
 196     public synchronized boolean compile(String argv[]) {
 197         String sourcePathArg = null;
 198         String classPathArg = null;
 199         String sysClassPathArg = null;
 200         String extDirsArg = null;
 201         boolean verbosePath = false;
 202 
 203         String targetArg = null;
 204         short majorVersion = JAVA_DEFAULT_VERSION;
 205         short minorVersion = JAVA_DEFAULT_MINOR_VERSION;
 206 
 207         File destDir = null;
 208 //JCOV
 209         File covFile = null;
 210         String optJcov = "-Xjcov";
 211         String optJcovFile = "-Xjcov:file=";
 212 //end JCOV
 213         int flags = F_WARNINGS | F_DEBUG_LINES | F_DEBUG_SOURCE;
 214         long tm = System.currentTimeMillis();
 215         Vector v = new Vector();