Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 59 for substring (0.15 sec)

  1. maven-core/src/main/java/org/apache/maven/plugin/PluginParameterExpressionEvaluator.java

                    if (lastIndex >= 0) {
                        String retVal = expr.substring(0, index);
    
                        if ((index > 0) && (expr.charAt(index - 1) == '$')) {
                            retVal += expr.substring(index + 1, lastIndex + 1);
                        } else {
                            Object subResult = evaluate(expr.substring(index, lastIndex + 1));
    
                            if (subResult != null) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Tue Oct 17 17:55:08 GMT 2023
    - 16.7K bytes
    - Viewed (0)
  2. maven-core/src/main/java/org/apache/maven/artifact/repository/MavenArtifactRepository.java

                    if (pos + 2 < decoded.length()) {
                        String hexStr = decoded.substring(pos + 1, pos + 3);
                        char ch = (char) Integer.parseInt(hexStr, 16);
                        decoded = decoded.substring(0, pos) + ch + decoded.substring(pos + 3);
                    }
                }
            }
            return decoded;
        }
    
        public int hashCode() {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Mon Dec 26 15:12:32 GMT 2022
    - 11K bytes
    - Viewed (0)
  3. maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultUrlNormalizer.java

                        result = result.substring(3);
                        continue;
                    }
                    int parent = idx - 1;
                    while (parent >= 0 && result.charAt(parent) == '/') {
                        parent--;
                    }
                    parent = result.lastIndexOf('/', parent);
                    if (parent < 0) {
                        result = result.substring(idx + 4);
                    } else {
    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)
  4. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/profile/OperatingSystemProfileActivator.java

            final boolean result;
            if (test.startsWith(REGEX_PREFIX)) {
                result = actualVersion.matches(test.substring(REGEX_PREFIX.length()));
            } else {
                if (test.startsWith("!")) {
                    reverse = true;
                    test = test.substring(1);
                }
                result = actualVersion.equals(test);
            }
    
            return reverse != result;
        }
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 4.9K bytes
    - Viewed (0)
  5. maven-artifact/src/main/java/org/apache/maven/artifact/versioning/VersionRange.java

                }
                restrictions.add(restriction);
                upperBound = restriction.getUpperBound();
    
                process = process.substring(index + 1).trim();
    
                if (process.startsWith(",")) {
                    process = process.substring(1).trim();
                }
            }
    
            if (!process.isEmpty()) {
                if (!restrictions.isEmpty()) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Feb 28 07:40:37 GMT 2024
    - 18.9K bytes
    - Viewed (0)
  6. maven-compat/src/main/java/org/apache/maven/project/path/DefaultPathTranslator.java

                if (basedirExpr != null) {
                    if (s.length() > basedirExpr.length()) {
                        // Take out basedir expression and the leading slash
                        s = chopLeadingFileSeparator(s.substring(basedirExpr.length()));
                    } else {
                        s = ".";
                    }
                }
            }
    
            return s;
        }
    
        /**
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Feb 28 07:40:37 GMT 2024
    - 7.2K bytes
    - Viewed (0)
  7. maven-core/src/test/resources/apiv4-repo/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3-sources.jar

    {@link String} anywhere. * <p/> * For example: * <pre>assertThat("myStringOfNote", containsString("ring"))</pre> * * @param substring * the substring that the returned matcher will expect to find within any examined string */ public static org.hamcrest.Matcher<java.lang.String> containsString(java.lang.String substring) { return org.hamcrest.core.StringContains.containsString(substring); } /** * Creates a matcher that matches if the examined {@link String} starts with the specified * {@link String}. *...
    Archive
    - Registered: Sun Apr 14 03:35:08 GMT 2024
    - Last Modified: Sun Oct 02 08:41:25 GMT 2022
    - 31.9K bytes
    - Viewed (0)
  8. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/profile/PropertyProfileActivator.java

            }
    
            String name = property.getName();
            boolean reverseName = false;
    
            if (name != null && name.startsWith("!")) {
                reverseName = true;
                name = name.substring(1);
            }
    
            if (name == null || name.isEmpty()) {
                problems.add(
                        BuilderProblem.Severity.ERROR,
                        ModelProblem.Version.BASE,
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  9. maven-api-impl/src/test/java/org/apache/maven/internal/impl/DefaultSettingsValidatorTest.java

        }
    
        @AfterEach
        void tearDown() throws Exception {
            validator = null;
        }
    
        private void assertContains(String msg, String substring) {
            assertTrue(msg.contains(substring), "\"" + substring + "\" was not found in: " + msg);
        }
    
        @Test
        void testValidate() {
            Profile prof = Profile.newBuilder().id("xxx").build();
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Mon Mar 25 10:50:01 GMT 2024
    - 8.6K bytes
    - Viewed (0)
  10. maven-compat/src/main/java/org/apache/maven/usability/plugin/ExpressionDocumenter.java

            String myClasspathEntry = myResource.getPath();
    
            myClasspathEntry = myClasspathEntry.substring(0, myClasspathEntry.length() - (myResourcePath.length() + 2));
    
            if (myClasspathEntry.startsWith("file:")) {
                myClasspathEntry = myClasspathEntry.substring("file:".length());
            }
    
            URL docResource;
            try {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Sep 06 11:28:54 GMT 2023
    - 5.2K bytes
    - Viewed (0)
Back to top