Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
X
xwiki-platform
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
XWiki
xwiki-platform
Commits
8c080107
Commit
8c080107
authored
13 years ago
by
Vincent Massol
Browse files
Options
Downloads
Patches
Plain Diff
Fix typo
parent
50ca2224
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
xwiki-platform-core/xwiki-platform-rendering/xwiki-platform-rendering-macros/xwiki-platform-rendering-macro-script/src/main/java/org/xwiki/rendering/internal/macro/script/DefaultAttachmentClassLoaderFactory.java
+3
-3
3 additions, 3 deletions
...nal/macro/script/DefaultAttachmentClassLoaderFactory.java
with
3 additions
and
3 deletions
xwiki-platform-core/xwiki-platform-rendering/xwiki-platform-rendering-macros/xwiki-platform-rendering-macro-script/src/main/java/org/xwiki/rendering/internal/macro/script/DefaultAttachmentClassLoaderFactory.java
+
3
−
3
View file @
8c080107
...
...
@@ -69,7 +69,7 @@ public class DefaultAttachmentClassLoaderFactory implements AttachmentClassLoade
*/
@Inject
@Named
(
"attachmentjar"
)
private
ExtendedURLStreamHandler
attachmentJarHander
;
private
ExtendedURLStreamHandler
attachmentJarHand
l
er
;
/**
* {@inheritDoc}
...
...
@@ -88,7 +88,7 @@ public ExtendedURLClassLoader createAttachmentClassLoader(String jarURLs, ClassL
public
void
extendAttachmentClassLoader
(
String
jarURLs
,
ExtendedURLClassLoader
source
)
throws
Exception
{
for
(
URI
uri
:
extractURIs
(
jarURLs
))
{
if
(
uri
.
getScheme
().
equalsIgnoreCase
(
this
.
attachmentJarHander
.
getProtocol
()))
{
if
(
uri
.
getScheme
().
equalsIgnoreCase
(
this
.
attachmentJarHand
l
er
.
getProtocol
()))
{
source
.
addURL
(
new
URL
(
null
,
uri
.
toString
(),
this
.
streamHandlerFactory
.
createURLStreamHandler
(
uri
.
getScheme
())));
}
else
{
...
...
@@ -144,6 +144,6 @@ private URI createURI(String attachmentReference) throws URISyntaxException
throw
new
RuntimeException
(
"Failed to URL encode ["
+
uriBody
+
"] using UTF-8."
,
e
);
}
return
new
URI
(
this
.
attachmentJarHander
.
getProtocol
()
+
"://"
+
uriBody
);
return
new
URI
(
this
.
attachmentJarHand
l
er
.
getProtocol
()
+
"://"
+
uriBody
);
}
}
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