Skip to content
Permalink
Browse files
Ensure server type is set for fast startup modes
  • Loading branch information
PseudoKnight committed Apr 10, 2020
1 parent ef32fe0 commit 6be247750077b0d77c26c734a4e37a5aed5aeb10
Showing 1 changed file with 1 addition and 1 deletion.
@@ -161,6 +161,7 @@ public static CmdlineToolCollection GetCommandLineTools() {

@SuppressWarnings("ResultOfObjectAllocationIgnored")
public static void main(String[] args) throws Exception {
Implementation.setServerType(Implementation.Type.SHELL);
if(args.length > 0) {
for(Class c : FAST_STARTUP) {
String tool = ((tool) c.getAnnotation(tool.class)).value();
@@ -189,7 +190,6 @@ public static void main(String[] args) throws Exception {
}
ClassDiscovery cd = ClassDiscovery.getDefaultInstance();
cd.addThisJar();
Implementation.setServerType(Implementation.Type.SHELL);
MethodScriptFileLocations.setDefault(new MethodScriptFileLocations());
ClassDiscoveryCache cdcCache
= new ClassDiscoveryCache(MethodScriptFileLocations.getDefault().getCacheDirectory());

0 comments on commit 6be2477

Please sign in to comment.