Skip to content

Commit

Permalink
added init of classloader and dependencyloader
Browse files Browse the repository at this point in the history
  • Loading branch information
ezTxmMC committed Dec 29, 2024
1 parent b29f598 commit d005555
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
package eu.smoothcloud.launcher;

import eu.smoothcloud.launcher.dependency.DependencyLoader;
import eu.smoothcloud.launcher.dependency.InternalDependencyLoader;
import eu.smoothcloud.launcher.util.JarLoader;

import java.nio.file.Path;

public class SmoothCloudLauncher {
private static SmoothCloudClassLoader classLoader;
private static DependencyLoader dependencyLoader;

public static void main(String[] args) {
DependencyLoader.loadExternalDependencys();
InternalDependencyLoader.loadInternalDependencys();
classLoader = new SmoothCloudClassLoader();
dependencyLoader = new DependencyLoader("dependencies");
dependencyLoader.loadDependencys();
System.out.println("Start Node Module!");
JarLoader.loadJar(Path.of("dependencies/eu.smoothcloud/smoothcloud-node-1.0.0-dev.jar"), args);
}

public static SmoothCloudClassLoader getClassLoader() {
return classLoader;
}
}

0 comments on commit d005555

Please sign in to comment.