예제 #1
0
파일: Options.java 프로젝트: ceylon/ceylon
 /**
  * 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));
 }
예제 #2
0
  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;
  }