Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 47 for trim (0.13 sec)

  1. compat/maven-compat/src/test/java/org/apache/maven/artifact/deployer/ArtifactDeployerTest.java

                File file = new File(artifactBasedir, "artifact-1.0.jar");
                assertEquals("dummy", new String(Files.readAllBytes(file.toPath()), StandardCharsets.UTF_8).trim());
    
                artifactDeployer.deploy(file, artifact, remoteRepository(), localRepository());
    
                ArtifactRepository remoteRepository = remoteRepository();
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  2. compat/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()) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 19K bytes
    - Viewed (0)
  3. compat/maven-embedder/src/main/java/org/apache/maven/cli/props/MavenPropertiesLoader.java

                }
            }
            configProps.remove(INCLUDES_PROPERTY);
        }
    
        private static void trimValues(MavenProperties configProps) {
            configProps.replaceAll((k, v) -> v.trim());
        }
    
        private static String nextLocation(StringTokenizer st) {
            boolean optional = false;
            String retVal = null;
    
            if (st.countTokens() > 0) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  4. fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/HtmlTransformer.java

            }
            return buf.toString();
        }
    
        protected String normalizeUrl(final String u) {
            if (u == null) {
                return null;
            }
    
            // trim
            String url = u.trim();
    
            int idx = url.indexOf('#');
            if (idx >= 0) {
                url = url.substring(0, idx);
            }
    
            url = url.replace("/./", "/");
    
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Oct 24 12:16:00 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/crawler/transformer/FessXpathTransformer.java

            }
            return Arrays.stream(ruleString.split(",")).map(s -> s.split(":")).filter(v -> v.length == 2)
                    .map(v -> new Pair<String, String>(v[0].trim(), v[1].trim()));
        }
    
        @Override
        protected List<RequestData> convertChildUrlList(final List<RequestData> urlList) {
            if (urlList != null) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Oct 24 13:01:38 UTC 2024
    - 42.9K bytes
    - Viewed (0)
  6. compat/maven-model-builder/src/test/java/org/apache/maven/model/building/GraphTest.java

            String k = null;
            for (String line : Files.readAllLines(Paths.get("src/test/resources/dag.txt"))) {
                if (line.startsWith("\t")) {
                    data.add(new String[] {k, line.trim()});
                } else {
                    k = line;
                }
            }
            Collections.shuffle(data);
    
            long t0 = System.nanoTime();
            Graph g = new Graph();
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  7. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/DefaultVersionResolver.java

                infos.put(dstKey, srcInfo);
            }
        }
    
        private String getKey(String classifier, String extension) {
            return (classifier == null ? "" : classifier.trim()) + ':' + (extension == null ? "" : extension.trim());
        }
    
        private ArtifactRepository getRepository(
                RepositorySystemSession session, List<RemoteRepository> repositories, Class<?> repoClass, String repoId) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  8. impl/maven-core/src/main/java/org/apache/maven/exception/DefaultExceptionHandler.java

                    break;
                }
            }
    
            return fullMessage.trim();
        }
    
        private String join(String message1, String message2) {
            String message = "";
    
            if (message1 != null && !message1.isEmpty()) {
                message = message1.trim();
            }
    
            if (message2 != null && !message2.isEmpty()) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  9. fess-crawler-opensearch/src/main/java/org/codelibs/fess/crawler/client/FesenClient.java

        public FesenClient() {
            address = System.getProperty(HTTP_ADDRESS, "localhost:9200").trim();
            final String targets = System.getProperty(TARGET_INDICES);
            if (StringUtil.isNotBlank(targets)) {
                targetIndices = Arrays.stream(targets.split(",")).map(String::trim).toArray(n -> new String[n]);
            }
        }
    
        public void setAddress(final String address) {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Nov 07 04:44:10 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  10. impl/maven-core/src/main/java/org/apache/maven/artifact/repository/MavenArtifactRepository.java

         */
        private static String protocol(final String url) {
            final int pos = url.indexOf(':');
    
            if (pos == -1) {
                return "";
            }
            return url.substring(0, pos).trim();
        }
    
        /**
         * Derive the path portion of the given URL.
         *
         * @param url the repository URL
         * @return the basedir of the repository
         * TODO need to URL decode for spaces?
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 11K bytes
    - Viewed (0)
Back to top