/hg/icedtea-web: (DummyJNLPFileWithJar) fixed accidentall call t...
jvanek at icedtea.classpath.org
jvanek at icedtea.classpath.org
Mon Jun 22 17:48:22 UTC 2015
changeset 01d833792fbd in /hg/icedtea-web
details: http://icedtea.classpath.org/hg/icedtea-web?cmd=changeset;node=01d833792fbd
author: Jiri Vanek <jvanek at redhat.com>
date: Mon Jun 22 19:48:08 2015 +0200
(DummyJNLPFileWithJar) fixed accidentall call to getParentFile
diffstat:
tests/test-extensions/net/sourceforge/jnlp/mock/DummyJNLPFileWithJar.java | 13 +++++----
1 files changed, 7 insertions(+), 6 deletions(-)
diffs (34 lines):
diff -r 6f6aa0416960 -r 01d833792fbd tests/test-extensions/net/sourceforge/jnlp/mock/DummyJNLPFileWithJar.java
--- a/tests/test-extensions/net/sourceforge/jnlp/mock/DummyJNLPFileWithJar.java Mon Jun 22 16:44:52 2015 +0200
+++ b/tests/test-extensions/net/sourceforge/jnlp/mock/DummyJNLPFileWithJar.java Mon Jun 22 19:48:08 2015 +0200
@@ -29,23 +29,24 @@
this(-1, jarFiles);
}
- public DummyJNLPFileWithJar(URL... jarFiles) throws MalformedURLException {
- this(-1, jarFiles);
+ public DummyJNLPFileWithJar(URL codebaseRewritter, URL... jarFiles) throws MalformedURLException {
+ this(-1, codebaseRewritter, jarFiles);
}
public DummyJNLPFileWithJar(int main, File... jarFiles) throws MalformedURLException {
- this(main, filesToUrls(jarFiles));
+ this(main, jarFiles[0].getParentFile().toURI().toURL(), filesToUrls(jarFiles));
+
}
private static URL[] filesToUrls(File[] f) throws MalformedURLException{
URL[] r = new URL[f.length];
for (int i = 0; i < f.length; i++) {
- r[i]=f[i].getParentFile().toURI().toURL();
+ r[i]=f[i].toURI().toURL();
}
return r;
}
- public DummyJNLPFileWithJar(int main, URL... jarFiles) throws MalformedURLException {
- codeBase = jarFiles[0];
+ public DummyJNLPFileWithJar(int main, URL codebaseRewritter, URL... jarFiles) throws MalformedURLException {
+ codeBase = codebaseRewritter;
this.jarFiles = jarFiles;
jarDescs = new JARDesc[jarFiles.length];
More information about the distro-pkg-dev
mailing list