Package com.redhat.ceylon.compiler.java.tools

Examples of com.redhat.ceylon.compiler.java.tools.CeyloncTaskImpl


        options.add("-src");
        options.add(getPackagePath() + "resmodules/simple/source");
        options.add("-res");
        options.add(getPackagePath() + "resmodules/simple/resource");
        options.addAll(defaultOptions);
        CeyloncTaskImpl task = getCompilerTask(options,
                null,
                Arrays.asList("test.simple"));
        Boolean ret = task.call();
        assertTrue(ret);
       
        File carFile = getModuleArchive("test.simple", "1.0");
        assertTrue(carFile.exists());
View Full Code Here


        options.add("-src");
        options.add(getPackagePath() + "resmodules/files/source");
        options.add("-res");
        options.add(getPackagePath() + "resmodules/files/resource");
        options.addAll(defaultOptions);
        CeyloncTaskImpl task;
        if (alternative) {
            task = getCompilerTask(options,
//                "resmodules/files/source/test/files/module.ceylon",
                "resmodules/files/resource/test/files/extrafile");
        } else {
            task = getCompilerTask(options,
                "resmodules/files/source/test/files/module.ceylon",
                "resmodules/files/resource/test/files/README.txt");
        }
        Boolean ret = task.call();
        assertTrue(ret);
       
        File carFile = getModuleArchive("test.files", "1.0");
        assertTrue(carFile.exists());
View Full Code Here

            options.add(getPackagePath() + "resmodules/multiple/resource");
            options.add("-res");
            options.add(getPackagePath() + "resmodules/multiple/resource2");
        }
        options.addAll(defaultOptions);
        CeyloncTaskImpl task = getCompilerTask(options,
                null,
                Arrays.asList("test.multiple"));
        Boolean ret = task.call();
        assertTrue(ret);
       
        File carFile = getModuleArchive("test.multiple", "1.0");
        assertTrue(carFile.exists());
View Full Code Here

        options.add("-src");
        options.add(getPackagePath() + "resmodules/default/source");
        options.add("-res");
        options.add(getPackagePath() + "resmodules/default/resource");
        options.addAll(defaultOptions);
        CeyloncTaskImpl task = getCompilerTask(options,
                "resmodules/default/resource/README.txt",
                "resmodules/default/resource/subdir/SUBDIR.txt");
        Boolean ret = task.call();
        assertTrue(ret);
       
        File carFile = getModuleArchive("default", null);
        assertTrue(carFile.exists());
View Full Code Here

        options.add("-src");
        options.add(getPackagePath() + "resmodules/rootdir/source");
        options.add("-res");
        options.add(getPackagePath() + "resmodules/rootdir/resource");
        options.addAll(defaultOptions);
        CeyloncTaskImpl task = getCompilerTask(options,
                null,
                Arrays.asList("test.rootdir"));
        Boolean ret = task.call();
        assertTrue(ret);
       
        File carFile = getModuleArchive("test.rootdir", "1.0");
        assertTrue(carFile.exists());
View Full Code Here

        options.add("-res");
        options.add(getPackagePath() + "resmodules/altrootdir/resource");
        options.add("-resroot");
        options.add("ALTROOT");
        options.addAll(defaultOptions);
        CeyloncTaskImpl task = getCompilerTask(options,
                null,
                Arrays.asList("test.altrootdir"));
        Boolean ret = task.call();
        assertTrue(ret);
       
        File carFile = getModuleArchive("test.altrootdir", "1.0");
        assertTrue(carFile.exists());
View Full Code Here

        JavacFileManager fileManager = compiler.getStandardFileManager(writer, diagnosticListener, null, null);

       
        Iterable<? extends JavaFileObject> compilationUnits = fileManager.getJavaFileObjectsFromFiles(options.getFiles());

        CeyloncTaskImpl compilerTask = compiler.getTask(null, fileManager, diagnosticListener,
                                                        translateOptions(options), options.getModules(), compilationUnits);
        compilerTask.setTaskListener(diagnosticListener);
        ExitState state = compilerTask.call2();
        // print any helpful info if required
        if(options.isVerbose() && state.abortingException != null)
            state.abortingException.printStackTrace();
        return state.ceylonState == CeylonState.OK;
    }
View Full Code Here

TOP

Related Classes of com.redhat.ceylon.compiler.java.tools.CeyloncTaskImpl

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.