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();
}
Aggregations