mirror of https://github.com/sbt/sbt.git
Fix
Have IsolatedClassLoader get preserved by proguard (1.0.0-M10 regression)
This commit is contained in:
parent
15d2afb264
commit
b5b7f7714f
|
|
@ -33,11 +33,13 @@ object Launch {
|
||||||
mainClassLoader(cl.getParent)
|
mainClassLoader(cl.getParent)
|
||||||
}
|
}
|
||||||
|
|
||||||
class IsolatedClassLoader(
|
}
|
||||||
|
|
||||||
|
class IsolatedClassLoader(
|
||||||
urls: Array[URL],
|
urls: Array[URL],
|
||||||
parent: ClassLoader,
|
parent: ClassLoader,
|
||||||
isolationTargets: Array[String]
|
isolationTargets: Array[String]
|
||||||
) extends URLClassLoader(urls, parent) {
|
) extends URLClassLoader(urls, parent) {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Applications wanting to access an isolated `ClassLoader` should inspect the hierarchy of
|
* Applications wanting to access an isolated `ClassLoader` should inspect the hierarchy of
|
||||||
|
|
@ -47,8 +49,6 @@ object Launch {
|
||||||
*/
|
*/
|
||||||
def getIsolationTargets: Array[String] = isolationTargets
|
def getIsolationTargets: Array[String] = isolationTargets
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
case class Launch(
|
case class Launch(
|
||||||
|
|
@ -113,7 +113,7 @@ case class Launch(
|
||||||
Console.err.println(s" $f")
|
Console.err.println(s" $f")
|
||||||
}
|
}
|
||||||
|
|
||||||
val isolatedLoader = new Launch.IsolatedClassLoader(
|
val isolatedLoader = new IsolatedClassLoader(
|
||||||
isolatedFiles.map(_.toURI.toURL).toArray,
|
isolatedFiles.map(_.toURI.toURL).toArray,
|
||||||
parent,
|
parent,
|
||||||
Array(target)
|
Array(target)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue