1 | svoid standalone_unpackGazelleConcepts(File unpackDir) { |
2 | File conceptsArchive = newFile(unpackDir, "gazelle-concepts.zip"); |
3 | stream2file(mc().getResourceAsStream("/" + conceptsArchive.getName()), conceptsArchive); |
4 | |
5 | for (S path : filesInZipFile(conceptsArchive)) { |
6 | S progID = regexpFirstGroup("(#[0-9]+)/concepts.structure.gz", path); |
7 | if (progID == null) continue with warn("Bad file name: " + path); |
8 | print("Overwriting concepts of " + progID); |
9 | clearConceptsOf(progID); |
10 | extractFileFromZip(conceptsArchive, path, javaxDataDir(path)); |
11 | } |
12 | } |
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1022671 |
Snippet name: | standalone_unpackGazelleConcepts |
Eternal ID of this version: | #1022671/1 |
Text MD5: | 2ea1970ccd6195245bd10c866e956243 |
Author: | stefan |
Category: | javax / gazelle |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-03-31 15:46:22 |
Source code size: | 575 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 288 / 319 |
Referenced in: | [show references] |