Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 16 for doFirst (0.07 seconds)

  1. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/ElasticsearchJavaPlugin.java

                    // are not supported by Gradle up-to-date checks
                    jarTask.doFirst(new Action<Task>() {
                        @Override
                        public void execute(Task task) {
                            // this doFirst is added before the info plugin, therefore it will run
                            // after the doFirst added by the info plugin, and we can override attributes
                            jarTask.getManifest()
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Mon Sep 27 16:04:42 GMT 2021
    - 7.3K bytes
    - Click Count (0)
  2. build-tools-internal/src/main/groovy/org/elasticsearch/gradle/internal/AntFixtureStop.groovy

        void setFixture(AntFixture fixture) {
            assert this.fixture == null
            this.fixture = fixture;
            final Object pid = "${ -> this.fixture.pid }"
            onlyIf { fixture.pidFile.exists() }
            doFirst {
                logger.info("Shutting down ${fixture.name} with pid ${pid}")
            }
    
            if (Os.isFamily(Os.FAMILY_WINDOWS)) {
                executable = 'Taskkill'
                args('/PID', pid, '/F')
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 1.6K bytes
    - Click Count (0)
  3. build-logic/buildquality/src/main/kotlin/gradlebuild.arch-test.gradle.kts

                            classpath += sourceSets["main"].output.classesDirs
                            val excludePatterns = packageCyclesExtension.excludePatterns
                            doFirst {
                                // workaround for https://github.com/gradle/gradle/issues/12247
                                systemProperty("package.cycle.exclude.patterns", excludePatterns.get().joinToString(","))
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Tue Feb 10 08:11:56 GMT 2026
    - 3.4K bytes
    - Click Count (0)
  4. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/testfixtures/TestFixturesPlugin.java

            BiConsumer<String, Integer> consumer
        ) {
            // Configure ports for the tests as system properties.
            // We only know these at execution time so we need to do it in doFirst
            task.doFirst(new Action<Task>() {
                @Override
                public void execute(Task theTask) {
                    TestFixtureExtension extension = theTask.getProject().getExtensions().getByType(TestFixtureExtension.class);
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Wed Sep 29 15:07:50 GMT 2021
    - 10.7K bytes
    - Click Count (0)
  5. build-logic-commons/publishing/src/main/kotlin/gradlebuild.publish-public-libraries.gradle.kts

            enabled = false // this should not be used so we disable it to avoid confusion when using 'publish' lifecycle task
        }
        val localPublish = project.tasks.named("publishLocalPublicationToLocalRepository") {
            doFirst {
                val moduleBaseDir = localRepository.get().dir("org/gradle/${baseName.get()}").asFile
                if (moduleBaseDir.exists()) {
                    // Make sure artifacts do not pile up locally
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Thu Oct 30 16:56:31 GMT 2025
    - 5.7K bytes
    - Click Count (0)
  6. build-logic/buildquality/src/test/kotlin/gradlebuild/testcleanup/TestFilesCleanupServiceTest.kt

                    }
    
                    tasks.named<Test>("test").configure {
                        this.ignoreFailures = ignoreFailures
                        if (hasLeftover) {
                            doFirst {
                                project.layout.buildDirectory.file("tmp/teŝt files/leftover/leftover").get().asFile.apply {
                                    parentFile.mkdirs()
                                    createNewFile()
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Tue Feb 10 00:16:44 GMT 2026
    - 11.6K bytes
    - Click Count (0)
  7. build-tools-internal/src/main/groovy/elasticsearch.ide.gradle

    import org.jetbrains.gradle.ext.JUnit
    
    import java.nio.file.Files
    import java.nio.file.Paths
    import java.nio.file.StandardCopyOption
    
    allprojects {
      apply plugin: 'idea'
    
      tasks.named('idea').configure {
        doFirst { throw new GradleException("Use of the 'idea' task has been deprecated. For details on importing into IntelliJ see CONTRIBUTING.md.") }
      }
    }
    
    tasks.register('configureIdeCheckstyle') {
      group = 'ide'
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Fri Sep 24 19:34:12 GMT 2021
    - 8.8K bytes
    - Click Count (0)
  8. build-tools-internal/src/main/groovy/org/elasticsearch/gradle/internal/doc/RestTestsFromSnippetsTask.groovy

        @Inject
        RestTestsFromSnippetsTask(ObjectFactory objectFactory) {
            testRoot = objectFactory.directoryProperty()
            TestBuilder builder = new TestBuilder()
            doFirst { outputRoot().delete() }
            perSnippet builder.&handleSnippet
            doLast builder.&checkUnconverted
            doLast builder.&finishLastTest
        }
    
        /**
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 19.5K bytes
    - Click Count (0)
  9. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/test/rerun/TestTaskConfigurer.java

            TestRerunTaskExtension extension = test.getExtensions()
                .create(TestRerunTaskExtension.NAME, TestRerunTaskExtension.class, objectFactory);
            test.doFirst(new InitTaskAction(extension));
        }
    
        private static RerunTestExecuter createRetryTestExecuter(Task task, TestRerunTaskExtension extension) {
            TestExecuter<JvmTestExecutionSpec> delegate = getTestExecuter(task);
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 3.1K bytes
    - Click Count (0)
  10. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/BwcSetupExtension.java

                loggedExec.usesService(bwcTaskThrottleProvider);
                loggedExec.setSpoolOutput(true);
                loggedExec.setWorkingDir(checkoutDir.get());
                loggedExec.doFirst(new Action<Task>() {
                    @Override
                    public void execute(Task t) {
                        // Execution time so that the checkouts are available
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Wed Aug 18 09:11:28 GMT 2021
    - 6.8K bytes
    - Click Count (0)
Back to Top