Package com.rimfaxe.webserver.compiler

Examples of com.rimfaxe.webserver.compiler.Library


   * Compile the java file.
   */
  public void generateNative()
    throws NativeCompilationException, NativeLinkException
 
    Library libjsp = new Library();
    libjsp.setOutputFile( jspclass.getNativeFileName() );
    libjsp.setOutputDir(ctxt.getRoot()+"/WEB-INF/rws/jsplib");
   
    libjsp.setSource(libjsp.JAVA_SOURCE);
   
    Vector vec = new Vector();
    vec.addElement(javaFileName);
    libjsp.setInputFiles(vec);
   
    libjsp.addCompileOption("-I"+ctxt.getRoot()+"/WEB-INF/rws/src");
     
    // check for libservlets.so
    //java.io.File f1 = new java.io.File(ctxt.getRoot()+"/WEB-INF/rws/lib/libservlets.so");
    //if (f1.exists())
    //{
    //  System.out.println("JspC, libservlets.so exists");
    //  libjsp.addLinkOption("-L"+ctxt.getRoot()+"/WEB-INF/rws/lib");
    //  libjsp.addLinkOption("-lservlets");
    //}
   
    libjsp.compile();
  }
View Full Code Here

TOP

Related Classes of com.rimfaxe.webserver.compiler.Library

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.