Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for getPathSegments (0.19 sec)

  1. platforms/jvm/normalization-java/src/main/java/org/gradle/api/internal/changedetection/state/DefaultZipEntryContext.java

            ZipEntryRelativePath(ZipEntry zipEntry) {
                this.zipEntry = zipEntry;
            }
    
            @Override
            public String[] get() {
                return FilePathUtil.getPathSegments(zipEntry.getName());
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 15:09:49 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  2. platforms/core-runtime/files/src/main/java/org/gradle/internal/file/FilePathUtil.java

        private static final String FILE_PATH_SEPARATORS = File.separatorChar != '/' ? ("/" + File.separator) : File.separator;
    
        private FilePathUtil() {
        }
    
        public static String[] getPathSegments(String path) {
            StringTokenizer tokenizer = new StringTokenizer(path, FILE_PATH_SEPARATORS);
            List<String> segments = new ArrayList<String>();
            while (tokenizer.hasMoreElements()) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:55:52 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  3. subprojects/core-api/src/main/java/org/gradle/api/file/RelativePath.java

            return parse(isFile, null, path);
        }
    
        public static RelativePath parse(boolean isFile, @Nullable RelativePath parent, String path) {
            String[] names = FilePathUtil.getPathSegments(path);
            return new RelativePath(isFile, parent, names);
        }
    
        /**
         * <p>Returns a copy of this path, with the last name replaced with the given name.</p>
         *
         * @param name The name.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Oct 30 05:20:08 UTC 2023
    - 9K bytes
    - Viewed (0)
Back to top