Package ch.mtSystems.jnc.model

Examples of ch.mtSystems.jnc.model.NativeCompiler


  // --------------- private methods ---------------

  private void compile(final Display d)
  {
    final NativeCompiler jc = new NativeCompiler(this, AppController.getAppController().getCurrentProject());

    tLog.setText("");
    JNC.getPreviousButton().setEnabled(false);
    bCompile.setEnabled(false);

    new Thread()
    {
      public void run()
      {
        try
        {
          if(jc.compile()) syncLog("\n\ndone", d);
          else             syncLog("\n\nfailed...", d);
        } catch(Exception ex)
        {
          ex.printStackTrace();
          syncLog("\n\nfailed:\n", d);
View Full Code Here


      }

      if(args.length == 2)
      {
        JNCProject project = JNCProject.open(projectFile);
        NativeCompiler jc = new NativeCompiler(new ICompilationProgressLogger()
          {
            public void log(String s, boolean indent)
            {
              if(indent) System.out.print("\t");
              System.out.println(s);
            }
          }, project);

        if(jc.compile()) System.out.println("\n\ndone");
        else             System.out.println("\n\nfailed...");

        return;
      }
    }
View Full Code Here

TOP

Related Classes of ch.mtSystems.jnc.model.NativeCompiler

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.