Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
Openfire
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Openfire
Commits
ee9e5f47
Commit
ee9e5f47
authored
May 29, 2014
by
Christian Schudt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace deprecated toURL() with toURI().toURL() as per the JavaDoc
parent
31acd101
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
PluginClassLoader.java
...rg/jivesoftware/openfire/container/PluginClassLoader.java
+4
-4
PluginManager.java
...va/org/jivesoftware/openfire/container/PluginManager.java
+1
-1
Launcher.java
src/java/org/jivesoftware/openfire/launcher/Launcher.java
+1
-1
No files found.
src/java/org/jivesoftware/openfire/container/PluginClassLoader.java
View file @
ee9e5f47
...
...
@@ -66,25 +66,25 @@ public class PluginClassLoader extends URLClassLoader {
// Add classes directory to classpath.
File
classesDir
=
new
File
(
directory
,
"classes"
);
if
(
classesDir
.
exists
())
{
addURL
(
classesDir
.
toURL
());
addURL
(
classesDir
.
toUR
I
().
toUR
L
());
}
// Add i18n directory to classpath.
File
databaseDir
=
new
File
(
directory
,
"database"
);
if
(
databaseDir
.
exists
()){
addURL
(
databaseDir
.
toURL
());
addURL
(
databaseDir
.
toUR
I
().
toUR
L
());
}
// Add i18n directory to classpath.
File
i18nDir
=
new
File
(
directory
,
"i18n"
);
if
(
i18nDir
.
exists
()){
addURL
(
i18nDir
.
toURL
());
addURL
(
i18nDir
.
toUR
I
().
toUR
L
());
}
// Add web directory to classpath.
File
webDir
=
new
File
(
directory
,
"web"
);
if
(
webDir
.
exists
()){
addURL
(
webDir
.
toURL
());
addURL
(
webDir
.
toUR
I
().
toUR
L
());
}
// Add lib directory to classpath.
...
...
src/java/org/jivesoftware/openfire/container/PluginManager.java
View file @
ee9e5f47
...
...
@@ -409,7 +409,7 @@ public class PluginManager {
if
(
classes
.
exists
())
{
dev
.
setClassesDir
(
classes
);
pluginLoader
.
addURLFile
(
classes
.
getAbsoluteFile
().
toURL
());
pluginLoader
.
addURLFile
(
classes
.
getAbsoluteFile
().
toUR
I
().
toUR
L
());
}
}
}
...
...
src/java/org/jivesoftware/openfire/launcher/Launcher.java
View file @
ee9e5f47
...
...
@@ -595,7 +595,7 @@ public class Launcher {
// Just for fun. Show no matter what for two seconds.
Thread
.
sleep
(
2000
);
copy
(
plugin
.
toURL
(),
tempPluginsFile
);
copy
(
plugin
.
toUR
I
().
toUR
L
(),
tempPluginsFile
);
// If successfull, rename to real plugin name.
tempPluginsFile
.
renameTo
(
realPluginsFile
);
...
...
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