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

11
LINES

< > BotCompany Repo | #1018835 // addToDefaultVMArgs

JavaX fragment (include)

1  
svoid addToDefaultVMArgs(S newArgs) {
2  
  LS split = splitJavaVMArgs(newArgs);
3  
  S originalArgs = javaxDefaultVMArgs(), args = originalArgs;
4  
  for (S s : split) {
5  
    S arg = takeFirst(s, smartIndexOf(s, '='));
6  
    if (contains(args, arg)) continue;
7  
    args += " " + s;
8  
  }
9  
  if (neq(args, originalArgs))
10  
    setDefaultVMArgs(args);
11  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1018835
Snippet name: addToDefaultVMArgs
Eternal ID of this version: #1018835/3
Text MD5: 934bbb086e963389807aee6b67198d11
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-10-14 00:50:42
Source code size: 343 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 361 / 406
Version history: 2 change(s)
Referenced in: [show references]