Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 446 for ends_with (0.25 sec)

  1. platforms/ide/ide/src/integTest/groovy/org/gradle/plugins/ide/idea/IdeaLifecycleIntegrationTest.groovy

        @Override
        protected String getConfiguredModule() {
            return "idea.module"
        }
    
        @Override
        protected String projectName(String path) {
            File iml = file(path).listFiles().find { it.name.endsWith("iml") }
            assert iml != null
            return iml.name - ".iml"
        }
    
        @Override
        String[] getGenerationTaskNames(String projectPath) {
            def taskNames = []
            if (projectPath == ":") {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  2. subprojects/core/src/integTest/groovy/org/gradle/api/TaskContainerIntegrationTest.groovy

        }
    
        def "chained lookup of tasks.withType.matching"() {
            buildFile """
                tasks.withType(Copy).matching({ it.name.endsWith("foo") }).all { task ->
                    assert task.path in [':foo']
                }
    
                tasks.register("foo", Copy)
                tasks.register("bar", Copy)
                tasks.register("foobar", Delete)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 07:46:00 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  3. build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/tasks/PackageListGenerator.kt

            fun collectPackages(files: Iterable<Path>): Trie {
                val builder = Trie.Builder()
                for (file in files) {
                    if (Files.exists(file)) {
                        if (file.fileName.toString().endsWith(".jar")) {
                            processJarFile(file, builder)
                        } else {
                            processDirectory(file, builder)
                        }
                    }
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Sep 30 16:17:28 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  4. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/source/ClassMetaDataUtil.java

            final Set<String> excludedPrefixes = new HashSet<>();
            final Set<String> excludedPackages = new HashSet<>();
            for (String excludePattern : excludedPackagePatterns) {
                if (excludePattern.endsWith(".**")) {
                    String baseName = excludePattern.substring(0, excludePattern.length() - 3);
                    excludedPrefixes.add(baseName + '.');
                    excludedPackages.add(baseName);
                } else {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 2.4K bytes
    - Viewed (0)
  5. testing/internal-performance-testing/src/main/groovy/org/gradle/performance/mutator/AbstractGroovySourceFileMutator.groovy

    abstract class AbstractGroovySourceFileMutator extends AbstractFileChangeMutator {
        AbstractGroovySourceFileMutator(File sourceFile) {
            super(sourceFile)
            if (!sourceFile.getName().endsWith(".groovy")) {
                throw new IllegalArgumentException("Can only modify Groovy source files")
            }
        }
    
        @Override
        protected void applyChangeTo(BuildContext context, StringBuilder text) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  6. platforms/documentation/docs/src/snippets/maven-publish/javaProject/kotlin/build.gradle.kts

                url = uri(if (project.hasProperty("release")) releasesRepoUrl else snapshotsRepoUrl)
    // end::repo-url-from-project-property[]
    // tag::repo-url-from-variable[]
                url = uri(if (version.toString().endsWith("SNAPSHOT")) snapshotsRepoUrl else releasesRepoUrl)
    // tag::repo-url-from-project-property[]
            }
        }
    }
    // end::repo-url-from-project-property[]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  7. platforms/documentation/docs/src/snippets/signing/conditional/kotlin/build.gradle.kts

    plugins {
        java
        `maven-publish`
        signing
    }
    
    group = "gradle"
    
    // tag::conditional-signing[]
    version = "1.0-SNAPSHOT"
    extra["isReleaseVersion"] = !version.toString().endsWith("SNAPSHOT")
    
    // end::conditional-signing[]
    publishing {
        publications {
            create<MavenPublication>("main") {
                from(components["java"])
            }
        }
        repositories {
            maven {
                name = "localRepo"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 930 bytes
    - Viewed (0)
  8. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/FileUtils.java

         * @param file the file
         * @param extension candidate extension including leading dot
         * @return true if {@code file.getPath().endsWith(extension)}
         */
        public static boolean hasExtension(File file, String extension) {
            return file.getPath().endsWith(extension);
        }
    
        /**
         * Checks if the given file path ends with the given extension (ignoring case).
         * @param fileName the file name
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 06:47:40 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  9. platforms/core-configuration/file-collections/src/main/java/org/gradle/api/internal/file/collections/SingleIncludePatternFileTree.java

        }
    
        public SingleIncludePatternFileTree(File baseDir, String includePattern, Spec<FileTreeElement> excludeSpec) {
            this.baseDir = baseDir;
            if (includePattern.endsWith("/") || includePattern.endsWith("\\")) {
                includePattern += "**";
            }
            this.includePattern = includePattern;
            this.patternSegments = Arrays.asList(includePattern.split("[/\\\\]"));
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  10. build-logic/kotlin-dsl-shared-runtime/src/main/kotlin/org/gradle/kotlin/dsl/internal/sharedruntime/support/ClassBytesRepository.kt

    private
    val File.isClassPathArchive
        get() = extension.run { equals("jar", ignoreCase = true) || equals("zip", ignoreCase = true) }
    
    
    private
    val String.isClassFilePath
        get() = endsWith(classFileExtension)
            && !endsWith("package-info$classFileExtension")
            && !matches(compilerGeneratedClassFilePath)
    
    
    private
    const val classFileExtension = ".class"
    
    
    private
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 01 17:45:10 UTC 2024
    - 6.2K bytes
    - Viewed (0)
Back to top