Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EIP
Labrador
AuTA
Core
Commits
71c29d09
Commit
71c29d09
authored
Feb 25, 2021
by
Luc Everse
Browse files
Options
Downloads
Plain Diff
Merge branch 'optional-plugin-dir' into 'development'
Don't run the plugin loader if the dir is missing Closes
#255
See merge request
!154
parents
88beb988
6e871255
No related branches found
No related tags found
2 merge requests
!161
Release 2.3.2
,
!154
Don't run the plugin loader if the dir is missing
Pipeline
#429427
passed
Feb 25, 2021
Stage: test
Stage: jar
Stage: publish
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/src/main/java/nl/tudelft/ewi/auta/core/plugin/PluginLoader.java
+6
-0
6 additions, 0 deletions
...in/java/nl/tudelft/ewi/auta/core/plugin/PluginLoader.java
with
6 additions
and
0 deletions
core/src/main/java/nl/tudelft/ewi/auta/core/plugin/PluginLoader.java
+
6
−
0
View file @
71c29d09
...
...
@@ -22,6 +22,7 @@ import java.security.PrivilegedActionException;
import
java.security.PrivilegedExceptionAction
;
import
java.util.ArrayList
;
import
java.util.Collection
;
import
java.util.Collections
;
import
java.util.stream.Collectors
;
/**
...
...
@@ -92,6 +93,11 @@ public class PluginLoader {
this
.
settings
.
get
(
"plugins directory"
,
String
.
class
)
);
if
(
Files
.
notExists
(
dir
))
{
logger
.
warn
(
"Plugins directory {} does not exist, skipping plugins"
,
dir
);
return
Collections
.
emptyList
();
}
// Find all loadable jars in that directory
final
Collection
<
URL
>
urls
;
try
(
var
files
=
Files
.
list
(
dir
))
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment