@Test public void testSimpleResourceWithDir() throws Exception { File f = createDirStructure("src/test1.txt", "src/test2.txt", "src/woo/test3.txt"); Resource res = new Resource(new File(f, "src")); res.walk(walker, new File("/dest")); assertEquals( Arrays.asList("/dest/src/test1.txt", "/dest/src/test2.txt", "/dest/src/woo/test3.txt"), walker.paths); }
public void walk(Walker walker) throws IOException { walk(walker, new File(".")); }
Resource { public void walk(Walker walker) throws IOException { walk(walker, new File(".")); } }
Resource { public void walk(Walker walker) throws IOException { walk(walker, new File(".")); } protected  Resource();  Resource(File path);  Resource(File directory, String targetPath); }
Resource { public void walk(Walker walker) throws IOException { walk(walker, new File(".")); } protected  Resource();  Resource(File path);  Resource(File directory, String targetPath); File getPath(); String getTargetPath(); File getDirectory(); List<String> getIncludes(); Resource include(String... patterns); List<String> getExcludes(); Resource exclude(String... patterns); boolean isFlatten(); Resource flatten(boolean b); boolean isIgnoreDefaultExcludes(); Resource ignoreDefaultExcludes(boolean b); boolean isSkipPngCrush(); Resource skipPngCrush(boolean b); void walk(Walker walker); void walk(Walker walker, File destDir); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); }
Resource { public void walk(Walker walker) throws IOException { walk(walker, new File(".")); } protected  Resource();  Resource(File path);  Resource(File directory, String targetPath); File getPath(); String getTargetPath(); File getDirectory(); List<String> getIncludes(); Resource include(String... patterns); List<String> getExcludes(); Resource exclude(String... patterns); boolean isFlatten(); Resource flatten(boolean b); boolean isIgnoreDefaultExcludes(); Resource ignoreDefaultExcludes(boolean b); boolean isSkipPngCrush(); Resource skipPngCrush(boolean b); void walk(Walker walker); void walk(Walker walker, File destDir); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }