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.

Location:
trunk/icedtea-web/plugin/icedteanp/os2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/icedtea-web/plugin/icedteanp/os2/OS_OS2_WinOS2.cc

    r385 r431  
    4141#include <winuser32.h> // CreateFakeWindowEx and friends
    4242
     43#include "IcedTeaNPPlugin.h"
    4344#include "IcedTeaPluginUtils.h"
    4445
  • trunk/icedtea-web/plugin/icedteanp/os2/java/sun/applet/PluginMainBase.java

    r368 r431  
    4444import java.io.IOException;
    4545
     46import net.sourceforge.jnlp.config.DeploymentConfiguration;
     47import net.sourceforge.jnlp.util.logging.JavaConsole;
     48import net.sourceforge.jnlp.util.logging.OutputController;
     49
    4650class PluginMainBase {
    4751
     
    5054
    5155    static boolean checkArgs(String args[]) {
    52         if (args.length == 2) {
     56        if (args.length >= 2) {
    5357            inPipe = Integer.valueOf(args[0]).intValue();
    5458            outPipe = Integer.valueOf(args[1]).intValue();
    55             if (inPipe >= 0 && outPipe >= 0)
     59            if (inPipe >= 0 && outPipe >= 0) {
     60                DeploymentConfiguration.move14AndOlderFilesTo15StructureCatched();
     61                if (JavaConsole.isEnabled()) {
     62                    if ((args.length < 3) || !new File(args[2]).exists()) {
     63                        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).");
     64                    } else {
     65                        JavaConsole.getConsole().createPluginReader(new File(args[2]));
     66                    }
     67                }
    5668                return true;
     69            }
    5770        }
    58         System.err.println("Invalid pipe descriptors provided. Refusing to proceed.");
     71        OutputController.getLogger().log(OutputController.Level.ERROR_ALL, "Invalid pipe descriptors provided. Refusing to proceed.");
    5972        return false;
    6073    }
     
    6780        FileDescriptor outPipeFD = new FileDescriptor();
    6881        fdAccess.set(outPipeFD, outPipe);
    69         try {
    70             streamHandler = new PluginStreamHandler(new FileInputStream(inPipeFD), new FileOutputStream(outPipeFD));
    71             PluginDebug.debug("Streams initialized");
    72         } catch (IOException ioe) {
    73             ioe.printStackTrace();
    74         }
     82        streamHandler = new PluginStreamHandler(new FileInputStream(inPipeFD), new FileOutputStream(outPipeFD));
     83        PluginDebug.debug("Streams initialized");
    7584        return streamHandler;
    7685    }
Note: See TracChangeset for help on using the changeset viewer.