提交 765dea3c 编写于 作者: K kohsuke

jar files without .jar extension seems to confuse Java Web Start.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@2143 71c3de6d-444a-0410-be80-ed276b4c234a
上级 b3b0b27f
......@@ -316,8 +316,8 @@ public final class Slave implements Node, Serializable {
/**
* Serves jar files for JNLP slave agents.
*/
public JnlpJar getJnlpJars(String fileName) {
return new JnlpJar(fileName);
public JnlpJar getJnlpJars(String fileNamePlusJar) {
return new JnlpJar(fileNamePlusJar.substring(0,fileNamePlusJar.length()-4)); // remove .jar
}
@Override
......
......@@ -3,6 +3,9 @@
<j:set var="rootURL"
value="${request.scheme}://${request.serverName}:${request.serverPort}${request.contextPath}" />
<!--
See http://www.dallaway.com/acad/webstart/ for obtaining the certificate.
-->
<l:isAdmin>
<!-- See http://java.sun.com/j2se/1.5.0/docs/guide/javaws/developersguide/syntax.html for the syntax -->
<jnlp spec="1.0+"
......@@ -20,8 +23,8 @@
<resources>
<j2se version="1.5"/>
<jar href="jnlpJars/hudson.jnlp.Main"/><!-- JNLP agent jar -->
<jar href="jnlpJars/hudson.remoting.Channel"/><!-- remoting jar -->
<jar href="jnlpJars/hudson.jnlp.Main.jar"/><!-- JNLP agent jar -->
<jar href="jnlpJars/hudson.remoting.Channel.jar"/><!-- remoting jar -->
</resources>
<application-desc main-class="hudson.jnlp.Main">
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册