com.sun.tools.xjc.Driver.run()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(4.0k)|赞(0)|评价(0)|浏览(93)

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

Driver.run介绍

[英]Performs schema compilation and prints the status/error into the specified PrintStream.

This method could be used to trigger XJC from other tools, such as Ant or IDE.
[中]执行架构编译并将状态/错误打印到指定的打印流中。
此方法可用于从其他工具(如Ant或IDE)触发XJC。

代码示例

代码示例来源:origin: com.github.davidmoten/xjc-maven-plugin-core

public static void main(String[] args) throws Throwable {
    if (Driver.run(args, System.out, System.out) != 0) {
      throw new Exception("xjc call failed, see logs above for details");
    }
  }
}

代码示例来源:origin: com.github.davidmoten/jax-maven-plugin-core

public static void main(String[] args) throws Throwable {
    if (Driver.run(args, System.out, System.out) != 0) {
      throw new Exception("xjc call failed, see logs above for details");
    }
  }
}

代码示例来源:origin: org.jvnet.jaxbcommons/jaxbcommons-testing

/**
 * Runs the test.
 * 
 * @throws Exception
 *             In case a problem occurs during running the test.
 */
public void testRun() throws Exception {
  try {
    Driver.run(getArguments(), System.out, System.err);
  } catch (Exception ex) {
    ex.printStackTrace();
    throw ex;
  }
}

代码示例来源:origin: org.andromda.thirdparty.jaxb2_commons/jaxb-xjc

return run(args,new Listener());

代码示例来源:origin: sun-jaxb/jaxb-xjc

return run(args,new Listener());

代码示例来源:origin: apache/servicemix-bundles

return run(args,new Listener());

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-xjc

return run(args,new Listener());

代码示例来源:origin: org.glassfish.metro/webservices-tools

return run(args,new Listener());

代码示例来源:origin: org.glassfish.metro/webservices-tools

private static void _main( String[] args ) throws Exception {
  try {
    System.exit(run( args, System.out, System.out ));
  } catch (BadCommandLineException e) {
    // there was an error in the command line.
    // print usage and abort.
    if(e.getMessage()!=null) {
      System.out.println(e.getMessage());
      System.out.println();
    }
    usage(e.getOptions(),false);
    System.exit(-1);
  }
}

代码示例来源:origin: org.andromda.thirdparty.jaxb2_commons/jaxb-xjc

private static void _main( String[] args ) throws Exception {
  try {
    System.exit(run( args, System.out, System.out ));
  } catch (BadCommandLineException e) {
    // there was an error in the command line.
    // print usage and abort.
    if(e.getMessage()!=null) {
      System.out.println(e.getMessage());
      System.out.println();
    }
    usage(e.getOptions(),false);
    System.exit(-1);
  }
}

代码示例来源:origin: sun-jaxb/jaxb-xjc

private static void _main( String[] args ) throws Exception {
  try {
    System.exit(run( args, System.out, System.out ));
  } catch (BadCommandLineException e) {
    // there was an error in the command line.
    // print usage and abort.
    if(e.getMessage()!=null) {
      System.out.println(e.getMessage());
      System.out.println();
    }
    usage(e.getOptions(),false);
    System.exit(-1);
  }
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-xjc

private static void _main( String[] args ) throws Exception {
  try {
    System.exit(run( args, System.out, System.out ));
  } catch (BadCommandLineException e) {
    // there was an error in the command line.
    // print usage and abort.
    if(e.getMessage()!=null) {
      System.out.println(e.getMessage());
      System.out.println();
    }
    usage(e.getOptions(),false);
    System.exit(-1);
  }
}

代码示例来源:origin: apache/servicemix-bundles

private static void _main( String[] args ) throws Exception {
  try {
    System.exit(run( args, System.out, System.out ));
  } catch (BadCommandLineException e) {
    // there was an error in the command line.
    // print usage and abort.
    if(e.getMessage()!=null) {
      System.out.println(e.getMessage());
      System.out.println();
    }
    usage(e.getOptions(),false);
    System.exit(-1);
  }
}

代码示例来源:origin: org.tinygroup/convert

private static void _main( String[] args ) throws Exception {
      try {
        Driver.run( args, System.out, System.out );
      } catch (BadCommandLineException e) {
        // there was an error in the command line.
        // print usage and abort.
        if(e.getMessage()!=null) {
          System.out.println(e.getMessage());
          System.out.println();
        }

        Driver.usage(e.getOptions(),false);
      }
    }
}

代码示例来源:origin: org.codehaus.mojo/jaxb2-maven-plugin

if (XJC_COMPLETED_OK != Driver.run(xjcArguments, new XjcLogAdapter(getLog()))) {

代码示例来源:origin: mojohaus/jaxb2-maven-plugin

if (XJC_COMPLETED_OK != Driver.run(xjcArguments, new XjcLogAdapter(getLog()))) {

相关文章

微信公众号

最新文章

更多