Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cdn
taskman-lite
Commits
562bb36b
Commit
562bb36b
authored
10 years ago
by
Simon Rettberg
Browse files
Options
Download
Email Patches
Plain Diff
Rework plugin loading a little
parent
49827801
master
develop
merge
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
daemon/src/main/java/org/openslx/taskmanager/App.java
+2
-1
daemon/src/main/java/org/openslx/taskmanager/App.java
daemon/src/main/java/org/openslx/taskmanager/util/ClassLoaderHack.java
+1
-1
...in/java/org/openslx/taskmanager/util/ClassLoaderHack.java
with
3 additions
and
2 deletions
+3
-2
daemon/src/main/java/org/openslx/taskmanager/App.java
+
2
-
1
View file @
562bb36b
...
...
@@ -20,7 +20,9 @@ public class App
public
static
void
main
(
String
[]
args
)
throws
SocketException
{
BasicConfigurator
.
configure
();
// Load all task plugins
Thread
.
currentThread
().
setContextClassLoader
(
ClassLoader
.
getSystemClassLoader
()
);
File
folder
=
new
File
(
"./plugins"
);
if
(
!
folder
.
exists
()
)
{
System
.
out
.
println
(
"No plugin folder found - nothing to do."
);
...
...
@@ -37,7 +39,6 @@ public class App
System
.
exit
(
1
);
}
}
BasicConfigurator
.
configure
();
Environment
.
load
(
"config/environment"
);
NetworkHandler
.
init
();
Taskmanager
.
run
();
...
...
This diff is collapsed.
Click to expand it.
daemon/src/main/java/org/openslx/taskmanager/util/ClassLoaderHack.java
+
1
-
1
View file @
562bb36b
...
...
@@ -53,7 +53,7 @@ public class ClassLoaderHack
{
final
Class
<?>
clazz
;
try
{
clazz
=
Class
.
forName
(
packageName
+
'.'
+
className
,
true
,
ClassLoader
.
getSystemClassLoader
()
);
clazz
=
Class
.
forName
(
packageName
+
'.'
+
className
);
}
catch
(
ClassNotFoundException
e
)
{
return
null
;
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help