org.eclipse.jdt.internal.compiler.batch.Main.compile()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(8.6k)|赞(0)|评价(0)|浏览(192)

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

Main.compile介绍

暂无

代码示例

代码示例来源:origin: org.eclipse.jdt.core.compiler/ecj

  1. @Override
  2. public int run(InputStream in, OutputStream out, OutputStream err, String... arguments) {
  3. boolean succeed = new Main(
  4. new PrintWriter(new OutputStreamWriter(out != null ? out : System.out)),
  5. new PrintWriter(new OutputStreamWriter(err != null ? err : System.err)),
  6. true/* systemExit */,
  7. null/* options */,
  8. null/* progress */).compile(arguments);
  9. return succeed ? 0 : -1;
  10. }
  11. }

代码示例来源:origin: org.eclipse.scout.sdk.deps/ecj

  1. @Override
  2. public int run(InputStream in, OutputStream out, OutputStream err, String... arguments) {
  3. boolean succeed = new Main(
  4. new PrintWriter(new OutputStreamWriter(out != null ? out : System.out)),
  5. new PrintWriter(new OutputStreamWriter(err != null ? err : System.err)),
  6. true/* systemExit */,
  7. null/* options */,
  8. null/* progress */).compile(arguments);
  9. return succeed ? 0 : -1;
  10. }
  11. }

代码示例来源:origin: com.vaadin/vaadin-client-compiler-deps

  1. public static boolean compile(String[] commandLineArguments, PrintWriter outWriter, PrintWriter errWriter, CompilationProgress progress) {
  2. return new Main(outWriter, errWriter, false /* systemExit */, null /* options */, progress).compile(commandLineArguments);
  3. }
  4. public static File[][] getLibrariesFiles(File[] files) {

代码示例来源:origin: org.eclipse.scout.sdk.deps/ecj

  1. public static boolean compile(String[] commandLineArguments, PrintWriter outWriter, PrintWriter errWriter, CompilationProgress progress) {
  2. return new Main(outWriter, errWriter, false /* systemExit */, null /* options */, progress).compile(commandLineArguments);
  3. }
  4. public static File[][] getLibrariesFiles(File[] files) {

代码示例来源:origin: trylimits/Eclipse-Postfix-Code-Completion

  1. public static boolean compile(String[] commandLineArguments, PrintWriter outWriter, PrintWriter errWriter, CompilationProgress progress) {
  2. return new Main(outWriter, errWriter, false /* systemExit */, null /* options */, progress).compile(commandLineArguments);
  3. }
  4. public static File[][] getLibrariesFiles(File[] files) {

代码示例来源:origin: org.eclipse.jdt.core.compiler/ecj

  1. public static boolean compile(String[] commandLineArguments, PrintWriter outWriter, PrintWriter errWriter, CompilationProgress progress) {
  2. return new Main(outWriter, errWriter, false /* systemExit */, null /* options */, progress).compile(commandLineArguments);
  3. }
  4. public static File[][] getLibrariesFiles(File[] files) {

代码示例来源:origin: org.eclipse.jetty.orbit/org.eclipse.jdt.core

  1. /**
  2. * @deprecated - use {@link BatchCompiler#compile(String, PrintWriter, PrintWriter, CompilationProgress)} instead
  3. * e.g. BatchCompiler.compile(commandLine, new PrintWriter(System.out), new PrintWriter(System.err), null);
  4. */
  5. public static boolean compile(String commandLine) {
  6. return new Main(new PrintWriter(System.out), new PrintWriter(System.err), false /* systemExit */, null /* options */, null /* progress */).compile(tokenize(commandLine));
  7. }

代码示例来源:origin: com.vaadin/vaadin-client-compiler-deps

  1. /**
  2. * @deprecated - use {@link BatchCompiler#compile(String, PrintWriter, PrintWriter, CompilationProgress)} instead
  3. * e.g. BatchCompiler.compile(commandLine, new PrintWriter(System.out), new PrintWriter(System.err), null);
  4. */
  5. public static boolean compile(String commandLine) {
  6. return new Main(new PrintWriter(System.out), new PrintWriter(System.err), false /* systemExit */, null /* options */, null /* progress */).compile(tokenize(commandLine));
  7. }

代码示例来源:origin: org.eclipse.jdt.core.compiler/ecj

  1. /**
  2. * @deprecated - use {@link BatchCompiler#compile(String, PrintWriter, PrintWriter, CompilationProgress)} instead
  3. * e.g. BatchCompiler.compile(commandLine, new PrintWriter(System.out), new PrintWriter(System.err), null);
  4. */
  5. public static boolean compile(String commandLine) {
  6. return new Main(new PrintWriter(System.out), new PrintWriter(System.err), false /* systemExit */, null /* options */, null /* progress */).compile(tokenize(commandLine));
  7. }

代码示例来源:origin: org.eclipse.tycho/org.eclipse.jdt.core

  1. /**
  2. * @deprecated - use {@link BatchCompiler#compile(String, PrintWriter, PrintWriter, CompilationProgress)} instead
  3. * e.g. BatchCompiler.compile(commandLine, new PrintWriter(System.out), new PrintWriter(System.err), null);
  4. */
  5. public static boolean compile(String commandLine) {
  6. return new Main(new PrintWriter(System.out), new PrintWriter(System.err), false /* systemExit */, null /* options */, null /* progress */).compile(tokenize(commandLine));
  7. }

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.core

  1. /**
  2. * @deprecated - use {@link BatchCompiler#compile(String, PrintWriter, PrintWriter, CompilationProgress)} instead
  3. * e.g. BatchCompiler.compile(commandLine, new PrintWriter(System.out), new PrintWriter(System.err), null);
  4. */
  5. public static boolean compile(String commandLine) {
  6. return new Main(new PrintWriter(System.out), new PrintWriter(System.err), false /* systemExit */, null /* options */, null /* progress */).compile(tokenize(commandLine));
  7. }

代码示例来源:origin: com.google.code.maven-play-plugin.org.eclipse.jdt/org.eclipse.jdt.core

  1. /**
  2. * @deprecated - use {@link BatchCompiler#compile(String, PrintWriter, PrintWriter, CompilationProgress)} instead
  3. * e.g. BatchCompiler.compile(commandLine, new PrintWriter(System.out), new PrintWriter(System.err), null);
  4. */
  5. public static boolean compile(String commandLine) {
  6. return new Main(new PrintWriter(System.out), new PrintWriter(System.err), false /* systemExit */, null /* options */, null /* progress */).compile(tokenize(commandLine));
  7. }

代码示例来源:origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.jdt.core

  1. /**
  2. * @deprecated - use {@link BatchCompiler#compile(String, PrintWriter, PrintWriter, CompilationProgress)} instead
  3. * e.g. BatchCompiler.compile(commandLine, outWriter, errWriter, null);
  4. */
  5. public static boolean compile(String commandLine, PrintWriter outWriter, PrintWriter errWriter) {
  6. return new Main(outWriter, errWriter, false /* systemExit */, null /* options */, null /* progress */).compile(tokenize(commandLine));
  7. }

代码示例来源:origin: org.eclipse.jetty.orbit/org.eclipse.jdt.core

  1. /**
  2. * @deprecated - use {@link BatchCompiler#compile(String, PrintWriter, PrintWriter, CompilationProgress)} instead
  3. * e.g. BatchCompiler.compile(commandLine, outWriter, errWriter, null);
  4. */
  5. public static boolean compile(String commandLine, PrintWriter outWriter, PrintWriter errWriter) {
  6. return new Main(outWriter, errWriter, false /* systemExit */, null /* options */, null /* progress */).compile(tokenize(commandLine));
  7. }

代码示例来源:origin: org.eclipse.jdt.core.compiler/ecj

  1. /**
  2. * @deprecated - use {@link BatchCompiler#compile(String, PrintWriter, PrintWriter, CompilationProgress)} instead
  3. * e.g. BatchCompiler.compile(commandLine, outWriter, errWriter, null);
  4. */
  5. public static boolean compile(String commandLine, PrintWriter outWriter, PrintWriter errWriter) {
  6. return new Main(outWriter, errWriter, false /* systemExit */, null /* options */, null /* progress */).compile(tokenize(commandLine));
  7. }

代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.core

  1. /**
  2. * @deprecated - use {@link BatchCompiler#compile(String, PrintWriter, PrintWriter, CompilationProgress)} instead
  3. * e.g. BatchCompiler.compile(commandLine, outWriter, errWriter, null);
  4. */
  5. public static boolean compile(String commandLine, PrintWriter outWriter, PrintWriter errWriter) {
  6. return new Main(outWriter, errWriter, false /* systemExit */, null /* options */, null /* progress */).compile(tokenize(commandLine));
  7. }

代码示例来源:origin: org.eclipse.xtext/org.eclipse.xtext.xbase.testing

  1. protected boolean compile(String arguments) {
  2. // return BatchCompiler.compile(sb.toString(), new PrintWriter(new
  3. // OutputStreamWriter(System.out)), new PrintWriter(
  4. // new OutputStreamWriter(errorStream)), null);
  5. return getMain().compile(Main.tokenize(arguments));
  6. }

代码示例来源:origin: com.google.code.maven-play-plugin.org.eclipse.jdt/org.eclipse.jdt.core

  1. /**
  2. * @deprecated - use {@link BatchCompiler#compile(String, PrintWriter, PrintWriter, CompilationProgress)} instead
  3. * e.g. BatchCompiler.compile(commandLine, outWriter, errWriter, null);
  4. */
  5. public static boolean compile(String commandLine, PrintWriter outWriter, PrintWriter errWriter) {
  6. return new Main(outWriter, errWriter, false /* systemExit */, null /* options */, null /* progress */).compile(tokenize(commandLine));
  7. }

代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7

  1. /**
  2. * @deprecated - use {@link BatchCompiler#compile(String, PrintWriter, PrintWriter, CompilationProgress)} instead
  3. * e.g. BatchCompiler.compile(commandLine, outWriter, errWriter, null);
  4. */
  5. public static boolean compile(String commandLine, PrintWriter outWriter, PrintWriter errWriter) {
  6. return new Main(outWriter, errWriter, false /* systemExit */, null /* options */, null /* progress */).compile(tokenize(commandLine));
  7. }

代码示例来源:origin: com.vaadin/vaadin-client-compiler-deps

  1. /**
  2. * @deprecated - use {@link BatchCompiler#compile(String, PrintWriter, PrintWriter, CompilationProgress)} instead
  3. * e.g. BatchCompiler.compile(commandLine, outWriter, errWriter, null);
  4. */
  5. public static boolean compile(String commandLine, PrintWriter outWriter, PrintWriter errWriter) {
  6. return new Main(outWriter, errWriter, false /* systemExit */, null /* options */, null /* progress */).compile(tokenize(commandLine));
  7. }

相关文章