< prev index next >

src/jdk.aot/share/classes/jdk.tools.jaotc/src/jdk/tools/jaotc/Options.java

Print this page
rev 59383 : [mq]: final
   1 /*
   2  * Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */


  55 
  56     int threads = Integer.min(COMPILER_THREADS, Runtime.getRuntime().availableProcessors());
  57 
  58     boolean ignoreClassLoadingErrors;
  59     boolean exitOnError;
  60     boolean info;
  61     boolean verbose;
  62     boolean debug;
  63     boolean help;
  64     boolean version;
  65     boolean compileWithAssertions;
  66     boolean tiered;
  67 
  68     private String defaultOutputName() {
  69         osName = System.getProperty("os.name");
  70         String name = "unnamed.";
  71         String ext;
  72 
  73         switch (osName) {
  74             case "Linux":
  75             case "SunOS":
  76                 ext = "so";
  77                 break;
  78             case "Mac OS X":
  79                 ext = "dylib";
  80                 break;
  81             default:
  82                 if (osName.startsWith("Windows")) {
  83                     ext = "dll";
  84                 } else {
  85                     ext = "so";
  86                 }
  87         }
  88 
  89         return name + ext;
  90     }
  91 
  92     static class BadArgs extends Exception {
  93         private static final long serialVersionUID = 1L;
  94         final String key;
  95         final Object[] args;


   1 /*
   2  * Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */


  55 
  56     int threads = Integer.min(COMPILER_THREADS, Runtime.getRuntime().availableProcessors());
  57 
  58     boolean ignoreClassLoadingErrors;
  59     boolean exitOnError;
  60     boolean info;
  61     boolean verbose;
  62     boolean debug;
  63     boolean help;
  64     boolean version;
  65     boolean compileWithAssertions;
  66     boolean tiered;
  67 
  68     private String defaultOutputName() {
  69         osName = System.getProperty("os.name");
  70         String name = "unnamed.";
  71         String ext;
  72 
  73         switch (osName) {
  74             case "Linux":

  75                 ext = "so";
  76                 break;
  77             case "Mac OS X":
  78                 ext = "dylib";
  79                 break;
  80             default:
  81                 if (osName.startsWith("Windows")) {
  82                     ext = "dll";
  83                 } else {
  84                     ext = "so";
  85                 }
  86         }
  87 
  88         return name + ext;
  89     }
  90 
  91     static class BadArgs extends Exception {
  92         private static final long serialVersionUID = 1L;
  93         final String key;
  94         final Object[] args;


< prev index next >