Changeset 431 for trunk/icedtea-web/plugin/icedteanp/x11
- Timestamp:
- Oct 2, 2014, 1:13:59 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/icedtea-web/plugin/icedteanp/x11/java/sun/applet/PluginMainBase.java
r368 r431 46 46 47 47 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."); 50 50 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 } 51 59 } 52 60 return true; … … 61 69 PluginDebug.debug("Streams initialized"); 62 70 } catch (IOException ioe) { 63 ioe.printStackTrace();71 OutputController.getLogger().log(OutputController.Level.ERROR_ALL,ioe); 64 72 } 65 73 return streamHandler;
Note:
See TracChangeset
for help on using the changeset viewer.