@Test public void testCopy() throws IOException { KylinConfig dstConfig = KylinConfig.createInstanceFromUri(dstPath); ResourceStore srcStore = ResourceStore.getStore(KylinConfig.getInstanceFromEnv()); ResourceStore dstStore = ResourceStore.getStore(dstConfig); Assert.assertNotEquals(srcStore.listResources("/"), dstStore.listResources("/")); new ResourceTool().copy(KylinConfig.getInstanceFromEnv(), dstConfig, "/"); NavigableSet<String> dstFiles = dstStore.listResourcesRecursively("/"); NavigableSet<String> srcFiles = srcStore.listResourcesRecursively("/"); Assert.assertTrue(srcFiles.containsAll(EXEC_FILES)); Assert.assertFalse(dstFiles.containsAll(EXEC_FILES)); srcFiles.removeAll(EXEC_FILES); Assert.assertEquals(srcFiles, dstFiles); }
public void copy(KylinConfig srcConfig, KylinConfig dstConfig, String path) throws IOException { copy(srcConfig, dstConfig, path, false); }
ResourceTool { public void copy(KylinConfig srcConfig, KylinConfig dstConfig, String path) throws IOException { copy(srcConfig, dstConfig, path, false); } }
ResourceTool { public void copy(KylinConfig srcConfig, KylinConfig dstConfig, String path) throws IOException { copy(srcConfig, dstConfig, path, false); }  }
ResourceTool { public void copy(KylinConfig srcConfig, KylinConfig dstConfig, String path) throws IOException { copy(srcConfig, dstConfig, path, false); }  static void main(String[] args); String cat(KylinConfig config, String path); NavigableSet<String> list(KylinConfig config, String path); void copy(KylinConfig srcConfig, KylinConfig dstConfig, String path); void copy(KylinConfig srcConfig, KylinConfig dstConfig, String path, boolean copyImmutableResource); void copy(KylinConfig srcConfig, KylinConfig dstConfig, List<String> paths); void copy(KylinConfig srcConfig, KylinConfig dstConfig, List<String> paths,
                     boolean copyImmutableResource); void copy(KylinConfig srcConfig, KylinConfig dstConfig); void copy(KylinConfig srcConfig, KylinConfig dstConfig, boolean copyImmutableResource); void reset(KylinConfig config); void resetR(ResourceStore store, String path); void remove(KylinConfig config, String path); }
ResourceTool { public void copy(KylinConfig srcConfig, KylinConfig dstConfig, String path) throws IOException { copy(srcConfig, dstConfig, path, false); }  static void main(String[] args); String cat(KylinConfig config, String path); NavigableSet<String> list(KylinConfig config, String path); void copy(KylinConfig srcConfig, KylinConfig dstConfig, String path); void copy(KylinConfig srcConfig, KylinConfig dstConfig, String path, boolean copyImmutableResource); void copy(KylinConfig srcConfig, KylinConfig dstConfig, List<String> paths); void copy(KylinConfig srcConfig, KylinConfig dstConfig, List<String> paths,
                     boolean copyImmutableResource); void copy(KylinConfig srcConfig, KylinConfig dstConfig); void copy(KylinConfig srcConfig, KylinConfig dstConfig, boolean copyImmutableResource); void reset(KylinConfig config); void resetR(ResourceStore store, String path); void remove(KylinConfig config, String path);  }