Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for taskdef (0.31 sec)

  1. platforms/documentation/docs/src/snippets/ant/useExternalAntTaskWithConfig/groovy/build.gradle

    configurations {
        pmd
    }
    
    dependencies {
        pmd group: 'pmd', name: 'pmd', version: '4.2.5'
    }
    // end::define-classpath[]
    
    // tag::use-classpath[]
    tasks.register('check') {
        doLast {
            ant.taskdef(name: 'pmd',
                        classname: 'net.sourceforge.pmd.ant.PMDTask',
                        classpath: configurations.pmd.asPath)
            ant.pmd(shortFilenames: 'true',
                    failonruleviolation: 'true',
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 697 bytes
    - Viewed (0)
  2. platforms/documentation/docs/src/snippets/ant/useExternalAntTask/kotlin/build.gradle.kts

        from(checkstyle)
        into("libs")
    }
    
    // tag::configure-task[]
    tasks.register("check") {
        val checkstyleConfig = file("checkstyle.xml")
        doLast {
            ant.withGroovyBuilder {
                "taskdef"("resource" to "com/puppycrawl/tools/checkstyle/ant/checkstyle-ant-task.properties") {
                    "classpath" {
                        "fileset"("dir" to "libs", "includes" to "*.jar")
                    }
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 837 bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/snippets/dependencyManagement/definingUsingConfigurations-custom/groovy/build.gradle

        jasper 'org.apache.tomcat.embed:tomcat-embed-jasper:9.0.2'
    }
    
    tasks.register('preCompileJsps') {
        def jasperClasspath = configurations.jasper.asPath
        def projectLayout = layout
        doLast {
            ant.taskdef(classname: 'org.apache.jasper.JspC',
                        name: 'jasper',
                        classpath: jasperClasspath)
            ant.jasper(validateXml: false,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 719 bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/snippets/ant/useExternalAntTaskWithConfig/kotlin/build.gradle.kts

    dependencies {
        pmd(group = "pmd", name = "pmd", version = "4.2.5")
    }
    // end::define-classpath[]
    
    // tag::use-classpath[]
    tasks.register("check") {
        doLast {
            ant.withGroovyBuilder {
                "taskdef"("name" to "pmd",
                          "classname" to "net.sourceforge.pmd.ant.PMDTask",
                          "classpath" to pmd.asPath)
                "pmd"("shortFilenames" to true,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 800 bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/snippets/ant/useExternalAntTask/groovy/build.gradle

        from configurations.checkstyle
        into 'libs'
    }
    
    // tag::configure-task[]
    tasks.register('check') {
        def checkstyleConfig = file('checkstyle.xml')
        doLast {
            ant.taskdef(resource: 'com/puppycrawl/tools/checkstyle/ant/checkstyle-ant-task.properties') {
                classpath {
                    fileset(dir: 'libs', includes: '*.jar')
                }
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 745 bytes
    - Viewed (0)
  6. platforms/documentation/docs/src/snippets/dependencyManagement/definingUsingConfigurations-custom/kotlin/build.gradle.kts

    }
    
    tasks.register("preCompileJsps") {
        val jasperClasspath = jasper.asPath
        val projectLayout = layout
        doLast {
            ant.withGroovyBuilder {
                "taskdef"("classname" to "org.apache.jasper.JspC",
                          "name" to "jasper",
                          "classpath" to jasperClasspath)
                "jasper"("validateXml" to false,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 791 bytes
    - Viewed (0)
  7. platforms/jvm/jacoco/src/main/java/org/gradle/internal/jacoco/AbstractAntJacocoReport.java

                @SuppressWarnings("UnusedDeclaration")
                public Object doCall(Object it) {
                    GroovyObjectSupport antBuilder = (GroovyObjectSupport) it;
                    antBuilder.invokeMethod("taskdef", ImmutableMap.of(
                            "name", "jacocoReport",
                            "classname", "org.jacoco.ant.ReportTask"
                    ));
                    action.execute(antBuilder);
                    return null;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 25 23:19:29 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  8. platforms/jvm/language-groovy/src/main/java/org/gradle/api/internal/tasks/AntGroovydoc.java

                @SuppressWarnings("UnusedDeclaration")
                public Object doCall(Object it) {
                    final GroovyObjectSupport antBuilder = (GroovyObjectSupport) it;
    
                    antBuilder.invokeMethod("taskdef", ImmutableMap.of(
                        "name", "groovy",
                        "classname", "org.codehaus.groovy.ant.Groovy"
                    ));
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  9. platforms/jvm/code-quality/src/main/groovy/org/gradle/api/plugins/quality/internal/CheckstyleInvoker.groovy

                }
            }
    
            try {
                ant.taskdef(name: 'checkstyle', classname: 'com.puppycrawl.tools.checkstyle.CheckStyleTask')
            } catch (RuntimeException ignore) {
                ant.taskdef(name: 'checkstyle', classname: 'com.puppycrawl.tools.checkstyle.ant.CheckstyleAntTask')
            }
    
            try {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 16 22:34:07 UTC 2023
    - 9.2K bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/docs/userguide/authoring-builds/other/ant.adoc

    include::sample[dir="snippets/ant/useAntType/groovy",files="build.gradle"]
    ====
    
    [[sec:using_custom_ant_tasks]]
    === Using custom Ant tasks
    
    To make custom tasks available in your build, use the `taskdef` (usually easier) or `typedef` Ant task, just as you would in a `build.xml` file.
    You can then refer to the custom Ant task as you would a built-in Ant task:
    
    ====
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 10 15:23:52 UTC 2024
    - 13.1K bytes
    - Viewed (0)
Back to top