Changeset 431 for trunk/icedtea-web/plugin/icedteanp/os2
- Timestamp:
- Oct 2, 2014, 1:13:59 AM (11 years ago)
- 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 41 41 #include <winuser32.h> // CreateFakeWindowEx and friends 42 42 43 #include "IcedTeaNPPlugin.h" 43 44 #include "IcedTeaPluginUtils.h" 44 45 -
trunk/icedtea-web/plugin/icedteanp/os2/java/sun/applet/PluginMainBase.java
r368 r431 44 44 import java.io.IOException; 45 45 46 import net.sourceforge.jnlp.config.DeploymentConfiguration; 47 import net.sourceforge.jnlp.util.logging.JavaConsole; 48 import net.sourceforge.jnlp.util.logging.OutputController; 49 46 50 class PluginMainBase { 47 51 … … 50 54 51 55 static boolean checkArgs(String args[]) { 52 if (args.length == 2) {56 if (args.length >= 2) { 53 57 inPipe = Integer.valueOf(args[0]).intValue(); 54 58 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 } 56 68 return true; 69 } 57 70 } 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."); 59 72 return false; 60 73 } … … 67 80 FileDescriptor outPipeFD = new FileDescriptor(); 68 81 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"); 75 84 return streamHandler; 76 85 }
Note:
See TracChangeset
for help on using the changeset viewer.