Skip to content

Commit

Permalink
chicken and egg issue
Browse files Browse the repository at this point in the history
  • Loading branch information
lmajano committed Jan 17, 2025
1 parent 0e22581 commit 24f3343
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions src/main/java/ortus/boxlang/runtime/BoxRuntime.java
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,16 @@ private void startup( Boolean debugMode ) {
loadConfiguration( debugMode, this.configPath );
// Anythying below might use configuration items

// Ensure home assets
ensureHomeAssets();

// Load the Dynamic Class Loader for the runtime
this.runtimeLoader = new DynamicClassLoader(
Key.runtime,
getConfiguration().getJavaLibraryPaths(),
this.getClass().getClassLoader(),
true );

// Announce it to the services
this.interceptorService.onConfigurationLoad();
this.asyncService.onConfigurationLoad();
Expand All @@ -480,17 +490,8 @@ private void startup( Boolean debugMode ) {
this.schedulerService.onConfigurationLoad();
this.dataSourceService.onConfigurationLoad();

// Ensure home assets
ensureHomeAssets();

// Load the Dynamic Class Loader for the runtime
this.runtimeLoader = new DynamicClassLoader(
Key.runtime,
getConfiguration().getJavaLibraryPaths(),
this.getClass().getClassLoader(),
true );
// Startup the right Compiler
this.boxpiler = chooseBoxpiler();
this.boxpiler = chooseBoxpiler();
// Seed Mathematical Precision for the runtime
MathUtil.setHighPrecisionMath( getConfiguration().useHighPrecisionMath );

Expand Down

0 comments on commit 24f3343

Please sign in to comment.