Examples of CeylonConfig


Examples of com.redhat.ceylon.common.config.CeylonConfig

            throw new BuildException("'key' is a required attribute for 'ceylon-config-repository'");
        }
        if (property == null) {
            throw new BuildException("'property' is a required attribute for 'ceylon-config-value'");
        }
        CeylonConfig config = getConfig();
        Repositories reps = Repositories.withConfig(config);
        Repository rep;
        String repdesc;
        if (name != null) {
            rep = reps.getRepository(name);
View Full Code Here

Examples of com.redhat.ceylon.common.config.CeylonConfig

    }

    @Override
    public void execute() throws BuildException {
        Java7Checker.check();
        CeylonConfig config = getConfig();
        for (String key : config.getOptionNames(null)) {
            String[] values = config.getOptionValues(key);
            setConfigValueAsProperty(values, getPrefix() + key);
        }
    }
View Full Code Here

Examples of com.redhat.ceylon.common.config.CeylonConfig

            throw new BuildException("'key' is a required attribute for 'ceylon-config-value'");
        }
        if (property == null) {
            throw new BuildException("'property' is a required attribute for 'ceylon-config-value'");
        }
        CeylonConfig config = getConfig();
        String[] values = config.getOptionValues(key);
        setConfigValueAsProperty(values, property);
    }
View Full Code Here

Examples of com.redhat.ceylon.common.config.CeylonConfig

        String baseDir = env.get("base.dir");
        if (project.getDirectory() == null) {
            project.setDirectory(new File(baseDir));
        }
        try {
            CeylonConfig config = CeylonConfig.createFromLocalDir(new File(baseDir));
            List<File> srcs = DefaultToolOptions.getCompilerSourceDirs(config);
            if (!srcs.isEmpty()) {
                sourceFolder = srcs.get(0).getPath();
            } else {
                sourceFolder = Constants.DEFAULT_SOURCE_DIR;
View Full Code Here

Examples of com.redhat.ceylon.common.config.CeylonConfig

    private RepositoryManager outputRepositoryManager;

    public CeylonDocTool() {
        super(CeylondMessages.RESOURCE_BUNDLE);

        CeylonConfig config = CeylonConfig.get();
       
        header = config.getOption(OPTION_HEADER);
        footer = config.getOption(OPTION_FOOTER);
        includeNonShared = config.getBoolOption(OPTION_NON_SHARED, false);
        includeSourceCode = config.getBoolOption(OPTION_SOURCE_CODE, false);
        ignoreMissingDoc = config.getBoolOption(OPTION_IGNORE_MISSING_DOC, false);
        ignoreMissingThrows = config.getBoolOption(OPTION_IGNORE_MISSING_THROWS, false);
        ignoreBrokenLink = config.getBoolOption(OPTION_IGNORE_BROKEN_LINK, false);

        String[] linkValues = config.getOptionValues(OPTION_LINK);
        if (linkValues != null) {
            setLinks(Arrays.asList(linkValues));
        }
       
        log = new CeylondLogger();
View Full Code Here

Examples of com.redhat.ceylon.common.config.CeylonConfig

import com.sun.tools.javac.util.Options;

public class CompilerConfig {

    public static CeylonConfig instance(Context context) {
        CeylonConfig instance = context.get(CeylonConfig.class);
        if (instance == null) {
            Options options = Options.instance(context);
            String cwd = options.get(OptionName.CEYLONCWD);
            if (cwd == null) {
                cwd = ".";
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.