Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

15
LINES

< > BotCompany Repo | #1009120 // restartWithVMArgs

JavaX fragment (include)

static double restartWithVMArgs_delay = 1;

static void restartWithVMArgs(S[] args, S preferredVMArguments) {
  if (!containsAll(vmArguments(), splitAtSpace(preferredVMArguments))) {
    print("Have VM args: " + vmArguments());
    print("Restarting with VM args: " + preferredVMArguments);
    sleepSeconds(restartWithVMArgs_delay);
    directNohupJavax(programID() + " " + smartJoin(args), preferredVMArguments);
    cleanKill();
  }
}

static void restartWithVMArgs(S preferredVMArguments) {
  restartWithVMArgs(programArgs(), preferredVMArguments);
}

Author comment

Began life as a copy of #1009115

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1009120
Snippet name: restartWithVMArgs
Eternal ID of this version: #1009120/7
Text MD5: e90c3fedd4effcf0368c1644548f53ac
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-04-22 13:37:52
Source code size: 568 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 527 / 590
Version history: 6 change(s)
Referenced in: [show references]