< prev index next >

src/jdk.incubator.jpackage/share/native/applauncher/JvmLauncher.h

Print this page




  33 
  34 
  35 class Jvm {
  36 public:
  37     Jvm& initFromConfigFile(const CfgFile& cfgFile);
  38 
  39     Jvm& addArgument(const tstring& value) {
  40         args.push_back(value);
  41         return *this;
  42     }
  43 
  44     Jvm& setPath(const tstring& v) {
  45         jvmPath = v;
  46         return *this;
  47     }
  48 
  49     tstring getPath() const {
  50         return jvmPath;
  51     }
  52 




  53     void launch();
  54 
  55 private:
  56     tstring jvmPath;
  57     tstring_array args;
  58 };
  59 
  60 #endif // JvmLauncher_h


  33 
  34 
  35 class Jvm {
  36 public:
  37     Jvm& initFromConfigFile(const CfgFile& cfgFile);
  38 
  39     Jvm& addArgument(const tstring& value) {
  40         args.push_back(value);
  41         return *this;
  42     }
  43 
  44     Jvm& setPath(const tstring& v) {
  45         jvmPath = v;
  46         return *this;
  47     }
  48 
  49     tstring getPath() const {
  50         return jvmPath;
  51     }
  52 
  53     bool isWithSplash() const;
  54 
  55     bool isClientJvm() const;
  56 
  57     void launch();
  58 
  59 private:
  60     tstring jvmPath;
  61     tstring_array args;
  62 };
  63 
  64 #endif // JvmLauncher_h
< prev index next >