Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 51 for startsWith (0.26 sec)

  1. maven-compat/src/main/java/org/apache/maven/profiles/activation/JdkPrefixProfileActivator.java

            Activation activation = profile.getActivation();
    
            String jdk = activation.getJdk();
    
            // null case is covered by canDetermineActivation(), so we can do a straight startsWith() here.
            if (jdk.startsWith("[") || jdk.startsWith("(")) {
                try {
                    return matchJdkVersionRange(jdk);
                } catch (InvalidVersionSpecificationException e) {
                    throw new ProfileActivationException(
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Sep 14 11:48:15 GMT 2023
    - 3K bytes
    - Viewed (0)
  2. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/profile/JdkVersionProfileActivator.java

            if (requiredJdkRange.startsWith("!")) {
                return !currentJavaVersion.startsWith(requiredJdkRange.substring(1));
            } else if (isRange(requiredJdkRange)) {
                return isInRange(currentJavaVersion, getRange(requiredJdkRange));
            } else {
                return currentJavaVersion.startsWith(requiredJdkRange);
            }
        }
    
        @Override
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  3. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/profile/OperatingSystemProfileActivator.java

            String test = expectedVersion;
            boolean reverse = false;
            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);
                }
    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)
  4. maven-core/src/main/java/org/apache/maven/plugin/PluginParameterExpressionEvaluator.java

            return ((type.isPrimitive() || type.getName().startsWith("java.lang."))
                    && value.getClass().getName().startsWith("java.lang."));
        }
    
        private String stripTokens(String expr) {
            if (expr.startsWith("${") && (expr.indexOf('}') == expr.length() - 1)) {
                expr = expr.substring(2, expr.length() - 1);
            }
    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)
  5. maven-compat/src/main/java/org/apache/maven/project/path/DefaultPathTranslator.java

         */
        private String chopLeadingFileSeparator(String path) {
            if (path != null) {
                if (path.startsWith("/") || path.startsWith("\\")) {
                    path = path.substring(1);
                }
            }
            return path;
        }
    
        public void unalignFromBaseDirectory(Model model, File basedir) {
    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)
  6. maven-core/src/test/resources/apiv4-repo/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3-sources.jar

    {@link String} starts with the specified * {@link String}. * <p/> * For example: * <pre>assertThat("myStringOfNote", startsWith("my"))</pre> * * @param prefix * the substring that the returned matcher will expect at the start of any examined string */ public static org.hamcrest.Matcher<java.lang.String> startsWith(java.lang.String prefix) { return org.hamcrest.core.StringStartsWith.startsWith(prefix); } /** * Creates a matcher that matches if the examined {@link String} ends with the specified * {@link...
    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)
  7. apache-maven/src/main/appended-resources/META-INF/LICENSE.vm

    #*    *### fix project urls that are wrong in pom
    #*    *##if ( $project.url.startsWith( "http://www.eclipse.org/sisu/" ) )
    #*      *##set ( $project.url = 'https://www.eclipse.org/sisu/' )
    #*    *##elseif ( $project.url.startsWith( "https://github.com/google/guava/" ) )
    #*      *##set ( $project.url = 'https://github.com/google/guava/' )
    #*    *##elseif ( $project.url.startsWith( "https://github.com/google/guice/" ) )
    Plain Text
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Mon Sep 13 20:57:31 GMT 2021
    - 3.7K bytes
    - Viewed (0)
  8. maven-core/src/main/java/org/apache/maven/plugin/internal/AbstractMavenPluginDescriptorSourcedParametersValidator.java

            if (!strValue.startsWith("${")) {
                return false;
            }
    
            String propertyName = strValue.replace("${", "").replace("}", "");
    
            if (IGNORED_PROPERTY_VALUES.contains(propertyName)) {
                return true;
            }
    
            return IGNORED_PROPERTY_PREFIX.stream().anyMatch(propertyName::startsWith);
        }
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Sep 06 08:39:32 GMT 2023
    - 2.5K bytes
    - Viewed (0)
  9. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/profile/PropertyProfileActivator.java

            if (property == null) {
                return false;
            }
    
            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,
    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)
  10. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelInterpolator.java

                                if ("basedir".equals(expression)) {
                                    return projectDir.toAbsolutePath().toString();
                                } else if (expression.startsWith("basedir.")) {
                                    Path basedir = projectDir.toAbsolutePath();
                                    return new ObjectBasedValueSource(basedir)
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 20K bytes
    - Viewed (0)
Back to top