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
This commit is contained in:
kohsuke committed 2007-02-10 22:29:37 +00:00
1 parent b3b0b27f8d
commit 765dea3cc1
2 files changed
+7 -4

No files matched your search

+2 -2
View File
@@ -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