org.mozilla.javascript.tools.shell.Global.getErr()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 JavaScript  
字(4.9k)|赞(0)|评价(0)|浏览(176)

本文整理了Java中org.mozilla.javascript.tools.shell.Global.getErr()方法的一些代码示例,展示了Global.getErr()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Global.getErr()方法的具体详情如下:
包路径:org.mozilla.javascript.tools.shell.Global
类名称:Global
方法名:getErr

Global.getErr介绍

暂无

代码示例

代码示例来源:origin: com.github.tntim96/rhino

public static PrintStream getErr() {
  return getGlobal().getErr();
}

代码示例来源:origin: org.jvnet.hudson/embedded-rhino-debugger

public static PrintStream getErr() {
  return getGlobal().getErr();
}

代码示例来源:origin: ro.isdc.wro4j/rhino

public static PrintStream getErr() {
  return getGlobal().getErr();
}

代码示例来源:origin: com.github.tntim96/rhino

public ShellConsole getConsole(Charset cs) {
  if (!loadJLine(cs)) {
    console = ShellConsole.getConsole(getIn(), getErr(), cs);
  }
  return console;
}

代码示例来源:origin: ro.isdc.wro4j/rhino

public ShellConsole getConsole(Charset cs) {
  if (!loadJLine(cs)) {
    console = ShellConsole.getConsole(getIn(), getErr(), cs);
  }
  return console;
}

代码示例来源:origin: org.directwebremoting/dwr

/**
 * @throws Exception Likely if YUI is present, and not ShrinkSafe
 */
public ShrinkSafeCompressor() throws Exception
{
  // This should fail if ShrinkSafe is not in classpath
  try
  {
    global = Main.getGlobal();
    ToolErrorReporter errorReporter = new ToolErrorReporter(false, global.getErr());
    Main.shellContextFactory.setErrorReporter(errorReporter);
    // Do a trial compression to check
    compressJavaScript("");
  }
  catch (NoClassDefFoundError ex)
  {
    throw new InstantiationException("Could not setup ShrinkSafeCompressor because a class is missing, assuming shrinksafe.jar and js.jar are not in the classpath.");
  }
  catch (Exception ex)
  {
    Loggers.STARTUP.error("ShrinkSafeCompressor startup", ex);
    throw new InstantiationException("Could not setup ShrinkSafeCompressor, assuming shrinksafe.jar and js.jar are not in the classpath. Exception caught was " + ex);
  }
}

代码示例来源:origin: ro.isdc.wro4j/rhino

PrintStream savedErr = this.getErr();
ByteArrayOutputStream out = new ByteArrayOutputStream();
ByteArrayOutputStream err = new ByteArrayOutputStream();
String resultString = "";
ErrorReporter savedErrorReporter = cx.getErrorReporter();
cx.setErrorReporter(new ToolErrorReporter(false, this.getErr()));
try {
  testCount++;

代码示例来源:origin: com.github.tntim96/rhino

PrintStream savedErr = this.getErr();
ByteArrayOutputStream out = new ByteArrayOutputStream();
ByteArrayOutputStream err = new ByteArrayOutputStream();
String resultString = "";
ErrorReporter savedErrorReporter = cx.getErrorReporter();
cx.setErrorReporter(new ToolErrorReporter(false, this.getErr()));
try {
  testCount++;

代码示例来源:origin: org.jvnet.hudson/embedded-rhino-debugger

PrintStream savedErr = this.getErr();
ByteArrayOutputStream out = new ByteArrayOutputStream();
ByteArrayOutputStream err = new ByteArrayOutputStream();
String resultString = "";
ErrorReporter savedErrorReporter = cx.getErrorReporter();
cx.setErrorReporter(new ToolErrorReporter(false, this.getErr()));
try {
  testCount++;

代码示例来源:origin: org.jvnet.hudson/embedded-rhino-debugger

/**
 *  Execute the given arguments, but don't System.exit at the end.
 */
public static int exec(String origArgs[])
{
  errorReporter = new ToolErrorReporter(false, global.getErr());
  shellContextFactory.setErrorReporter(errorReporter);
  String[] args = processOptions(origArgs);
  if (processStdin)
    fileList.add(null);
  if (!global.initialized) {
    global.init(shellContextFactory);
  }
  IProxy iproxy = new IProxy(IProxy.PROCESS_FILES);
  iproxy.args = args;
  shellContextFactory.call(iproxy);
  return exitCode;
}

代码示例来源:origin: com.github.tntim96/rhino

/**
 *  Execute the given arguments, but don't System.exit at the end.
 */
public static int exec(String origArgs[])
{
  errorReporter = new ToolErrorReporter(false, global.getErr());
  shellContextFactory.setErrorReporter(errorReporter);
  String[] args = processOptions(origArgs);
  if (processStdin) {
    fileList.add(null);
  }
  if (!global.initialized) {
    global.init(shellContextFactory);
  }
  IProxy iproxy = new IProxy(IProxy.PROCESS_FILES);
  iproxy.args = args;
  shellContextFactory.call(iproxy);
  return exitCode;
}

代码示例来源:origin: ro.isdc.wro4j/rhino

/**
 *  Execute the given arguments, but don't System.exit at the end.
 */
public static int exec(String origArgs[])
{
  errorReporter = new ToolErrorReporter(false, global.getErr());
  shellContextFactory.setErrorReporter(errorReporter);
  String[] args = processOptions(origArgs);
  if (processStdin) {
    fileList.add(null);
  }
  if (!global.initialized) {
    global.init(shellContextFactory);
  }
  IProxy iproxy = new IProxy(IProxy.PROCESS_FILES);
  iproxy.args = args;
  shellContextFactory.call(iproxy);
  return exitCode;
}

代码示例来源:origin: org.jvnet.hudson/embedded-rhino-debugger

PrintStream ps = global.getErr();
if (filename == null) {

代码示例来源:origin: org.dojotoolkit/dojo-shrinksafe

public static void main(String[] args) {
  errorReporter = new ToolErrorReporter(false, global.getErr());
  shellContextFactory.setErrorReporter(errorReporter);
  IProxy iproxy = new IProxy(IProxy.PROCESS_FILES, processOptions(args));
  global.init(shellContextFactory);
  shellContextFactory.call(iproxy);
}

代码示例来源:origin: org.jvnet.hudson/embedded-rhino-debugger

err = (global != null) ? global.getErr() : System.err;

代码示例来源:origin: com.github.tntim96/rhino

err = (global != null) ? global.getErr() : System.err;

代码示例来源:origin: ro.isdc.wro4j/rhino

err = (global != null) ? global.getErr() : System.err;

相关文章