Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for getResourceAsFile (0.33 sec)

  1. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/fs/FileSystemClientTest.java

                    .singleton("fsClient", FileSystemClient.class);
            fsClient = container.getComponent("fsClient");
        }
    
        public void test_doGet_dir() {
            final File file = ResourceUtil.getResourceAsFile("test");
            String path = file.getAbsolutePath();
            if (!path.startsWith("/")) {
                path = "/" + path.replace('\\', '/');
            }
            try {
                fsClient.doGet("file://" + path);
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sat Sep 06 04:15:37 UTC 2025
    - 8K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/io/ResourceUtil.java

         *            The resource path. Must not be {@literal null} or empty string.
         * @return The file.
         * @see #getResourceAsFile(String, String)
         */
        public static File getResourceAsFile(final String path) {
            assertArgumentNotEmpty("path", path);
    
            return getResourceAsFile(path, null);
        }
    
        /**
         * Returns the resource as a file.
         *
         * @param path
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 14.7K bytes
    - Viewed (0)
  3. fess-crawler-lasta/src/test/java/org/codelibs/fess/crawler/CrawlerTest.java

            } finally {
                server.stop();
            }
        }
    
        public void test_execute_file_maxCount() throws Exception {
            final File targetFile = ResourceUtil.getResourceAsFile("test");
            String path = targetFile.getAbsolutePath();
            if (!path.startsWith("/")) {
                path = "/" + path.replace('\\', '/');
            }
            final String url = "file:" + path;
    
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sat Sep 06 04:15:37 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  4. apache-maven/src/main/appended-resources/META-INF/LICENSE.vm

    #*    *##end
    #*    *###
    #*    *### copy license file to lib/$artifactId.license
    #*    *##set ( $licFile = $directory + '/' + $project.artifact.artifactId + '.license' )
    #*    *##set ( $downloaded = $locator.getResourceAsFile( "licenses/${spdx}.txt", "licenses/${licFile}" ) )
    
    #*    *### add dependency info to output
    
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Sat Jun 07 06:22:47 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  5. fess-crawler/src/test/java/org/codelibs/fess/crawler/CrawlerTest.java

            } finally {
                server.stop();
            }
        }
    
        public void test_execute_file_maxCount() throws Exception {
            final File targetFile = ResourceUtil.getResourceAsFile("test");
            String path = targetFile.getAbsolutePath();
            if (!path.startsWith("/")) {
                path = "/" + path.replace('\\', '/');
            }
            final String url = "file:" + path;
    
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sat Sep 06 04:15:37 UTC 2025
    - 19.1K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/util/ResourceUtil.java

            final Path confPath = getConfPath(names);
            if (Files.exists(confPath)) {
                return confPath;
            }
            return org.codelibs.core.io.ResourceUtil.getResourceAsFile(String.join("/", names)).toPath();
        }
    
        /**
         * Gets the path to compiled classes directory.
         *
         * @param names the path components to append to the classes directory
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  7. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/ftp/FtpClientTest.java

                BaseUser ftpUser = new BaseUser();
                ftpUser.setName(username);
                ftpUser.setPassword(password);
                final File file = ResourceUtil.getResourceAsFile("test");
                String path = file.getAbsolutePath();
                ftpUser.setHomeDirectory(path);
    
                userManager.save(ftpUser);
            }
    
            FtpServer server = factory.createServer();
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sat Sep 06 04:15:37 UTC 2025
    - 18K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/opensearch/client/SearchEngineClient.java

            // alias
            final String aliasConfigDirPath = getResourcePath(indexConfigPath, fessConfig.getFesenType(), "/" + index + "/alias");
            try {
                final File aliasConfigDir = ResourceUtil.getResourceAsFile(aliasConfigDirPath);
                if (aliasConfigDir.isDirectory()) {
                    stream(aliasConfigDir.listFiles((dir, name) -> name.endsWith(".json"))).of(stream -> stream.forEach(f -> {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sun Aug 31 08:19:00 UTC 2025
    - 121.9K bytes
    - Viewed (0)
Back to top