/** * Set options according to the configuration settings found in the given <code>CeylonConfig * </code> * * @param config The <code>CeylonConfig</code> to take the settings from */ public void mapOptions(CeylonConfig config) { setTimeout((int) DefaultToolOptions.getDefaultTimeout(config)); setOffline(DefaultToolOptions.getDefaultOffline(config)); setOverrides(DefaultToolOptions.getDefaultOverrides(config)); setRun(DefaultToolOptions.getRunToolRun(config, null)); setDowngradeDist(!DefaultToolOptions.getLinkWithCurrentDistribution(config)); }
private Path computeSourcePath() { List<String> sourcePathArgs = options.getMulti(SOURCEPATH); // Ceylon: default source path if (sourcePathArgs.isEmpty()) sourcePathArgs = FileUtil.filesToPathList(DefaultToolOptions.getCompilerSourceDirs(config)); Path path = new Path(); for (String pathArg : sourcePathArgs) { path.addFiles(pathArg); } return path; }