Examples of compile()


Examples of org.apache.jasper.compiler.AntCompiler.compile()

    private void compileJspToJava(JspServletWrapper jspServletWrapper,
            JspCompilationContext jspCompilationContext) throws FileNotFoundException,
            JasperException, Exception {
        Compiler compiler = new AntCompiler();
        compiler.init(jspCompilationContext, jspServletWrapper);
        compiler.compile();
    }

    private JspCompilationContext createJspCompilationContext(JspCompilationInfo info,
            ServletContext servletContext, Options options, JspRuntimeContext jspRuntimeContext,
            JspServletWrapper jspServletWrapper, StringWriter stringWriter) {
View Full Code Here

Examples of org.apache.jasper.compiler.CommandLineCompiler.compile()

                    }
                }
            }
            CommandLineCompiler clc = new CommandLineCompiler(clctxt);

            clc.compile();

            targetClassName = null;
            String thisServletName;
            if  (clc.getPackageName() == null) {
                thisServletName = clc.getClassName();
View Full Code Here

Examples of org.apache.jasper.compiler.JavaCompiler.compile()

        forName("org.apache.jasper.compiler.JikesJavaCompiler");
    JavaCompiler javaC=createJavaCompiler( jspCompilerPlugin );
   
    prepareCompiler( req, javaC, options, ctxt );
    javaC.setMsgOutput(out);
    status = javaC.compile(javaFileName);
      } catch( Exception ex ) { 
    log.log("Guess java compiler: no jikes " + ex.toString());
    status=false;
      }
      if( status==false ) {
View Full Code Here

Examples of org.apache.maven.bootstrap.compile.JavacCompiler.compile()

            else
            {
                compilerConfiguration.setDebug( true );
            }

            List messages = compiler.compile( compilerConfiguration );

            for ( Iterator i = messages.iterator(); i.hasNext(); )
            {
                System.out.println( i.next() );
            }
View Full Code Here

Examples of org.apache.ode.bpel.compiler.BpelC.compile()

        compiler.setCompileProperties( compileProps );
        compiler.setBaseDirectory( getDirectory() );

        // Run the compiler and generate the CBP file into the given directory
        try {
            compiler.compile( bpelFile );
        } catch (IOException e) {
            if(__log.isDebugEnabled()) {
                __log.debug("Compile error in " + bpelFile, e);
            }
            // TODO - need better exception handling here
View Full Code Here

Examples of org.apache.ode.bpel.compiler.api.ExpressionCompiler.compile()

        String expLang = getExpressionLanguage(expression);
        ExpressionCompiler ec = findExpLangCompiler(expLang);
        ec.setCompilerContext(this);

        try {
            OExpression oexpr = (isJoinCondition) ? ec.compileJoinCondition(expression) : ec.compile(expression);

            oexpr.debugInfo = createDebugInfo(expression, expression.toString());

            OExpressionLanguage expLanguage = _expLanguages.get(expLang);
            if (expLanguage == null) {
View Full Code Here

Examples of org.apache.ode.bpel.compiler.v2.ExpressionCompiler.compile()

        String expLang = getExpressionLanguage(expression);
        ExpressionCompiler ec = findExpLangCompiler(expLang);
        ec.setCompilerContext(this);

        try {
            OExpression oexpr = (isJoinCondition) ? ec.compileJoinCondition(expression) : ec.compile(expression);

            oexpr.debugInfo = createDebugInfo(expression, expression.toString());

            OExpressionLanguage expLanguage = _expLanguages.get(expLang);
            if (expLanguage == null) {
View Full Code Here

Examples of org.apache.ode.daohib.bpel.ql.HibernateInstancesQueryCompiler.compile()

        Builder<String> builder = BuilderFactory.getInstance().createBuilder();
        final org.apache.ode.ql.tree.nodes.Node rootNode = builder.build(expression);

        HibernateInstancesQueryCompiler compiler = new HibernateInstancesQueryCompiler();

        CommandEvaluator<List, Session> eval = compiler.compile((Query) rootNode);
        List<HProcessInstance> instancesList = (List<HProcessInstance>) eval.evaluate(_session);

        Collection<ProcessInstanceDAO> result = new ArrayList<ProcessInstanceDAO>(instancesList.size());
        for (HProcessInstance instance : instancesList) {
            result.add(getInstance(instance.getId()));
View Full Code Here

Examples of org.apache.ode.store.DeploymentUnitDir.compile()

        // so we don't need to get the version from database. We can directly use static version
        // calculated from bpel package directory name.
        du.setVersion(du.getStaticVersion());

        try {
            du.compile();
        } catch (CompilationException ce) {
            String logMessage = "Deployment failed due to compilation issues.";
            log.error(logMessage, ce);
            throw new BPELDeploymentException(logMessage, ce);
        }
View Full Code Here

Examples of org.apache.openjpa.kernel.Query.compile()

    private void loadQuery(Broker broker, QueryMetaData qmd) {
        try {
            Query q = broker.newQuery(qmd.getLanguage(), null);
            qmd.setInto(q);
            q.compile();
        } catch (Exception e) {
            if (log.isTraceEnabled()) {
                log.warn("Skipping named query " + qmd.getName() + ": "
                    + e.getMessage(), e);
            } else {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.