提交 83f204fd 编写于 作者: K Kohsuke Kawaguchi

[FIXED JENKINS-10689]

integrating newer version of HtmlUnit to fix
memory inefficiency problem.
上级 cfc63491
......@@ -55,7 +55,9 @@ Upcoming changes</a>
<!-- Record your changes in the trunk here. -->
<div id="trunk" style="display:none"><!--=TRUNK-BEGIN=-->
<ul class=image>
<li class=>
<li class=bug>
Fixed the OutOfMemoryError in trying to download/install JDK
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-10689">issue 10689</a>)
</ul>
</div><!--=TRUNK-END=-->
......
......@@ -157,7 +157,7 @@ THE SOFTWARE.
<dependency>
<groupId>org.jenkins-ci</groupId>
<artifactId>htmlunit</artifactId>
<version>2.6-jenkins-4</version>
<version>2.6-jenkins-5</version>
<exclusions>
<exclusion>
<groupId>xml-apis</groupId>
......
......@@ -393,9 +393,6 @@ public class JDKInstaller extends ToolInstaller {
throw new IOException("Unable to find the login form in "+html.asXml());
}
// TODO: there's awful inefficiency in htmlunit where it loads the whole binary into one big byte array.
// needs to modify it to use temporary file or something
// download to a temporary file and rename it in to handle concurrency and failure correctly,
File tmp = new File(cache.getPath()+".tmp");
tmp.getParentFile().mkdirs();
......
......@@ -100,7 +100,7 @@ THE SOFTWARE.
<dependency>
<groupId>org.jenkins-ci</groupId>
<artifactId>htmlunit</artifactId>
<version>2.6-jenkins-4</version>
<version>2.6-jenkins-5</version>
<exclusions>
<exclusion>
<!-- hides JDK DOM classes in Eclipse -->
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册