@Override public void executionStarted(int pid) { inputOutput.getOut().println(compilerPath+" "+argsFlat.toString()); //NOI18N } @Override
@Override public void executionStarted(int pid) { inputOutput.getOut().println(compilerPath+" "+argsFlat.toString()); //NOI18N } @Override
/** * Writes a message into output * * @param s message to write */ public synchronized void write(String s) { io.getOut().print(s); }
public int output() { int i = 0; for (String s: anchor) { io.getOut().println(s); i++; } return i; }
private static OutputWriter getOutputWriter() { InputOutput io = getInputOutput(); return io.getOut(); } // Error Handling <<
@Override public void propertyChange(PropertyChangeEvent evt) { if (evt.getPropertyName().equals("selectedNodes")) { Node[] selectedNode = (Node[]) evt.getNewValue(); for (Node node : selectedNode) { String timeText = timeFormat.format(System.currentTimeMillis()); io.getOut().println(timeText + ": " + node.getDisplayName()); } } } });
private void close() { io.getOut().close(); try { logResult.close(); } catch (IOException ex) { LOGGER.log(Level.INFO, null, ex); } } }
public void run() { OutputWriter out = getLog().getOut(); if (writable) { out.println(msg); out.flush(); } } });
public OutputHandler(InputOutput io, NbMavenProject proj, AggregateProgressHandle hand, RunConfig config) { this(); inputOutput = io; handle = hand; stdOut = inputOutput.getOut(); stdErr = inputOutput.getErr(); initProcessorList(proj, config); }
public CommandLineOutputHandler(InputOutput io, NbMavenProject proj, ProgressHandle hand, RunConfig config) { this(); inputOutput = io; stdOut = inputOutput.getOut(); logger = new Logger(); initProcessorList(proj, config); }
public void run() { OutputWriter out = getLog().getOut(); if (writable) { try { out.reset(); } catch (IOException ex) { // Ignore Exception } out.flush(); } } });
@Override protected void destroy() { stopAction.setEnabled(false); io.getOut().close(); io.getErr().close(); }
public static InputOutput getRemoteLog(String displayName, boolean select) { InputOutput io = IOProvider.getDefault().getIO(NbBundle.getMessage(Command.class, "LBL_RemoteLog", displayName), false); if (select) { io.select(); } try { io.getOut().reset(); } catch (IOException ex) { Exceptions.printStackTrace(ex); } return io; }
public void run() { getLog(); if (writable) { getLog().getOut().flush(); getLog().getErr().flush(); } } });
public OutputHandler() { io = IOProvider.getDefault().getIO("Log", true); outputWriter = io.getOut(); formatter = new MsgFormatter(); }
/** */ public void displayOutput(final String text, final boolean error) { /* Called from the AntLogger's thread */ if (inOut != null) { OutputWriter out = error ? inOut.getErr() : inOut.getOut(); Manager.getInstance().getOutputLineHandler().handleLine(out, text); } else { // log a warning - should rather throw an exception, but we're too close to release now LOGGER.log(Level.WARNING, "Tried to display output before inOut was initialized. Output text: {0}", text); } }
public static void printWarning(String info) { createOutput(); synchronized(io) { OutputWriter out = io.getOut(); Date date = new Date(); out.write("["); out.write(dateFormat.format(date)); out.write("] WARNING "); out.write(info); out.write("\n"); out.close(); } }
public static void printInfo(String info) { createOutput(); synchronized(io) { OutputWriter out = io.getOut(); Date date = new Date(); out.write("["); out.write(dateFormat.format(date)); out.write("] INFO "); out.write(info); out.write("\n"); out.close(); } }
private void shutdownOutput(InputOutput ioput) { if (ioput == null) { return; } ioput.getOut().close(); ioput.getErr().close(); markFreeTab(); IOBridge.restoreSystemInOutErr(); }
public RepositoryIndexerListener(NexusIndexer nexusIndexer, IndexingContext indexingContext, boolean createZip) { this.indexingContext = indexingContext; this.nexusIndexer = nexusIndexer; this.createZip = createZip; ri = RepositoryPreferences.getInstance().getRepositoryInfoById(indexingContext.getId()); if (debug) { io = IOProvider.getDefault().getIO("Indexing " +(ri!=null? ri.getName():indexingContext.getId()), true); writer = io.getOut(); } }