Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for getPluginJarFiles (0.07 sec)

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

         * @return an array of File objects representing matching plugin JAR files, or empty array if none found
         */
        public static File[] getPluginJarFiles(final String namePrefix) {
            return getPluginJarFiles((file, name) -> name.startsWith(namePrefix));
        }
    
        /**
         * Gets plugin JAR files from the plugin directory that match the specified filter.
         *
    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/test/java/org/codelibs/fess/util/ResourceUtilTest.java

            assertNotNull(jarFiles);
            assertEquals(0, jarFiles.length);
        }
    
        public void test_getPluginJarFiles_withPrefix() {
            File[] pluginFiles = ResourceUtil.getPluginJarFiles("plugin");
            assertNotNull(pluginFiles);
            // Should return empty array when plugin directory doesn't exist
            assertEquals(0, pluginFiles.length);
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/helper/PluginHelper.java

         */
        public Artifact[] getInstalledArtifacts(final ArtifactType artifactType) {
            if (artifactType == ArtifactType.UNKNOWN) {
                final File[] jarFiles = ResourceUtil.getPluginJarFiles((d, n) -> {
                    for (final ArtifactType type : ArtifactType.values()) {
                        if (n.startsWith(type.getId())) {
                            return false;
                        }
                    }
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 24.9K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/ds/DataStoreFactoryTest.java

                    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
    
            // Test with reflection to access protected method
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/ds/DataStoreFactory.java

         */
        protected List<String> loadDataStoreNameList() {
            final Set<String> nameSet = new HashSet<>();
            final File[] jarFiles = ResourceUtil.getPluginJarFiles(PluginHelper.ArtifactType.DATA_STORE.getId());
            for (final File jarFile : jarFiles) {
                try (FileSystem fs = FileSystems.newFileSystem(jarFile.toPath(), ClassLoader.getSystemClassLoader())) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 8.4K bytes
    - Viewed (0)
Back to top