Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Intellij Community
Commits
c4664aa6
Commit
c4664aa6
authored
7 years ago
by
Vasily Romanikhin
Browse files
Options
Download
Plain Diff
Merge branch 'master' of git.labs.intellij.net:idea/community
parents
ae39f0bd
e3b9ca76
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
platform/core-impl/src/com/intellij/ide/plugins/PluginManagerCore.java
+5
-13
...-impl/src/com/intellij/ide/plugins/PluginManagerCore.java
with
5 additions
and
13 deletions
+5
-13
platform/core-impl/src/com/intellij/ide/plugins/PluginManagerCore.java
+
5
-
13
View file @
c4664aa6
...
...
@@ -57,7 +57,10 @@ import org.jetbrains.annotations.TestOnly;
import
java.io.*
;
import
java.lang.reflect.InvocationTargetException
;
import
java.lang.reflect.Method
;
import
java.net.*
;
import
java.net.MalformedURLException
;
import
java.net.URISyntaxException
;
import
java.net.URL
;
import
java.net.URLClassLoader
;
import
java.util.*
;
import
java.util.zip.ZipEntry
;
import
java.util.zip.ZipFile
;
...
...
@@ -677,7 +680,7 @@ public class PluginManagerCore {
@NotNull
JDOMXIncluder
.
PathResolver
pathResolver
,
@NotNull
LoadingContext
context
)
{
try
{
URL
jarURL
=
URLUtil
.
getJarEntryURL
(
file
,
getNormalizedPathInJar
(
fileName
));
URL
jarURL
=
URLUtil
.
getJarEntryURL
(
file
,
FileUtil
.
toCanonicalPath
(
META_INF
+
'/'
+
fileName
,
'/'
));
ZipFile
zipFile
=
context
.
myOpenedFiles
.
get
(
file
);
if
(
zipFile
==
null
)
{
...
...
@@ -704,17 +707,6 @@ public class PluginManagerCore {
return
null
;
}
@NotNull
private
static
String
getNormalizedPathInJar
(
@NotNull
String
pathInJar
)
{
String
absolutePathInJar
=
META_INF
+
'/'
+
pathInJar
;
try
{
return
new
URI
(
absolutePathInJar
).
normalize
().
getPath
();
}
catch
(
URISyntaxException
ignored
)
{
}
return
absolutePathInJar
;
}
@Nullable
public
static
IdeaPluginDescriptorImpl
loadDescriptor
(
@NotNull
final
File
file
,
@NotNull
String
fileName
)
{
try
(
LoadingContext
context
=
new
LoadingContext
())
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
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