Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 24 for taskdef (0.14 sec)

  1. subprojects/core/src/main/java/org/gradle/api/internal/project/IsolatedAntBuilder.java

     */
    public interface IsolatedAntBuilder {
    
        /**
         * Creates a copy of this builder which uses the given libraries. These classes are visible for use in
         * taskdef/typedef tasks.
         *
         * @param classpath The library classpath
         * @return a copy of this builder
         */
        IsolatedAntBuilder withClasspath(Iterable<File> classpath);
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 02 18:37:54 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  2. subprojects/core/src/test/groovy/org/gradle/api/internal/project/DefaultIsolatedAntBuilderTest.groovy

        }
    
        @Test
        void bridgesLogging() {
            def classpath = ClasspathUtil.getClasspathForClass(TestAntTask)
    
            builder.withClasspath([classpath]).execute {
                taskdef(name: 'loggingTask', classname: TestAntTask.name)
                loggingTask()
            }
    
            assertThat(outputEventListener.toString(), containsString('[[INFO] [ant-test] a jcl log message]'))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Feb 22 10:43:11 UTC 2021
    - 6.6K bytes
    - Viewed (0)
  3. platforms/jvm/code-quality/src/main/groovy/org/gradle/api/plugins/quality/internal/CodeNarcInvoker.groovy

            def reports = parameters.enabledReports.get()
            def ignoreFailures = parameters.ignoreFailures.get()
            def source = parameters.source
    
            setLifecycleLogLevel(ant, null)
            ant.taskdef(name: 'codenarc', classname: 'org.codenarc.ant.CodeNarcTask')
            try {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jun 21 14:00:06 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  4. subprojects/core/src/test/groovy/org/gradle/api/internal/project/DefaultAntBuilderTest.groovy

            ClassLoader original = Thread.currentThread().getContextClassLoader()
            ClassLoader cl = new URLClassLoader([] as URL[])
            Thread.currentThread().setContextClassLoader(cl)
    
            when:
            ant.taskdef(name: 'test', classname: TestTask.class.getName())
            ant.test()
    
            then:
            noExceptionThrown()
    
            cleanup:
            Thread.currentThread().setContextClassLoader(original)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Aug 11 16:17:40 UTC 2022
    - 7.7K bytes
    - Viewed (0)
  5. platforms/jvm/code-quality/src/main/groovy/org/gradle/api/plugins/quality/internal/PmdInvoker.groovy

                throw new GradleException("Invalid maxFailures $maxFailures. Valid range is >= 0.")
            }
    
            List<PmdActionParameters.EnabledReport> reports = parameters.enabledReports.get()
            ant.taskdef(name: 'pmd', classname: 'net.sourceforge.pmd.ant.PMDTask')
            ant.pmd(antPmdArgs) {
                parameters.source.addToAntBuilder(ant, 'fileset', FileCollection.AntType.FileSet)
                ruleSets.each {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jun 21 12:23:38 UTC 2023
    - 7.7K bytes
    - Viewed (0)
  6. platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/TaskReferenceCodec.kt

    private
    enum class ReferenceType {
        SELF_REF,
        TASK_REF,
        PROHIBITED
    }
    
    
    object TaskReferenceCodec : Codec<Task> {
    
        override suspend fun WriteContext.encode(value: Task) = when {
            value === isolate.owner.delegate ->
                writeEnum(ReferenceType.SELF_REF)
    
            isTaskReferencesAllowed(value) -> {
                writeEnum(ReferenceType.TASK_REF)
                writeString(value.name)
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:30 UTC 2024
    - 3K bytes
    - Viewed (0)
  7. okcurl/build.gradle.kts

    import com.vanniktech.maven.publish.JavadocJar
    import com.vanniktech.maven.publish.KotlinJvm
    import org.apache.tools.ant.taskdefs.condition.Os
    
    plugins {
      kotlin("jvm")
      id("org.jetbrains.dokka")
      id("com.vanniktech.maven.publish.base")
      id("com.palantir.graal")
      id("com.github.johnrengelman.shadow")
    }
    
    val copyResourcesTemplates = tasks.register<Copy>("copyResourcesTemplates") {
      from("src/main/resources-templates")
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Wed Dec 20 23:27:07 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/server/filters/routine.go

    	"k8s.io/apiserver/pkg/endpoints/request"
    )
    
    type taskKeyType int
    
    const taskKey taskKeyType = iota
    
    type Task struct {
    	Func func()
    }
    
    func WithTask(parent context.Context, t *Task) context.Context {
    	return request.WithValue(parent, taskKey, t)
    }
    
    func TaskFrom(ctx context.Context) *Task {
    	t, _ := ctx.Value(taskKey).(*Task)
    	return t
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 16 10:22:16 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  9. tools/bug-report/pkg/kubectlcmd/kubectlcmd.go

    	// Limit the concurrency of running tasks.
    	r.taskSem <- struct{}{}
    
    	r.runningTasksMu.Lock()
    	defer r.runningTasksMu.Unlock()
    	log.Infof("STARTING %s", task)
    	r.runningTasks.Insert(task)
    }
    
    func (r *Runner) removeRunningTask(task string) {
    	defer func() {
    		// Free up a slot for another running task.
    		<-r.taskSem
    	}()
    
    	r.runningTasksMu.Lock()
    	defer r.runningTasksMu.Unlock()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Nov 16 01:18:03 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  10. native-image-tests/build.gradle.kts

    import org.apache.tools.ant.taskdefs.condition.Os
    
    plugins {
      id("com.palantir.graal")
      kotlin("jvm")
    }
    
    dependencies {
      implementation(libs.junit.jupiter.api)
      implementation(libs.junit.jupiter.engine)
      implementation(libs.junit.platform.console)
      implementation(libs.squareup.okio.fakefilesystem)
    
      implementation(projects.okhttp)
      implementation(projects.okhttpBrotli)
      implementation(projects.okhttpDnsoverhttps)
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Jan 06 05:31:00 UTC 2024
    - 1.6K bytes
    - Viewed (0)
Back to top