- Sort Score
- Num 10 results
- Language All
Results 1 - 3 of 3 for deleteInstalledArtifact (0.12 seconds)
-
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();
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Aug 07 03:06:29 GMT 2025 - 11.9K bytes - Click Count (0) -
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)) {Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Mar 04 15:19:41 GMT 2026 - 25.1K bytes - Click Count (0) -
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")); } } @Test
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 22.6K bytes - Click Count (0)