Libraryless. Click here for Pure Java version (14632L/111K).
!7 static File packageModules(Standalone_OSWithSplashScreens s, O... _) { File outJar = javaxArtifactsDir(replace(s.programName, " ", "-") + ".jar"); ProgramPackager p = new (outJar, #1025015); optPar Cl<S> excludeSnippets; optPar Cl<S> extraSnippets; p.extraSnippets = concatLists(extraSnippets, map beforeSlash_orAll(concatLists(oddEntries(s.mainModules), oddEntries(s.helperModules)))); print("Have extra snippets: " + p.extraSnippets); p.excludeSnippets = excludeSnippets != null ? asSet(excludeSnippets) : programPackager_standardExcludedSnippets(); p.copyAdditionalFiles = voidfunc(ZipOutputStream jar) { addTextFileToZip(jar, "start.struct", struct(s)); }; p.includeBinaries = boolPar includeBinaries(_); p.includeCompiler = boolPar includeCompiler(_); p.includeSources = boolPar includeSources(_); p.go(); ret outJar; }
Began life as a copy of #1024623
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1025016 |
Snippet name: | packageModules - directly make a runnable jar from modules |
Eternal ID of this version: | #1025016/13 |
Text MD5: | 330ee31641ed3a883fdb873acac86caa |
Transpilation MD5: | e20be5f37177a061e08a3bb02c101036 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-09-01 17:38:27 |
Source code size: | 883 bytes / 20 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 259 / 418 |
Version history: | 12 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |