当前位置: 首页>>代码示例>>Java>>正文


Java Actions.composite方法代码示例

本文整理汇总了Java中org.gradle.internal.Actions.composite方法的典型用法代码示例。如果您正苦于以下问题:Java Actions.composite方法的具体用法?Java Actions.composite怎么用?Java Actions.composite使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.gradle.internal.Actions的用法示例。


在下文中一共展示了Actions.composite方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createBinaries

import org.gradle.internal.Actions; //导入方法依赖的package包/类
@Mutate
public void createBinaries(BinaryContainer binaries, PlatformContainer platforms, BinaryNamingSchemeBuilder namingSchemeBuilder,
                           NamedDomainObjectCollection<JvmLibrarySpec> libraries, @Path("buildDir") File buildDir, ServiceRegistry serviceRegistry, JavaToolChainRegistry toolChains) {
    Instantiator instantiator = serviceRegistry.get(Instantiator.class);

    List<Action<? super JarBinarySpec>> actions = Lists.newArrayList();
    actions.add(new JarBinarySpecInitializer(buildDir));
    actions.add(new MarkBinariesBuildable());
    Action<JarBinarySpec> initAction = Actions.composite(actions);
    JarBinariesFactory factory = new DefaultJarBinariesFactory(instantiator, initAction);

    Action<JvmLibrarySpec> createBinariesAction =
            new JvmLibrarySpecInitializer(factory, namingSchemeBuilder, toolChains, platforms);

    for (JvmLibrarySpec jvmLibrary : libraries) {
        createBinariesAction.execute(jvmLibrary);
        binaries.addAll(jvmLibrary.getBinaries());
    }
}
 
开发者ID:Pushjet,项目名称:Pushjet-Android,代码行数:20,代码来源:JvmComponentPlugin.java

示例2: createNativeBinaries

import org.gradle.internal.Actions; //导入方法依赖的package包/类
@Mutate
public void createNativeBinaries(BinaryContainer binaries, NamedDomainObjectSet<NativeComponentSpec> nativeComponents,
                                 LanguageRegistry languages, NativeToolChainRegistryInternal toolChains,
                                 PlatformContainer platforms, BuildTypeContainer buildTypes, FlavorContainer flavors,
                                 ServiceRegistry serviceRegistry, @Path("buildDir") File buildDir) {
    Instantiator instantiator = serviceRegistry.get(Instantiator.class);
    NativeDependencyResolver resolver = serviceRegistry.get(NativeDependencyResolver.class);
    Action<NativeBinarySpec> configureBinaryAction = new NativeBinarySpecInitializer(buildDir);
    Action<NativeBinarySpec> setToolsAction = new ToolSettingNativeBinaryInitializer(languages);
    Action<NativeBinarySpec> setDefaultTargetsAction = new ToolSettingNativeBinaryInitializer(languages);
    @SuppressWarnings("unchecked") Action<NativeBinarySpec> initAction = Actions.composite(configureBinaryAction, setToolsAction, new MarkBinariesBuildable());
    NativeBinariesFactory factory = new DefaultNativeBinariesFactory(instantiator, initAction, resolver);
    BinaryNamingSchemeBuilder namingSchemeBuilder = new DefaultBinaryNamingSchemeBuilder();
    Action<NativeComponentSpec> createBinariesAction =
            new NativeComponentSpecInitializer(factory, namingSchemeBuilder, toolChains, platforms, buildTypes, flavors);

    for (NativeComponentSpec component : nativeComponents) {
        createBinariesAction.execute(component);
        binaries.addAll(component.getBinaries());
    }
}
 
开发者ID:Pushjet,项目名称:Pushjet-Android,代码行数:22,代码来源:NativeComponentModelPlugin.java

示例3: getDependencySubstitutionRule

import org.gradle.internal.Actions; //导入方法依赖的package包/类
public Action<DependencySubstitution> getDependencySubstitutionRule() {
    Collection<Action<DependencySubstitution>> allRules = flattenElements(
            new ModuleForcingResolveRule(forcedModules),
            dependencySubstitutions.getRuleAction(),
            globalDependencySubstitutionRules.getRuleAction());
    return Actions.composite(allRules);
}
 
开发者ID:lxxlxx888,项目名称:Reer,代码行数:8,代码来源:DefaultResolutionStrategy.java

示例4: getRuleAction

import org.gradle.internal.Actions; //导入方法依赖的package包/类
@Override
public Action<DependencySubstitution> getRuleAction() {
    return Actions.composite(CollectionUtils.collect(ruleProviders, new Transformer<Action<? super DependencySubstitution>, DependencySubstitutionRules>() {
        @Override
        public Action<? super DependencySubstitution> transform(DependencySubstitutionRules rule) {
            return rule.getRuleAction();
        }
    }));
}
 
开发者ID:lxxlxx888,项目名称:Reer,代码行数:10,代码来源:DefaultGlobalDependencyResolutionRules.java

示例5: getRuleAction

import org.gradle.internal.Actions; //导入方法依赖的package包/类
@Override
public Action<DependencySubstitution> getRuleAction() {
    List<Action<DependencySubstitution>> allActions = Lists.newArrayList();
    if (!provided.isEmpty()) {
        allActions.add(new CompositeBuildDependencySubstitutions(provided));
    }
    allActions.addAll(substitutionRules);
    return Actions.composite(allActions);
}
 
开发者ID:lxxlxx888,项目名称:Reer,代码行数:10,代码来源:DefaultBuildableCompositeBuildContext.java

示例6: createProjectEvaluator

import org.gradle.internal.Actions; //导入方法依赖的package包/类
protected ProjectEvaluator createProjectEvaluator() {
    ConfigureActionsProjectEvaluator withActionsEvaluator = new ConfigureActionsProjectEvaluator(
            new PluginsProjectConfigureActions(get(ClassLoaderRegistry.class).getPluginsClassLoader()),
            new BuildScriptProcessor(get(ScriptPluginFactory.class)),
            new DelayedConfigurationActions()
    );
    Action<? super ProjectInternal> projectFinalizer = Actions.composite(new TaskModelRealizingConfigurationAction(),
            new ModelRegistryValidatingConfigurationAction());
    return new LifecycleProjectEvaluator(withActionsEvaluator, projectFinalizer);
}
 
开发者ID:Pushjet,项目名称:Pushjet-Android,代码行数:11,代码来源:BuildScopeServices.java

示例7: getArgAction

import org.gradle.internal.Actions; //导入方法依赖的package包/类
public Action<List<String>> getArgAction() {
    Action<? super List<String>> platformArgsAction = new Action<List<String>>() {
        public void execute(List<String> strings) {
            strings.addAll(0, platformArgs);
        }
    };
    return Actions.composite(baseTool.getArgAction(), platformArgsAction);
}
 
开发者ID:Pushjet,项目名称:Pushjet-Android,代码行数:9,代码来源:PlatformGccTool.java

示例8: ConnectionVersion4BackedModelProducer

import org.gradle.internal.Actions; //导入方法依赖的package包/类
public ConnectionVersion4BackedModelProducer(ProtocolToModelAdapter adapter, VersionDetails versionDetails, ModelMapping modelMapping, ConnectionVersion4 delegate) {
    super(adapter, versionDetails, modelMapping);
    this.delegate = delegate;
    mapper = Actions.composite(
            new PropertyHandlerFactory().forVersion(versionDetails),
            new TaskPropertyHandlerFactory().forVersion(versionDetails));
}
 
开发者ID:Pushjet,项目名称:Pushjet-Android,代码行数:8,代码来源:ConnectionVersion4BackedConsumerConnection.java

示例9: getRuleAction

import org.gradle.internal.Actions; //导入方法依赖的package包/类
@Override
public Action<DependencySubstitution> getRuleAction() {
    return Actions.composite(substitutionRules);
}
 
开发者ID:lxxlxx888,项目名称:Reer,代码行数:5,代码来源:DefaultDependencySubstitutions.java

示例10: getArgAction

import org.gradle.internal.Actions; //导入方法依赖的package包/类
@Override
public Action<List<String>> getArgAction() {
    return Actions.composite(argActions);
}
 
开发者ID:lxxlxx888,项目名称:Reer,代码行数:5,代码来源:DefaultCommandLineToolConfiguration.java

示例11: getDependencyResolveRule

import org.gradle.internal.Actions; //导入方法依赖的package包/类
public Action<DependencyResolveDetailsInternal> getDependencyResolveRule() {
    Collection allRules = flattenElements(new ModuleForcingResolveRule(forcedModules), dependencyResolveRules);
    return Actions.composite(allRules);
}
 
开发者ID:Pushjet,项目名称:Pushjet-Android,代码行数:5,代码来源:DefaultResolutionStrategy.java

示例12: getArgAction

import org.gradle.internal.Actions; //导入方法依赖的package包/类
public Action<List<String>> getArgAction() {
    return Actions.composite(argActions);
}
 
开发者ID:Pushjet,项目名称:Pushjet-Android,代码行数:4,代码来源:DefaultCommandLineToolConfiguration.java


注:本文中的org.gradle.internal.Actions.composite方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。