예제 #1
0
  @BeforeClass
  public static void beforeAll() throws Exception {
    RepositoryConfiguration config =
        RepositoryConfiguration.read("config/repo-config-git-federation.json");
    startRepository(config);

    // registerNodeTypes("cnd/flex.cnd");

    Session session = getSession();
    Node testRoot = session.getRootNode().addNode("repos");
    session.save();

    FederationManager fedMgr = session.getWorkspace().getFederationManager();
    fedMgr.createProjection(testRoot.getPath(), "local-git-repo", "/", "git-modeshape");
  }