Created
May 16, 2019 21:05
-
-
Save neokoenig/cd54c870007845fd500e7c624d1b9a63 to your computer and use it in GitHub Desktop.
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
// If a plugin has a jar or class file, automatically add the mapping to this.javasettings. | |
this.wheels.pluginDir = this.wheels.rootPath & "plugins"; | |
this.wheels.pluginFolders = DirectoryList(this.wheels.pluginDir, "true", "path", "*.class|*.jar|*.java"); | |
for (this.wheels.folder in this.wheels.pluginFolders) { | |
if(!structKeyExists(this, "javaSettings")){ | |
this.javaSettings={}; | |
} | |
if(!structKeyExists(this.javaSettings, "LoadPaths")){ | |
this.javaSettings.LoadPaths=[]; | |
} | |
this.wheels.pluginPath = GetDirectoryFromPath(this.wheels.folder); | |
if (!ArrayFind(this.javaSettings.LoadPaths, this.wheels.pluginPath)) { | |
ArrayAppend(this.javaSettings.LoadPaths, this.wheels.pluginPath); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment