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

10
LINES

< > BotCompany Repo | #1027677 // dm_changeAllInstancesOfLibID

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2733L/17K).

// returns list of changed modules
static LS dm_changeAllInstancesOfLibID(S oldLibID, S newLibID) {
  if (eq(oldLibID, newLibID)) ret emptyList();
  LS l = splitAtSlash(newLibID);
  if (l(l) != 2) fail("Not a valid lib ID: " + quote(newLibID));
  LS list = dm_modulesWithLibID(oldLibID);
  for (S mod : list)
    dm_changeModuleLibID(mod, newLibID);
  ret list;
}

Author comment

Began life as a copy of #1027651

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1027677
Snippet name: dm_changeAllInstancesOfLibID
Eternal ID of this version: #1027677/3
Text MD5: 472d95d9985f6988ae769c65ef0fb043
Transpilation MD5: ee286aa3b9e20e7acfdd66c71f4a5d98
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-03-30 00:57:14
Source code size: 372 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 162 / 234
Version history: 2 change(s)
Referenced in: [show references]