aboutsummaryrefslogtreecommitdiffstats
path: root/plugin/icedteanp/java/sun/applet/PluginMain.java
diff options
context:
space:
mode:
authorJiri Vanek <[email protected]>2013-11-05 20:07:27 +0100
committerJiri Vanek <[email protected]>2013-11-05 20:07:27 +0100
commit8f59c1b0bf5fed4fce80ebcc0bc588e62dde706d (patch)
tree96448b23078bd930c2786b76c5d0e168ccd63a73 /plugin/icedteanp/java/sun/applet/PluginMain.java
parent7b561bedfe5dec3afe77574ef879b91f942db735 (diff)
Java console resurrected and connected to new logging.
Diffstat (limited to 'plugin/icedteanp/java/sun/applet/PluginMain.java')
-rw-r--r--plugin/icedteanp/java/sun/applet/PluginMain.java12
1 files changed, 9 insertions, 3 deletions
diff --git a/plugin/icedteanp/java/sun/applet/PluginMain.java b/plugin/icedteanp/java/sun/applet/PluginMain.java
index cef5313..e6ba080 100644
--- a/plugin/icedteanp/java/sun/applet/PluginMain.java
+++ b/plugin/icedteanp/java/sun/applet/PluginMain.java
@@ -75,6 +75,7 @@ import java.net.URL;
import java.net.URLStreamHandler;
import java.util.Enumeration;
import java.util.Hashtable;
+import java.util.Map;
import java.util.Properties;
import sun.awt.AppContext;
import sun.awt.SunToolkit;
@@ -82,15 +83,13 @@ import sun.awt.SunToolkit;
import net.sourceforge.jnlp.config.DeploymentConfiguration;
import net.sourceforge.jnlp.runtime.JNLPRuntime;
import net.sourceforge.jnlp.security.JNLPAuthenticator;
+import net.sourceforge.jnlp.util.logging.JavaConsole;
import net.sourceforge.jnlp.util.logging.OutputController;
/**
* The main entry point into PluginAppletViewer.
*/
public class PluginMain {
- // the files where stdout/stderr are sent to
- public static final String PLUGIN_STDERR_FILE = "java.stderr";
- public static final String PLUGIN_STDOUT_FILE = "java.stdout";
// This is used in init(). Getting rid of this is desirable but depends
// on whether the property that uses it is necessary/standard.
@@ -147,6 +146,13 @@ public class PluginMain {
streamHandler.startProcessing();
setCookieHandler(streamHandler);
+ JavaConsole.getConsole().setClassLoaderInfoProvider(new JavaConsole.ClassLoaderInfoProvider() {
+
+ @Override
+ public Map<String, String> getLoaderInfo() {
+ return PluginAppletSecurityContext.getLoaderInfo();
+ }
+ });
} catch (Exception e) {
OutputController.getLogger().log(e);