• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java Finalize类的典型用法和代码示例

java 1次浏览

本文整理汇总了Java中org.gradle.model.Finalize的典型用法代码示例。如果您正苦于以下问题:Java Finalize类的具体用法?Java Finalize怎么用?Java Finalize使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

Finalize类属于org.gradle.model包,在下文中一共展示了Finalize类的33个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: attachTestedBinarySourcesToTestBinaries

点赞 3

import org.gradle.model.Finalize; //导入依赖的package包/类
@Finalize
void attachTestedBinarySourcesToTestBinaries(@Each final NativeTestSuiteBinarySpecInternal testSuiteBinary) {
    final BinarySpec testedBinary = testSuiteBinary.getTestedBinary();
    testSuiteBinary.getInputs().withType(DependentSourceSet.class).all(new Action<DependentSourceSet>() {
        @Override
        public void execute(DependentSourceSet testSource) {
            testSource.lib(testedBinary.getInputs());
        }
    });
    testedBinary.getInputs().all(new Action<LanguageSourceSet>() {
        @Override
        public void execute(LanguageSourceSet testedSource) {
            testSuiteBinary.getInputs().add(testedSource);
        }
    });
}
 

开发者ID:lxxlxx888,
项目名称:Reer,
代码行数:17,
代码来源:NativeBinariesTestPlugin.java

示例2: linkTestSuiteBinariesRunTaskToBinariesCheckTasks

点赞 3

import org.gradle.model.Finalize; //导入依赖的package包/类
@Finalize
void linkTestSuiteBinariesRunTaskToBinariesCheckTasks(@Path("binaries") ModelMap<TestSuiteBinarySpec> binaries) {
    binaries.afterEach(new Action<TestSuiteBinarySpec>() {
        @Override
        public void execute(TestSuiteBinarySpec testSuiteBinary) {
            if (testSuiteBinary.isBuildable()) {
                if (testSuiteBinary.getTasks() instanceof TestSuiteTaskCollection) {
                    testSuiteBinary.checkedBy(((TestSuiteTaskCollection) testSuiteBinary.getTasks()).getRun());
                }
                BinarySpec testedBinary = testSuiteBinary.getTestedBinary();
                if (testedBinary != null && testedBinary.isBuildable()) {
                    testedBinary.checkedBy(testSuiteBinary.getCheckTask());
                }
            }
        }
    });
}
 

开发者ID:lxxlxx888,
项目名称:Reer,
代码行数:18,
代码来源:TestingModelBasePlugin.java

示例3: finalizeProjectConfig

点赞 3

import org.gradle.model.Finalize; //导入依赖的package包/类
/**
 * Finalize the project configuration
 *
 * <ul>
 * <li>Initialize the license URLs if not set
 * </ul>
 *
 * @param projectConfig Project configuration to finalize
 */
@Finalize
public void finalizeProjectConfig(ProjectConfig projectConfig) {
    License license = projectConfig.getLicense();
    String licenseId = license.getId();

    if (licenseId != null) {
        if (license.getUrl() == null) {
            license.setUrl("https://opensource.org/licenses/" + licenseId.replace(' ', '-'));
        }

        if (license.getSourceUrl() == null) {
            license.setSourceUrl(
                    "https://raw.githubusercontent.com/github/choosealicense.com/gh-pages/_licenses/"
                            + licenseId.toLowerCase().replace(' ', '-') + ".txt");
        }
    }
}
 

开发者ID:jochenseeber,
项目名称:gradle-project-config,
代码行数:27,
代码来源:ProjectConfigPlugin.java

示例4: configureCheckstyleTasks

点赞 3

import org.gradle.model.Finalize; //导入依赖的package包/类
/**
 * Create Checkstyle tasks
 *
 * @param tasks Task container
 * @param checkstyleConfig Checkstyle configuration
 * @param sources Source sets
 * @param files
 * @param context
 */
@Finalize
public void configureCheckstyleTasks(ModelMap<Checkstyle> tasks, CheckstyleConfig checkstyleConfig,
        ProjectSourceSet sources, FileOperations files, ProjectContext context) {
    for (JavaSourceSet source : sources.withType(JavaSourceSet.class)) {
        String taskName = getCheckstyleTaskName(source);

        if (!checkstyleConfig.getIgnoreSourceSets().contains(source.getParentName())) {
            tasks.named(taskName, t -> {
                File checkstyleConfigFile = getCheckstyleConfigFile(source.getParentName(), files);

                t.setGroup(JavaBasePlugin.VERIFICATION_GROUP);
                t.setConfigFile(checkstyleConfigFile);

                if (checkstyleConfigFile.getParentFile() != null) {
                    t.setConfigDir(context.provider(() -> checkstyleConfigFile.getParentFile()));
                }

                t.dependsOn(getUpdateConfigTaskName(source));
            });
        }
    }
}
 

开发者ID:jochenseeber,
项目名称:gradle-project-config,
代码行数:32,
代码来源:CheckstyleConfigPlugin.java

示例5: finalizeEclipseClasspathTask

点赞 3

import org.gradle.model.Finalize; //导入依赖的package包/类
/**
 * @param eclipseClasspath
 * @param eclipseConfigPlugin
 * @param configurations
 */
@Finalize
public void finalizeEclipseClasspathTask(@Each GenerateEclipseClasspath eclipseClasspath,
        EclipseConfigPlugin eclipseConfigPlugin, ConfigurationContainer configurations) {
    EclipseClasspath classpath = eclipseClasspath.getClasspath();

    Configuration integrationCompileConfiguration = configurations.getAsMap()
            .get(JavaConfigPlugin.INTEGRATION_COMPILE_CLASSPATH_CONFIGURATION);

    if (integrationCompileConfiguration != null) {
        classpath.getPlusConfigurations().add(integrationCompileConfiguration);
    }

    Configuration integrationRuntimeConfiguration = configurations.getAsMap()
            .get(JavaConfigPlugin.INTEGRATION_RUNTIME_CLASSPATH_CONFIGURATION);

    if (integrationRuntimeConfiguration != null) {
        classpath.getPlusConfigurations().add(integrationRuntimeConfiguration);
    }

    classpath.getFile().whenMerged((Classpath c) -> {
        c.getEntries().removeIf(e -> (e instanceof Library)
                && Files.getFileExtension(((Library) e).getPath()).equalsIgnoreCase("pom"));
    });
}
 

开发者ID:jochenseeber,
项目名称:gradle-project-config,
代码行数:30,
代码来源:EclipseConfigPlugin.java

示例6: attachNativeTasksToAndroidBinary

点赞 3

import org.gradle.model.Finalize; //导入依赖的package包/类
@Finalize
public void attachNativeTasksToAndroidBinary(ModelMap<AndroidBinary> binaries) {
    binaries.afterEach(new Action<AndroidBinary>() {
        @Override
        public void execute(AndroidBinary androidBinary) {
            DefaultAndroidBinary binary = (DefaultAndroidBinary) androidBinary;
            if (binary.getTargetAbi().isEmpty()) {
                binary.builtBy(binary.getNativeBinaries());
            } else {
                for (NativeLibraryBinarySpec nativeBinary : binary.getNativeBinaries()) {
                    if (binary.getTargetAbi()
                            .contains(nativeBinary.getTargetPlatform().getName())) {
                        binary.builtBy(nativeBinary);
                    }
                }
            }
        }
    });
}
 

开发者ID:jskierbi,
项目名称:intellij-ce-playground,
代码行数:20,
代码来源:NdkComponentModelPlugin.java

示例7: createTestTasks

点赞 3

import org.gradle.model.Finalize; //导入依赖的package包/类
@Finalize
public void createTestTasks(final TaskContainer tasks, BinaryContainer binaries) {
    for (NativeTestSuiteBinarySpec testBinary : binaries.withType(NativeTestSuiteBinarySpec.class)) {
        NativeBinarySpecInternal binary = (NativeBinarySpecInternal) testBinary;
        final BinaryNamingScheme namingScheme = binary.getNamingScheme();

        RunTestExecutable runTask = tasks.create(namingScheme.getTaskName("run"), RunTestExecutable.class);
        final Project project = runTask.getProject();
        runTask.setDescription(String.format("Runs the %s", binary.getNamingScheme().getDescription()));

        final InstallExecutable installTask = binary.getTasks().withType(InstallExecutable.class).iterator().next();
        runTask.getInputs().files(installTask.getOutputs().getFiles());
        runTask.setExecutable(installTask.getRunScript().getPath());
        runTask.setOutputDir(new File(project.getBuildDir(), "/test-results/" + namingScheme.getOutputDirectoryBase()));
    }
}
 

开发者ID:Pushjet,
项目名称:Pushjet-Android,
代码行数:17,
代码来源:NativeBinariesTestPlugin.java

示例8: createWsdlSourceSets

点赞 3

import org.gradle.model.Finalize; //导入依赖的package包/类
/**
 * Finalize the wsimport components
 *
 * @param wsimportComponents Wsimport components to finalize
 * @param files File operations
 */
@Finalize
public void createWsdlSourceSets(ModelMap<WsimportComponent> wsimportComponents, FileOperations files) {
    for (String componentName : DEFAULT_SOURCE_SET_NAMES) {
        File sourceDirectory = getSourceDirectory(componentName, "wsdl");
        String wsdlComponentName = getWsdlComponentName(componentName);

        wsimportComponents.create(wsdlComponentName, c -> {
            if (files.file(sourceDirectory).isDirectory()) {
                c.getSources().create("wsdl", WsdlSourceSet.class, s -> {
                    s.getSource().setSrcDirs(Collections.singleton(sourceDirectory));
                });
            }
        });
    }
}
 

开发者ID:jochenseeber,
项目名称:gradle-wsimport-plugin,
代码行数:22,
代码来源:WsimportPlugin.java

示例9: configureRunTask

点赞 2

import org.gradle.model.Finalize; //导入依赖的package包/类
@Finalize
void configureRunTask(@Each NativeTestSuiteBinarySpecInternal testSuiteBinary) {
    BinaryNamingScheme namingScheme = testSuiteBinary.getNamingScheme();
    NativeTestSuiteBinarySpec.TasksCollection tasks = testSuiteBinary.getTasks();
    InstallExecutable installTask = (InstallExecutable) tasks.getInstall();
    RunTestExecutable runTask = (RunTestExecutable) tasks.getRun();
    runTask.getInputs().files(installTask.getOutputs().getFiles()).withPropertyName("installTask.outputs");
    runTask.setExecutable(installTask.getRunScript().getPath());
    Project project = runTask.getProject();
    runTask.setOutputDir(namingScheme.getOutputDirectory(project.getBuildDir(), "test-results"));
}
 

开发者ID:lxxlxx888,
项目名称:Reer,
代码行数:12,
代码来源:NativeBinariesTestPlugin.java

示例10: createSourceTransformTasks

点赞 2

import org.gradle.model.Finalize; //导入依赖的package包/类
@Finalize
void createSourceTransformTasks(final TaskContainer tasks, @Path("binaries") final ModelMap<BinarySpecInternal> binaries, LanguageTransformContainer languageTransforms, ServiceRegistry serviceRegistry) {
    BinarySourceTransformations transformations = new BinarySourceTransformations(tasks, languageTransforms, serviceRegistry);
    for (BinarySpecInternal binary : binaries) {
        if (binary.isLegacyBinary()) {
            continue;
        }

        transformations.createTasksFor(binary);
    }
}
 

开发者ID:lxxlxx888,
项目名称:Reer,
代码行数:12,
代码来源:ComponentModelBasePlugin.java

示例11: applyFallbackSourceConventions

点赞 2

import org.gradle.model.Finalize; //导入依赖的package包/类
@Finalize
void applyFallbackSourceConventions(@Each LanguageSourceSet languageSourceSet, ProjectIdentifier projectIdentifier) {
    // Only apply default locations when none explicitly configured
    if (languageSourceSet.getSource().getSourceDirectories().isEmpty()) {
        File baseDir = projectIdentifier.getProjectDir();
        String defaultSourceDir = Joiner.on(File.separator).skipNulls().join(baseDir.getPath(), "src", emptyToNull(languageSourceSet.getParentName()), emptyToNull(languageSourceSet.getName()));
        languageSourceSet.getSource().srcDir(defaultSourceDir);
    }
}
 

开发者ID:lxxlxx888,
项目名称:Reer,
代码行数:10,
代码来源:ComponentModelBasePlugin.java

示例12: defineBinariesCheckTasks

点赞 2

import org.gradle.model.Finalize; //导入依赖的package包/类
@Finalize
public void defineBinariesCheckTasks(@Each BinarySpecInternal binary, ITaskFactory taskFactory) {
    if (binary.isLegacyBinary()) {
        return;
    }
    TaskInternal binaryLifecycleTask = taskFactory.create(binary.getNamingScheme().getTaskName("check"), DefaultTask.class);
    binaryLifecycleTask.setGroup(LifecycleBasePlugin.VERIFICATION_GROUP);
    binaryLifecycleTask.setDescription("Check " + binary);
    binary.setCheckTask(binaryLifecycleTask);
}
 

开发者ID:lxxlxx888,
项目名称:Reer,
代码行数:11,
代码来源:TestingModelBasePlugin.java

示例13: copyBinariesCheckTasksToTaskContainer

点赞 2

import org.gradle.model.Finalize; //导入依赖的package包/类
@Finalize
void copyBinariesCheckTasksToTaskContainer(TaskContainer tasks, BinaryContainer binaries) {
    for (BinarySpec binary : binaries) {
        Task checkTask = binary.getCheckTask();
        if (checkTask != null) {
            tasks.add(checkTask);
        }
    }
}
 

开发者ID:lxxlxx888,
项目名称:Reer,
代码行数:10,
代码来源:TestingModelBasePlugin.java

示例14: attachBinariesCheckTasksToCheckLifecycle

点赞 2

import org.gradle.model.Finalize; //导入依赖的package包/类
@Finalize
void attachBinariesCheckTasksToCheckLifecycle(@Path("tasks.check") Task checkTask, @Path("binaries") ModelMap<BinarySpec> binaries) {
    for (BinarySpec binary : binaries) {
        if (binary.isBuildable()) {
            Task binaryCheckTask = binary.getCheckTask();
            if (binaryCheckTask != null) {
                checkTask.dependsOn(binaryCheckTask);
            }
        }
    }
}
 

开发者ID:lxxlxx888,
项目名称:Reer,
代码行数:12,
代码来源:TestingModelBasePlugin.java

示例15: configureGeneratedSourceSets

点赞 2

import org.gradle.model.Finalize; //导入依赖的package包/类
@Finalize
void configureGeneratedSourceSets(@Each LanguageSourceSetInternal languageSourceSet) {
    Task generatorTask = languageSourceSet.getGeneratorTask();
    if (generatorTask != null) {
        languageSourceSet.builtBy(generatorTask);
        maybeSetSourceDir(languageSourceSet.getSource(), generatorTask, "sourceDir");
        if (languageSourceSet instanceof HeaderExportingSourceSet) {
            maybeSetSourceDir(((HeaderExportingSourceSet) languageSourceSet).getExportedHeaders(), generatorTask, "headerDir");
        }
    }
}
 

开发者ID:lxxlxx888,
项目名称:Reer,
代码行数:12,
代码来源:NativeComponentModelPlugin.java

示例16: applyHeaderSourceSetConventions

点赞 2

import org.gradle.model.Finalize; //导入依赖的package包/类
@Finalize
void applyHeaderSourceSetConventions(@Each HeaderExportingSourceSet headerSourceSet) {
    // Only apply default locations when none explicitly configured
    if (headerSourceSet.getExportedHeaders().getSourceDirectories().isEmpty()) {
        headerSourceSet.getExportedHeaders().srcDir("src/" + headerSourceSet.getParentName() + "/headers");
    }

    headerSourceSet.getImplicitHeaders().setSrcDirs(headerSourceSet.getSource().getSourceDirectories());
    headerSourceSet.getImplicitHeaders().include("**/*.h");
}
 

开发者ID:lxxlxx888,
项目名称:Reer,
代码行数:11,
代码来源:NativeComponentModelPlugin.java

示例17: createBinaries

点赞 2

import org.gradle.model.Finalize; //导入依赖的package包/类
@Finalize
void createBinaries(@Each TargetedNativeComponentInternal nativeComponent,
                    PlatformResolvers platforms,
                    BuildTypeContainer buildTypes,
                    FlavorContainer flavors,
                    ServiceRegistry serviceRegistry
) {
    NativePlatforms nativePlatforms = serviceRegistry.get(NativePlatforms.class);
    NativeDependencyResolver nativeDependencyResolver = serviceRegistry.get(NativeDependencyResolver.class);
    FileCollectionFactory fileCollectionFactory = serviceRegistry.get(FileCollectionFactory.class);
    NativeComponentRules.createBinariesImpl(nativeComponent, platforms, buildTypes, flavors, nativePlatforms, nativeDependencyResolver, fileCollectionFactory);
}
 

开发者ID:lxxlxx888,
项目名称:Reer,
代码行数:13,
代码来源:NativeComponentModelPlugin.java

示例18: addMarkerPublications

点赞 2

import org.gradle.model.Finalize; //导入依赖的package包/类
@Finalize
public void addMarkerPublications(PublishingExtension publishing, GradlePluginDevelopmentExtension pluginDevelopment) {
    if (!pluginDevelopment.isAutomatedPublishing()) {
        return;
    }

    PublicationContainer publications = publishing.getPublications();
    NamedDomainObjectContainer<PluginDeclaration> declaredPlugins = pluginDevelopment.getPlugins();

    for (PluginDeclaration declaration : declaredPlugins) {
        createMavenMarkerPublication(declaration, (MavenPublication) publications.getByName("pluginMaven"), publications);
    }
}
 

开发者ID:lxxlxx888,
项目名称:Reer,
代码行数:14,
代码来源:MavenPluginPublishingRules.java

示例19: addMarkerPublications

点赞 2

import org.gradle.model.Finalize; //导入依赖的package包/类
@Finalize
public void addMarkerPublications(PublishingExtension publishing, GradlePluginDevelopmentExtension pluginDevelopment) {
    if (!pluginDevelopment.isAutomatedPublishing()) {
        return;
    }
    PublicationContainer publications = publishing.getPublications();
    NamedDomainObjectContainer<PluginDeclaration> declaredPlugins = pluginDevelopment.getPlugins();
    for (PluginDeclaration declaration : declaredPlugins) {
        createIvyMarkerPublication(declaration, (IvyPublication) publications.getByName("pluginIvy"), publications);
    }
}
 

开发者ID:lxxlxx888,
项目名称:Reer,
代码行数:12,
代码来源:IvyPluginPublishingRules.java

示例20: createJavascriptSourceSets

点赞 2

import org.gradle.model.Finalize; //导入依赖的package包/类
@Finalize
void createJavascriptSourceSets(@Each PlayApplicationSpec playComponent) {
    playComponent.getSources().create("javaScript", JavaScriptSourceSet.class, new Action<JavaScriptSourceSet>() {
        @Override
        public void execute(JavaScriptSourceSet javaScriptSourceSet) {
            javaScriptSourceSet.getSource().srcDir("app/assets");
            javaScriptSourceSet.getSource().include("**/*.js");
        }
    });
}
 

开发者ID:lxxlxx888,
项目名称:Reer,
代码行数:11,
代码来源:PlayJavaScriptPlugin.java

示例21: finalizeIntegrationTask

点赞 2

import org.gradle.model.Finalize; //导入依赖的package包/类
/**
 * Finalize tasks because of {@link JavaPlugin} interference
 *
 * @param tasks Task model
 * @param javaConvention Java conventions
 */
@Finalize
public void finalizeIntegrationTask(ModelMap<Test> tasks, JavaPluginConvention javaConvention) {
    SourceSet source = javaConvention.getSourceSets().getByName(INTEGRATION_SOURCE_SET_NAME);

    tasks.named(INTEGRATION_SOURCE_SET_NAME, t -> {
        t.setClasspath(source.getRuntimeClasspath());
        t.setTestClassesDirs(source.getOutput().getClassesDirs());
    });
}
 

开发者ID:jochenseeber,
项目名称:gradle-project-config,
代码行数:16,
代码来源:JavaConfigPlugin.java

示例22: finalizeAndroidModel

点赞 2

import org.gradle.model.Finalize; //导入依赖的package包/类
@Finalize
public void finalizeAndroidModel(AndroidConfig androidModel) {
    if (androidModel.getBuildToolsRevision() == null
            && androidModel.getBuildToolsVersion() != null) {
        androidModel.setBuildToolsRevision(
                FullRevision.parseRevision(androidModel.getBuildToolsVersion()));
    }

    if (androidModel.getCompileSdkVersion() != null
            && !androidModel.getCompileSdkVersion().startsWith("android-")
            && Ints.tryParse(androidModel.getCompileSdkVersion()) != null) {
        androidModel.setCompileSdkVersion("android-" + androidModel.getCompileSdkVersion());
    }

}
 

开发者ID:jskierbi,
项目名称:intellij-ce-playground,
代码行数:16,
代码来源:AndroidComponentModelPlugin.java

示例23: createSourceTransformTasks

点赞 2

import org.gradle.model.Finalize; //导入依赖的package包/类
@Finalize
void createSourceTransformTasks(final TaskContainer tasks, final BinaryContainer binaries, LanguageRegistry languageRegistry) {
    for (LanguageRegistration<?> language : languageRegistry) {
        for (BinarySpecInternal binary : binaries.withType(BinarySpecInternal.class)) {
            final CreateSourceTransformTask createRule = new CreateSourceTransformTask(language);
            createRule.createCompileTasksForBinary(tasks, binary);
        }
    }
}
 

开发者ID:Pushjet,
项目名称:Pushjet-Android,
代码行数:10,
代码来源:ComponentModelBasePlugin.java

示例24: applyDefaultSourceConventions

点赞 2

import org.gradle.model.Finalize; //导入依赖的package包/类
@Finalize
// Needs to run after NativeComponentModelPlugin.Rules.configureGeneratedSourceSets()
void applyDefaultSourceConventions(ProjectSourceSet sources) {
    for (FunctionalSourceSet functionalSourceSet : sources) {
        for (LanguageSourceSet languageSourceSet : functionalSourceSet) {
            // Only apply default locations when none explicitly configured
            if (languageSourceSet.getSource().getSrcDirs().isEmpty()) {
                languageSourceSet.getSource().srcDir(String.format("src/%s/%s", functionalSourceSet.getName(), languageSourceSet.getName()));
            }
        }
    }
}
 

开发者ID:Pushjet,
项目名称:Pushjet-Android,
代码行数:13,
代码来源:ComponentModelBasePlugin.java

示例25: created

点赞 2

import org.gradle.model.Finalize; //导入依赖的package包/类
@Finalize // Must run after test binaries have been created (currently in CUnit plugin)
void attachTestedBinarySourcesToTestBinaries(BinaryContainer binaries) {
    for (NativeTestSuiteBinarySpec testSuiteBinary : binaries.withType(NativeTestSuiteBinarySpec.class)) {
        NativeBinarySpec testedBinary = testSuiteBinary.getTestedBinary();
        testSuiteBinary.source(testedBinary.getSource());

        for (DependentSourceSet testSource : testSuiteBinary.getSource().withType(DependentSourceSet.class)) {
            testSource.lib(testedBinary.getSource());
        }
    }
}
 

开发者ID:Pushjet,
项目名称:Pushjet-Android,
代码行数:12,
代码来源:NativeBinariesTestPlugin.java

示例26: setMainClass

点赞 2

import org.gradle.model.Finalize; //导入依赖的package包/类
@Finalize
public void setMainClass(@Each JarBinarySpec binary) {
    if (binary.getLibrary() instanceof ClojureApplicationSpec) {
        Map<String, String> attrs = new HashMap<>();

        String main = ((ClojureApplicationSpec) binary.getLibrary()).getMain();
        attrs.put("Main-Class", main);

        binary.getTasks().whenObjectAdded(task -> {
           if (task instanceof Jar) {
               ((Jar) task).getManifest().attributes(attrs);
           }
        });
    }
}
 

开发者ID:ajoberstar,
项目名称:graclj,
代码行数:16,
代码来源:ClojureComponentRules.java

示例27: getMutationType

点赞 2

import org.gradle.model.Finalize; //导入依赖的package包/类
@Override
protected ModelActionRole getMutationType() {
    return ModelActionRole.Finalize;
}
 

开发者ID:lxxlxx888,
项目名称:Reer,
代码行数:5,
代码来源:FinalizeModelRuleExtractor.java

示例28: createDefaultToolChain

点赞 2

import org.gradle.model.Finalize; //导入依赖的package包/类
@Finalize
public void createDefaultToolChain(NativeToolChainRegistryInternal toolChains) {
    if (toolChains.isEmpty()) {
        toolChains.addDefaultToolChains();
    }
}
 

开发者ID:lxxlxx888,
项目名称:Reer,
代码行数:7,
代码来源:NativeComponentModelPlugin.java

示例29: createDefaultBuildTypes

点赞 2

import org.gradle.model.Finalize; //导入依赖的package包/类
@Finalize
public void createDefaultBuildTypes(BuildTypeContainer buildTypes) {
    if (buildTypes.isEmpty()) {
        buildTypes.create("debug");
    }
}
 

开发者ID:lxxlxx888,
项目名称:Reer,
代码行数:7,
代码来源:NativeComponentModelPlugin.java

示例30: createDefaultFlavor

点赞 2

import org.gradle.model.Finalize; //导入依赖的package包/类
@Finalize
public void createDefaultFlavor(FlavorContainer flavors) {
    if (flavors.isEmpty()) {
        flavors.create(DefaultFlavor.DEFAULT);
    }
}
 

开发者ID:lxxlxx888,
项目名称:Reer,
代码行数:7,
代码来源:NativeComponentModelPlugin.java

示例31: wireBuildDependentTasks

点赞 2

import org.gradle.model.Finalize; //导入依赖的package包/类
@Finalize
public void wireBuildDependentTasks(ModelMap<Task> tasks, BinaryContainer binaries, DependentBinariesResolver dependentsResolver, ServiceRegistry serviceRegistry) {
    NativeComponents.wireBuildDependentTasks(tasks, binaries, dependentsResolver, serviceRegistry.get(ProjectModelResolver.class));
}
 

开发者ID:lxxlxx888,
项目名称:Reer,
代码行数:5,
代码来源:NativeComponentModelPlugin.java

示例32: setDefaultSrcDir

点赞 2

import org.gradle.model.Finalize; //导入依赖的package包/类
@Finalize
public void setDefaultSrcDir(
        @Path("android.sources") AndroidComponentModelSourceSet sourceSet) {
    sourceSet.setDefaultSrcDir();
}
 

开发者ID:jskierbi,
项目名称:intellij-ce-playground,
代码行数:6,
代码来源:AndroidComponentModelPlugin.java

示例33: setDefaultNdkExtensionValue

点赞 2

import org.gradle.model.Finalize; //导入依赖的package包/类
@Finalize
public void setDefaultNdkExtensionValue(@Path("android.ndk") NdkConfig ndkConfig) {
    NdkExtensionConvention.setExtensionDefault(ndkConfig);
}
 

开发者ID:jskierbi,
项目名称:intellij-ce-playground,
代码行数:5,
代码来源:NdkComponentModelPlugin.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)