svoid standalone_unpackGazelleConcepts(File unpackDir) { File conceptsArchive = newFile(unpackDir, "gazelle-concepts.zip"); stream2file(mc().getResourceAsStream("/" + conceptsArchive.getName()), conceptsArchive); for (S path : filesInZipFile(conceptsArchive)) { S progID = regexpFirstGroup("(#[0-9]+)/concepts.structure.gz", path); if (progID == null) continue with warn("Bad file name: " + path); print("Overwriting concepts of " + progID); clearConceptsOf(progID); extractFileFromZip(conceptsArchive, path, javaxDataDir(path)); } }
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: | 504 / 536 |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1029756 - extractResource |