Package wyc.util

Examples of wyc.util.WycBuildTask


   * @return
   */
  public static Pair<Integer,String> compile(String... args) {
    ByteArrayOutputStream syserr = new ByteArrayOutputStream();
    ByteArrayOutputStream sysout = new ByteArrayOutputStream();
    int exitCode = new WycMain(new WycBuildTask(), WycMain.DEFAULT_OPTIONS, sysout, syserr)
        .run(args);
    byte[] errBytes = syserr.toByteArray();
    byte[] outBytes = sysout.toByteArray();
    String output = new String(errBytes) + new String(outBytes);
    return new Pair<Integer,String>(exitCode,output);
View Full Code Here

TOP

Related Classes of wyc.util.WycBuildTask

Copyright © 2018 www.massapicom. 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.