Package com.redhat.ceylon.compiler.js

Source Code of com.redhat.ceylon.compiler.js.TestJavaDeps

package com.redhat.ceylon.compiler.js;

import java.io.File;
import java.io.IOException;

import org.junit.Test;

import com.redhat.ceylon.compiler.Options;
import com.redhat.ceylon.compiler.typechecker.TypeChecker;
import com.redhat.ceylon.compiler.typechecker.TypeCheckerBuilder;

public class TestJavaDeps {

    @Test
    public void testJavaDependencies() throws IOException {
        final TypeCheckerBuilder builder = new TypeCheckerBuilder();
        builder.addSrcDirectory(new File("src/test/resources/javadeps"));
        final TypeChecker tc = builder.getTypeChecker();
        tc.process();
        final Options opts = new Options()
                .addSrcDir("src/test/resources/javadeps")
                .outRepo("./build")
                .indent(false)
                .comment(false)
                .generateSourceArchive(false)
                .encoding("UTF-8");
        final JsCompiler comp = new JsCompiler(tc, opts);
        comp.generate();
    }

}
TOP

Related Classes of com.redhat.ceylon.compiler.js.TestJavaDeps

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.