コード例 #1
0
 public Configuration detachedConfiguration(Dependency... dependencies) {
   DetachedConfigurationsProvider detachedConfigurationsProvider =
       new DetachedConfigurationsProvider();
   String name = DETACHED_CONFIGURATION_DEFAULT_NAME + detachedConfigurationDefaultNameCounter++;
   DefaultConfiguration detachedConfiguration =
       new DefaultConfiguration(
           name,
           name,
           detachedConfigurationsProvider,
           dependencyResolver,
           listenerManager,
           dependencyMetaDataProvider,
           new DefaultResolutionStrategy());
   DomainObjectSet<Dependency> detachedDependencies = detachedConfiguration.getDependencies();
   for (Dependency dependency : dependencies) {
     detachedDependencies.add(dependency.copy());
   }
   detachedConfigurationsProvider.setTheOnlyConfiguration(detachedConfiguration);
   return detachedConfiguration;
 }
コード例 #2
0
 public void source(Object sources) {
   sourceSets.addAll(sourcesNotationParser.parseNotation(sources));
 }
コード例 #3
0
 public void source(LanguageSourceSet sourceSet) {
   source.add(sourceSet);
 }