Package org.opoo.press.source

Examples of org.opoo.press.source.SourceEntryLoader


  }
 
  private void readSources(){
    log.info("Reading sources ...");
   
    final SourceEntryLoader loader = Application.getContext().getSourceEntryLoader();
    final SourceParser parser = Application.getContext().getSourceParser();
   
    //load sources and load static files
   
    FileFilter fileFilter = buildFilter();
    List<SourceEntry> list = loader.loadSourceEntries(source, fileFilter);
    if(sources != null && !sources.isEmpty()){
      for(File src: sources){
        List<SourceEntry> tempList = loader.loadSourceEntries(src, fileFilter);
        if(tempList != null && !tempList.isEmpty()){
          list.addAll(tempList);
        }
      }
    }
View Full Code Here


  }
 
  private void readStaticFiles(){
    if(assets != null){
      log.info("Reading assets ...");
      SourceEntryLoader loader = Application.getContext().getSourceEntryLoader();
      FileFilter fileFilter = buildFilter();
      List<SourceEntry> list = loader.loadSourceEntries(assets, fileFilter);
      for(SourceEntry se: list){
        this.staticFiles.add(new StaticFileImpl(this, se));
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.opoo.press.source.SourceEntryLoader

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.