Ignore:
Timestamp:
Oct 2, 2014, 1:13:59 AM (11 years ago)
Author:
dmik
Message:

icedtea-web: Adapt 1.5.1 changes to OS/2.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/icedtea-web/plugin/icedteanp/x11/java/sun/applet/PluginMainBase.java

    r368 r431  
    4646
    4747    static boolean checkArgs(String args[]) {
    48         if (args.length != 2 || !(new File(args[0]).exists()) || !(new File(args[1]).exists())) {
    49             System.err.println("Invalid pipe names provided. Refusing to proceed.");
     48        if (args.length < 2 || !(new File(args[0]).exists()) || !(new File(args[1]).exists())) {
     49            OutputController.getLogger().log(OutputController.Level.ERROR_ALL, "Invalid pipe names provided. Refusing to proceed.");
    5050            return false;
     51        }
     52        DeploymentConfiguration.move14AndOlderFilesTo15StructureCatched();
     53        if (JavaConsole.isEnabled()) {
     54            if ((args.length < 3) || !new File(args[2]).exists()) {
     55                OutputController.getLogger().log(OutputController.Level.ERROR_ALL, "Warning, although console is on, plugin debug connection do not exists. No plugin information will be displayed in console (only java ones).");
     56            } else {
     57                JavaConsole.getConsole().createPluginReader(new File(args[2]));
     58            }
    5159        }
    5260        return true;
     
    6169            PluginDebug.debug("Streams initialized");
    6270        } catch (IOException ioe) {
    63             ioe.printStackTrace();
     71            OutputController.getLogger().log(OutputController.Level.ERROR_ALL,ioe);
    6472        }
    6573        return streamHandler;
Note: See TracChangeset for help on using the changeset viewer.