Examples of JavaCompilerFactory


Examples of org.apache.commons.jci.compilers.JavaCompilerFactory

        String targetResource = (((packageName.length() != 0) ? (packageName + ".") : "")
                    + ctxt.getServletClassName()).replace('.', '/') + ".java";
        String[] resources = new String[] {targetResource};

        JavaCompiler javaCompiler = (new JavaCompilerFactory()).createCompiler(options.getCompiler().substring(4));
        FileResourceReader reader = new FileResourceReader(ctxt.getOptions().getScratchDir());
        FileResourceStore store = new FileResourceStore(ctxt.getOptions().getScratchDir());
        JavaCompilerSettings settings = javaCompiler.createDefaultSettings();
        if (settings == null) {
            settings = new JavaCompilerSettings();
View Full Code Here

Examples of org.apache.commons.jci.compilers.JavaCompilerFactory

    private final TransactionalResourceStore transactionalStore;
    private ResourceReader reader;
    private CompilationResult lastResult;
   
    public CompilingListener() {
        this(new JavaCompilerFactory().createCompiler("eclipse"));
    }
View Full Code Here

Examples of org.apache.commons.jci.compilers.JavaCompilerFactory

        int maxerrs = 10;
        int maxwarns = 10;
        final boolean nowarn = cmd.hasOption("nowarn");


        final JavaCompiler compiler = new JavaCompilerFactory().createCompiler("eclipse");
        final JavaCompilerSettings settings = compiler.createDefaultSettings();


        for (Iterator it = cmd.iterator(); it.hasNext();) {
            final Option option = (Option) it.next();
View Full Code Here

Examples of org.apache.commons.jci.compilers.JavaCompilerFactory

            }

        };

        // listener that generates the java code from the jsp page and provides that to the compiler
        jspListener = new CompilingListener(new JavaCompilerFactory().createCompiler("eclipse"), store) {

            private final JspGenerator transformer = new JspGenerator();
            private final Map<String, byte[]> sources = new HashMap<String, byte[]>();
            private final Set<String> resourceToCompile = new HashSet<String>();
View Full Code Here

Examples of org.apache.commons.jci.compilers.JavaCompilerFactory

    private final TransactionalResourceStore transactionalStore;
    private ResourceReader reader;
    private CompilationResult lastResult;
   
    public CompilingListener() {
        this(new JavaCompilerFactory().createCompiler("eclipse"));
    }
View Full Code Here

Examples of org.apache.commons.jci.compilers.JavaCompilerFactory

            }

        };

        // listener that generates the java code from the jsp page and provides that to the compiler
        jspListener = new CompilingListener(new JavaCompilerFactory().createCompiler("eclipse"), store) {

            private final JspGenerator transformer = new JspGenerator();
            private final Map sources = new HashMap();
            private final Set resourceToCompile = new HashSet();
View Full Code Here

Examples of org.apache.commons.jci.compilers.JavaCompilerFactory

        int maxerrs = 10;
        int maxwarns = 10;
        final boolean nowarn = cmd.hasOption("nowarn");


        final JavaCompiler compiler = new JavaCompilerFactory().createCompiler("eclipse");
        final JavaCompilerSettings settings = compiler.createDefaultSettings();


        for (Iterator it = cmd.iterator(); it.hasNext();) {
            final Option option = (Option) it.next();
View Full Code Here

Examples of org.apache.commons.jci.compilers.JavaCompilerFactory

        String targetResource = (((packageName.length() != 0) ? (packageName + ".") : "")
                    + ctxt.getServletClassName()).replace('.', '/') + ".java";
        String[] resources = new String[] {targetResource};

        JavaCompiler javaCompiler = (new JavaCompilerFactory()).createCompiler(options.getCompiler().substring(4));
        FileResourceReader reader = new FileResourceReader(ctxt.getOptions().getScratchDir());
        FileResourceStore store = new FileResourceStore(ctxt.getOptions().getScratchDir());
        JavaCompilerSettings settings = javaCompiler.createDefaultSettings();
        if (settings == null) {
            settings = new JavaCompilerSettings();
View Full Code Here

Examples of org.codehaus.groovy.tools.javac.JavaCompilerFactory

                        tmpDir.setLocation(dir);
                        p.add(tmpDir);
                        javac.execute();
                    }
                };
                unit.setCompilerFactory(new JavaCompilerFactory() {
                    public JavaCompiler createCompiler(CompilerConfiguration config) {
                        return compiler;
                    }
                });
            }
View Full Code Here

Examples of org.gradle.api.internal.tasks.compile.JavaCompilerFactory

    private Compiler<ScalaJavaJointCompileSpec> getCompiler(ScalaJavaJointCompileSpec spec) {
        if (compiler == null) {
            ProjectInternal projectInternal = (ProjectInternal) getProject();
            IsolatedAntBuilder antBuilder = getServices().get(IsolatedAntBuilder.class);
            CompilerDaemonFactory compilerDaemonFactory = getServices().get(CompilerDaemonManager.class);
            JavaCompilerFactory javaCompilerFactory = getServices().get(JavaCompilerFactory.class);
            ScalaCompilerFactory scalaCompilerFactory = new ScalaCompilerFactory(projectInternal, antBuilder, javaCompilerFactory, compilerDaemonFactory);
            Compiler<ScalaJavaJointCompileSpec> delegatingCompiler = scalaCompilerFactory.newCompiler(spec);
            compiler = new CleaningScalaCompiler(delegatingCompiler, getOutputs());
        }
        return compiler;
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.