public boolean isInstalled()

in src/main/java/org/apache/sling/testing/clients/osgi/BundlesInstaller.java [49:65]


    public boolean isInstalled(File bundleFile) throws ClientException {
        String bundleSymbolicName = "";
        try {
            bundleSymbolicName = OsgiConsoleClient.getBundleSymbolicName(bundleFile);
            log.debug("Checking if installed: " + bundleSymbolicName);

            osgiConsoleClient.getBundleState(bundleSymbolicName);
            log.debug("Already installed: " + bundleSymbolicName);
            return true;
        } catch (ClientException e) {
            log.debug("Not yet installed: " + bundleSymbolicName);
            return false;
        } catch (IOException e) {
            log.debug("Failed to retrieve bundle symbolic name from file. ", e);
            throw new TestingValidationException("Failed to retrieve bundle symbolic name from file. ", e);
        }
    }