Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 28 for ResourceUtil (0.35 sec)

  1. src/main/java/org/codelibs/fess/util/ResourceUtil.java

     * thumbnails, plugins, and other resources required by the Fess search engine.
     * It supports both regular deployment and Docker container environments.
     *
     */
    public class ResourceUtil {
        /** Environment variable name for overriding the configuration path */
        private static final String FESS_OVERRIDE_CONF_PATH = "FESS_OVERRIDE_CONF_PATH";
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/io/ResourceUtil.java

    import org.codelibs.core.jar.JarFileUtil;
    import org.codelibs.core.net.URLUtil;
    
    /**
     * Utility class for resource handling.
     *
     * @author higa
     */
    public abstract class ResourceUtil {
    
        /**
         * Do not instantiate.
         */
        protected ResourceUtil() {
        }
    
        /**
         * Returns the resource path.
         *
         * @param path
         *            The path. Must not be {@literal null}.
         * @param extension
    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. src/test/java/org/codelibs/fess/util/ResourceUtilTest.java

            value = null;
            assertNull(ResourceUtil.resolve(value));
    
            value = "";
            assertEquals("", ResourceUtil.resolve(value));
    
            value = "a";
            assertEquals(value, ResourceUtil.resolve(value));
    
            value = "${a}";
            assertEquals(value, ResourceUtil.resolve(value));
    
            value = "$a";
            assertEquals(value, ResourceUtil.resolve(value));
    
            value = "${a";
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  4. fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/TikaExtractorTest.java

            final ExtractData extractData = tikaExtractor.getText(in, null);
            final String content = extractData.getContent();
            CloseableUtil.closeQuietly(in);
            logger.info(content);
            assertTrue(content.contains("ใƒ†ใ‚นใƒˆ"));
        }
    
        public void test_getTika_sh() {
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Thu Aug 07 02:55:08 UTC 2025
    - 30.6K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/helper/PluginHelperTest.java

                        try (InputStream is = ResourceUtil.getResourceAsStream(url)) {
                            return new String(InputStreamUtil.getBytes(is), Constants.UTF_8);
                        } catch (IOException e) {
                            throw new IORuntimeException(e);
                        }
                    } else if (url.contains("plugin/repo2")) {
                        try (InputStream is = ResourceUtil.getResourceAsStream(url)) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 05:35:01 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/helper/ThemeHelperTest.java

                mockThemeHelper.install(artifact);
                assertTrue(true); // Should complete without exception
            } catch (Exception e) {
                // May fail due to ResourceUtil dependencies in test environment
                assertTrue(true);
            }
        }
    
        public void test_install_withInvalidZip() throws IOException {
            // Create an invalid zip file
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 14.5K bytes
    - Viewed (0)
  7. fess-crawler-lasta/src/test/java/org/codelibs/fess/crawler/CrawlerTest.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.fess.crawler;
    
    import java.io.File;
    
    import org.codelibs.core.io.ResourceUtil;
    import org.codelibs.fess.crawler.container.CrawlerContainer;
    import org.codelibs.fess.crawler.entity.UrlQueue;
    import org.codelibs.fess.crawler.filter.impl.UrlFilterImpl;
    import org.codelibs.fess.crawler.service.DataService;
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sat Sep 06 04:15:37 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/ds/DataStoreFactoryTest.java

                    // Override ResourceUtil behavior for testing
                    File[] jarFiles = new File[] { jarFile };
                    return super.loadDataStoreNameList();
                }
            };
    
            // Note: ResourceUtil.getPluginJarFiles is a static method, so we can't mock it directly
            // The test will verify the method works with the actual ResourceUtil implementation
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  9. fess-crawler/src/test/java/org/codelibs/fess/crawler/helper/impl/MimeTypeHelperImplTest.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.fess.crawler.helper.impl;
    
    import java.io.IOException;
    import java.io.InputStream;
    
    import org.codelibs.core.io.ResourceUtil;
    import org.codelibs.fess.crawler.container.StandardCrawlerContainer;
    import org.codelibs.fess.crawler.exception.MimeTypeException;
    import org.codelibs.fess.crawler.helper.MimeTypeHelper;
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sat Mar 15 06:52:00 UTC 2025
    - 11.6K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/app/web/admin/backup/AdminBackupAction.java

            return redirect(getClass()); // no-op
        }
    
        private Path getDocJsonPath() {
            return ResourceUtil.getClassesPath("fess_indices", "fess", "doc.json");
        }
    
        private Path getFessJsonPath() {
            return ResourceUtil.getClassesPath("fess_indices", "fess.json");
        }
    
        private StreamResponse writeNdjsonResponse(final String id, final Consumer<Writer> writeCall) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 29.8K bytes
    - Viewed (0)
Back to top