Package jodd.io.findfile

Examples of jodd.io.findfile.WildcardFindFile


     * Formats java files under provided source folder.
     */
    public void formatJava(String sourceRoot) throws IOException {
        System.out.println("*** format: " + sourceRoot);

        FindFile ff = new WildcardFindFile()
                .include("/webit-script/src/**/*.java")
                //.exclude("**/asm4/**/*.java","**/Lexer.java","**/Parser.java","**/Tokens.java")
                .setRecursive(true)
                .setIncludeDirs(false)
                .setMatchType(FindFile.Match.RELATIVE_PATH)
View Full Code Here


    dataRoot = data.getFile();
  }

  @Test
  public void testTwoAccept() {
    FindFile ff = new WildcardFindFile()
            .include("**/*file/a.png")
            .include("**/*file/a.txt")
            .setRecursive(true)
            .setIncludeDirs(true)
            .searchPath(dataRoot);
 
View Full Code Here

    assertEquals(2, countFiles);
  }

  @Test
  public void testWildcardFile() {
    FindFile ff = new WildcardFindFile()
        .include("**/*file/a*")
        .setRecursive(true)
        .setIncludeDirs(true)
        .searchPath(dataRoot);

 
View Full Code Here

  }


  @Test
  public void testWildcardPath() {
    FindFile ff = new WildcardFindFile()
        .include("**/file/*")
        .setRecursive(true)
        .setIncludeDirs(true)
        .searchPath(dataRoot);

 
View Full Code Here

  public void testHtmls2() throws IOException {
    _testHtmls(testDataRoot2);
  }

  private void _testHtmls(String root) throws IOException {
    FindFile ff = new WildcardFindFile().include("**/*.*ml");
    long reps = 1;
    JStopWatch jsw = new JStopWatch();
    boolean processed = false;
    while (reps-- > 0) {
      ff.searchPath(root);
View Full Code Here

  /**
   * 13s
   */
  @Test
  public void testLiveHtmls() throws IOException {
    FindFile ff = new WildcardFindFile().include("**/*.html");
    ff.searchPath(testLiveRoot);
    File file;
    boolean processed = false;
    while ((file = ff.nextFile()) != null) {
      processed = true;
View Full Code Here

  @Test
  public void testDecoraParser() throws IOException {
    DecoraParser decoraParser = new DecoraParser();

    FindFile ff = new WildcardFindFile().include("*.*ml");
    ff.setMatchType(FindFile.Match.NAME);
    ff.searchPath(testDataRoot);

    File file;
    while ((file = ff.nextFile()) != null) {
View Full Code Here

TOP

Related Classes of jodd.io.findfile.WildcardFindFile

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.