From 1c0876d0d5afafdd6472fbb873a5472fb62adf0a Mon Sep 17 00:00:00 2001 From: Jiri Vanek Date: Wed, 13 Nov 2013 09:48:41 +0100 Subject: Enabled access to manifests' attributes from JNLPFile class, implemented http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/manifest.html#app_name --- .../net/sourceforge/jnlp/mock/DummyJNLPFileWithJar.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'tests/test-extensions/net/sourceforge/jnlp/mock') diff --git a/tests/test-extensions/net/sourceforge/jnlp/mock/DummyJNLPFileWithJar.java b/tests/test-extensions/net/sourceforge/jnlp/mock/DummyJNLPFileWithJar.java index 0ef4e10..018f044 100644 --- a/tests/test-extensions/net/sourceforge/jnlp/mock/DummyJNLPFileWithJar.java +++ b/tests/test-extensions/net/sourceforge/jnlp/mock/DummyJNLPFileWithJar.java @@ -4,6 +4,7 @@ import java.io.File; import java.net.MalformedURLException; import java.net.URL; import java.util.ArrayList; +import java.util.List; import java.util.Locale; import net.sourceforge.jnlp.InformationDesc; @@ -21,7 +22,6 @@ public class DummyJNLPFileWithJar extends JNLPFile { return new JARDesc(jarLocation, new Version("1"), null, false,main, false,false); } - private final URL codeBase; private final JARDesc[] jarDescs; private final File[] jarFiles; @@ -91,4 +91,10 @@ public class DummyJNLPFileWithJar extends JNLPFile { public SecurityDesc getSecurity() { return new SecurityDesc(this, SecurityDesc.SANDBOX_PERMISSIONS, null); } + + public void setInfo(List info) { + this.info = info; + } + + } \ No newline at end of file -- cgit v1.2.3