Search in sources :

Example 1 with VisibleForTesting

use of io.fabric8.api.visibility.VisibleForTesting in project fabric8 by jboss-fuse.

the class FabricGitServiceImpl method activate.

@Activate
@VisibleForTesting
public void activate() throws IOException {
    RuntimeProperties sysprops = runtimeProperties.get();
    localRepo = sysprops.getDataPath().resolve(DEFAULT_GIT_PATH).toFile();
    if (!localRepo.exists() && !localRepo.mkdirs()) {
        throw new IOException("Failed to create local repository at:" + localRepo.getAbsolutePath());
    }
    git = openOrInit(localRepo);
    activateComponent();
}
Also used : IOException(java.io.IOException) RuntimeProperties(io.fabric8.api.RuntimeProperties) VisibleForTesting(io.fabric8.api.visibility.VisibleForTesting) Activate(org.apache.felix.scr.annotations.Activate)

Aggregations

RuntimeProperties (io.fabric8.api.RuntimeProperties)1 VisibleForTesting (io.fabric8.api.visibility.VisibleForTesting)1 IOException (java.io.IOException)1 Activate (org.apache.felix.scr.annotations.Activate)1