-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added init of classloader and dependencyloader
- Loading branch information
Showing
1 changed file
with
9 additions
and
3 deletions.
There are no files selected for viewing
12 changes: 9 additions & 3 deletions
12
smoothcloud-launcher/src/main/java/eu/smoothcloud/launcher/SmoothCloudLauncher.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |