Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 60 for indexOf (0.17 sec)

  1. maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycles.java

            List<String> lifecycleIds = Arrays.asList(STANDARD_LIFECYCLES);
    
            Comparator<String> comparator = (l, r) -> {
                int lx = lifecycleIds.indexOf(l);
                int rx = lifecycleIds.indexOf(r);
    
                if (lx < 0 || rx < 0) {
                    return rx - lx;
                } else {
                    return lx - rx;
                }
            };
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 6K bytes
    - Viewed (0)
  2. maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultUrlNormalizer.java

        @Override
        public String normalize(String url) {
            String result = url;
    
            if (result != null) {
                while (true) {
                    int idx = result.indexOf("/../");
                    if (idx < 0) {
                        break;
                    } else if (idx == 0) {
                        result = result.substring(3);
                        continue;
                    }
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 1.9K bytes
    - Viewed (0)
  3. maven-core/src/main/java/org/apache/maven/lifecycle/internal/DefaultLifecycleTaskSegmentCalculator.java

                        return true;
                    }
                }
            }
            return false;
        }
    
        private boolean isGoalSpecification(String task) {
            return task.indexOf(':') >= 0;
        }
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Jan 10 12:55:54 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  4. maven-core/src/test/java/org/apache/maven/project/LegacyLocalRepositoryManager.java

            return path.toString();
        }
    
        private String insertRepositoryKey(String filename, String repositoryKey) {
            String result;
            int idx = filename.indexOf('.');
            if (idx < 0) {
                result = filename + '-' + repositoryKey;
            } else {
                result = filename.substring(0, idx) + '-' + repositoryKey + filename.substring(idx);
            }
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Wed Feb 28 07:40:37 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  5. maven-compat/src/test/java/org/apache/maven/project/LegacyLocalRepositoryManager.java

            return path.toString();
        }
    
        private String insertRepositoryKey(String filename, String repositoryKey) {
            String result;
            int idx = filename.indexOf('.');
            if (idx < 0) {
                result = filename + '-' + repositoryKey;
            } else {
                result = filename.substring(0, idx) + '-' + repositoryKey + filename.substring(idx);
            }
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Apr 25 05:46:50 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  6. maven-api-impl/src/main/java/org/apache/maven/internal/impl/StaxLocation.java

        }
    
        public static String getMessage(Exception e) {
            String message = e.getMessage();
            if (e instanceof XMLStreamException xe && xe.getLocation() != null) {
                int idx = message.indexOf("\nMessage: ");
                if (idx >= 0) {
                    return message.substring(idx + "\nMessage: ".length());
                }
            }
            return message;
        }
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Mon Mar 25 10:50:01 GMT 2024
    - 2.3K bytes
    - Viewed (0)
  7. maven-artifact/src/main/java/org/apache/maven/artifact/versioning/DefaultArtifactVersion.java

            comparable = new ComparableVersion(version);
    
            int index = version.indexOf('-');
    
            String part1;
            String part2 = null;
    
            if (index < 0) {
                part1 = version;
            } else {
                part1 = version.substring(0, index);
                part2 = version.substring(index + 1);
            }
    
            if (part2 != null) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Nov 17 15:50:51 GMT 2023
    - 6K bytes
    - Viewed (0)
  8. maven-compat/src/main/java/org/apache/maven/repository/metadata/ArtifactMetadata.java

        /**
         *
         */
        public ArtifactMetadata(String name) {
            if (name == null) {
                return;
            }
            int ind1 = name.indexOf(':');
            int ind2 = name.lastIndexOf(':');
    
            if (ind1 == -1 || ind2 == -1) {
                return;
            }
    
            this.groupId = name.substring(0, ind1);
            if (ind1 == ind2) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Sep 06 11:28:54 GMT 2023
    - 8.6K bytes
    - Viewed (0)
  9. maven-core/src/main/java/org/apache/maven/graph/DefaultProjectDependencyGraph.java

            List<MavenProject> sorted = this.sorter.getSortedProjects();
            for (int index = 0; index < sorted.size(); index++) {
                MavenProject project = sorted.get(index);
                String id = ProjectSorter.getId(project);
                this.projects.put(id, project);
                this.order.put(project, index);
            }
        }
    
        /**
         * @since 3.5.0
         */
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Sep 22 06:02:04 GMT 2023
    - 5.8K bytes
    - Viewed (0)
  10. api/maven-api-core/src/main/java/org/apache/maven/api/services/BuilderProblem.java

        String getSource();
    
        /**
         * Gets the one-based index of the line containing the problem. The line number should refer to some text file that
         * is given by {@link #getSource()}.
         *
         * @return the one-based index of the line containing the problem or a non-positive value if unknown
         */
        int getLineNumber();
    
        /**
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Mar 23 05:29:39 GMT 2023
    - 3.6K bytes
    - Viewed (0)
Back to top