Skip to content

Commit 176aa0e

Browse files
author
Bohuslav Kabrda
committed
Allow distro packagers to alter BootClassPath
Since most of distributions have strict jar-unbundling rules, this hook allows the packagers to add unbundled jars to boot class path.
1 parent 4bf68f4 commit 176aa0e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

argparser.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -496,6 +496,14 @@ void ArgParser::constructBootClassPath() {
496496
addToBootClassPath(jruby_complete_jar.c_str());
497497
}
498498

499+
#ifdef DISTRO_BOOT_CLASS_PATH
500+
// hack converting macro to string
501+
#define STR_HACK2(x) #x
502+
#define STR_HACK(x) STR_HACK2(x)
503+
addToBootClassPath(STR_HACK(DISTRO_BOOT_CLASS_PATH));
504+
#endif
505+
506+
499507
logMsg("BootclassPath: %s", bootClassPath.c_str());
500508
}
501509

0 commit comments

Comments
 (0)