- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for deleteInstalledArtifact (0.21 seconds)
-
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)