set flag AllPublic.
static Class<?> hotwireSharingClasses(S progID, Class... classesToShare) ctex {
Pair<File, S> p = CompilerBot.compileSnippet2(progID);
File jar = p.a;
assertTrue(f2s(jar), jar.isFile());
// collect files (program + libraries)
L<File> files = ll(jar);
S dehlibs = unnull(loadTextFileFromZip(jar, "libraries"));
L<File> myLibraries = myLibraryFiles();
Matcher matcher = Pattern.compile("\\d+").matcher(dehlibs);
while (matcher.find())
files.add(loadLibrary(matcher.group()));
// make class loader
JavaXClassLoaderWithParent2 classLoader = new(progID, files, myClassLoader(), map className(classesToShare));
ret hotwire_finish(classLoader, progID, p.b);
}Began life as a copy of #1010562
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1011217 |
| Snippet name: | hotwireSharingClasses |
| Eternal ID of this version: | #1011217/4 |
| Text MD5: | 9aec02cd1418300889210db312a3840a |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-10-19 20:28:06 |
| Source code size: | 737 bytes / 23 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 916 / 941 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |