Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for deleteInstalledArtifact (0.07 sec)

  1. src/main/java/org/codelibs/fess/app/web/admin/plugin/AdminPluginAction.java

                for (final Artifact a : artifacts) {
                    if (a.getName().equals(artifact.getName()) && !a.getVersion().equals(artifact.getVersion())) {
                        try {
                            pluginHelper.deleteInstalledArtifact(a);
                        } catch (final Exception e) {
                            logger.warn("Failed to delete {}", a.getFileName(), e);
                        }
                    }
                }
            }).start();
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/helper/PluginHelperTest.java

            PluginHelper testHelper = new PluginHelper();
            Artifact artifact = new Artifact("non-existent", "1.0.0");
    
            try {
                testHelper.deleteInstalledArtifact(artifact);
                fail("Expected PluginException");
            } catch (PluginException e) {
                assertTrue(e.getMessage().contains("does not exist"));
            }
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 05:35:01 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/helper/PluginHelper.java

        /**
         * Deletes an installed artifact.
         *
         * @param artifact the artifact to delete
         * @throws PluginException if the artifact does not exist or deletion fails
         */
        public void deleteInstalledArtifact(final Artifact artifact) {
            final String fileName = artifact.getFileName();
            final Path jarPath = Paths.get(ResourceUtil.getPluginPath().toString(), fileName);
            if (!Files.exists(jarPath)) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 24.9K bytes
    - Viewed (0)
Back to top