Examples of printFile()


Examples of com.pinterest.secor.tools.LogFilePrinter.printFile()

            CommandLine commandLine = parseArgs(args);
            SecorConfig config = SecorConfig.load();
            FileUtil.configure(config);
            LogFilePrinter printer = new LogFilePrinter(
                    commandLine.hasOption("print_offsets_only"));
            printer.printFile(commandLine.getOptionValue("file"));
        } catch (Throwable t) {
            LOG.error("Log file printer failed", t);
            System.exit(1);
        }
    }
View Full Code Here

Examples of xplanetconfigurator.util.FileUtil.printFile()

        // insert the downloader
        String javacall = "start \"Downloader\" java -jar xplanet.jar -nogui";
        parameters = javacall + "\n" + parameters;
        this.logger.fine("Writing command file: " + cmdFile);
        try {
            util.printFile(cmdFile, parameters);
        } catch (Exception ex) {
            this.logger.log(Level.SEVERE, null, ex);
            this.popError("Failed to write command file:\n" + cmd.getAbsolutePath() + "\n\n" + ex.getLocalizedMessage());
            return;
        }
View Full Code Here

Examples of xplanetconfigurator.util.FileUtil.printFile()

        }

        this.logger.fine("Writing config file: " + configFile);
        FileUtil util = new FileUtil();
        try {
            util.printFile(configFile, configFileContent);
        } catch (Exception ex) {
            this.logger.log(Level.SEVERE, null, ex);
            this.popError("Failed to write config file:\n" + configFile + "\n\n" + ex.getLocalizedMessage());
            return;
        }
View Full Code Here

Examples of xplanetconfigurator.util.FileUtil.printFile()

        XPlanetRessourceFinder rf = new XPlanetRessourceFinder();
        String configDir = rf.getRessourceDirectory("proxy");
        String file = configDir + File.separator + MainFrame.FILE_NAME_PROXY_CONFIG;
        FileUtil util = new FileUtil();
        try {
            util.printFile(file, buf.toString());
        } catch (Exception ex) {
            this.logger.log(Level.SEVERE, null, ex);
        }
    }
View Full Code Here

Examples of xplanetconfigurator.util.FileUtil.printFile()

        String defaultConfigFileLocation = userHome + File.separator + LoggingInitializer.FILE_NAME;
        if(fileContent != null)
        {
            logger.finer("Reading file content to file: '" + defaultConfigFileLocation + "'...");
            try {
                fileUtil.printFile(defaultConfigFileLocation, fileContent);
                return defaultConfigFileLocation;
            } catch(Exception e) {
                logger.warning("Failed to write file: '" + defaultConfigFileLocation + "'");
            }
        }
View Full Code Here

Examples of xplanetconfigurator.util.FileUtil.printFile()

        }
        if(fileContent != null)
        {
            logger.finer("Reading file content to file: '" + defaultConfigFileLocation + "'...");
            try {
                fileUtil.printFile(defaultConfigFileLocation, fileContent);
                return defaultConfigFileLocation;
            } catch(Exception e) {
                logger.warning("Failed to write file: '" + defaultConfigFileLocation + "'");
            }
        }
View Full Code Here

Examples of xplanetconfigurator.util.FileUtil.printFile()

     * Writes the configuration to file
     */
    public void saveConfiguration() {
        FileUtil util = new FileUtil();
        try {
            util.printFile(this.configFile, this.configFileContent);
        } catch (Exception ex) {
            this.logger.log(Level.SEVERE, null, ex);
        }
    }

View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.