Package railo.commons.io.res.filter

Examples of railo.commons.io.res.filter.ExtensionResourceFilter


       
        // overwrite with addional functions
        FunctionLib fl;
        if(fileFld.isDirectory()) {
            Resource[] files=fileFld.listResources(new ExtensionResourceFilter("fld"));
            for(int i=0;i<files.length;i++) {
                try {
                  fl = FunctionLibFactory.loadFromFile(files[i]);
                  overwrite(flds[0],fl);
                 
View Full Code Here


    Struct rtn=new StructImpl();
    Struct driver;
   
    try {
      Resource railoContext = ResourceUtil.toResourceExisting(pc() ,"/railo-context/admin/dbdriver/");
      Resource[] children = railoContext.listResources(new ExtensionResourceFilter("cfc"));
        
        String name;
        for(int i=0;i<children.length;i++) {
          driver=new StructImpl();
          name=ListFirst.call(pc(),children[i].getName(),".");
View Full Code Here

       
        // include everything, no filter needed
        if(addCFMLFiles && addNonCFMLFiles)filter=null;
        // CFML Files but no other files
        else if(addCFMLFiles) {
          if(mappingType==MAPPING_CFC)filter=new ExtensionResourceFilter(new String[]{"class","cfc","MF"},true,true);
          else filter=new ExtensionResourceFilter(new String[]{"class","cfm","cfml","cfc","MF"},true,true);
        }
        // No CFML Files, but all other files
        else if(addNonCFMLFiles) {
          filter=new NotResourceFilter(new ExtensionResourceFilter(new String[]{"cfm","cfml","cfc"},false,true));
        }
        // no files at all
        else  {
          filter=new ExtensionResourceFilter(new String[]{"class","MF"},true,true);
        }
       
       
        // create manifest
        StringBuilder manifest=new StringBuilder();
View Full Code Here

    private void doGetJars() throws PageException {
      Resource lib = config.getConfigDir().getRealResource("lib");
    railo.runtime.type.Query qry=new QueryImpl(new String[]{"name","source"},new String[]{"varchar","varchar"},0,"jars");
      
    if(lib.isDirectory()){
      Resource[] children = lib.listResources(new ExtensionResourceFilter(new String[]{".jar",".zip"},false,true));
      for(int i=0;i<children.length;i++){
        qry.addRow();
        qry.setAt("name", i+1, children[i].getName());
        qry.setAt("source", i+1, children[i].getAbsolutePath());
      }
View Full Code Here

        sct.set("extensions",new ArrayImpl(config.getCustomTagExtensions()));
    }

    private void doGetDatasourceDriverList() throws PageException {
      Resource railoContext = ResourceUtil.toResourceExisting(pageContext ,"/railo-context/admin/dbdriver/");
      Resource[] children = railoContext.listResources(new ExtensionResourceFilter("cfc"));
      String rtnVar=getString("admin",action,"returnVariable");
     
      railo.runtime.type.Query qry=new QueryImpl(new String[]{"name"},children.length,rtnVar);
        
     
View Full Code Here

       
    }

  private void doGetDebuggingList() throws PageException {
      Resource railoContext = ResourceUtil.toResourceExisting(pageContext ,"/railo-context/templates/debugging/");
      Resource[] children = railoContext.listResources(new ExtensionResourceFilter("cfm"));
      String rtnVar=getString("admin",action,"returnVariable");
     
      railo.runtime.type.Query qry=new QueryImpl(new String[]{"name"},children.length,rtnVar);
        
     
View Full Code Here

  private void doClearMailConnections() {
    SMTPConnectionPool.closeSessions();
  }

  private void checkOldClientFile(ConfigWeb config) {
    ExtensionResourceFilter filter = new ExtensionResourceFilter(".script",false);
   
    // move old structured file in new structure
    try {
      Resource dir = config.getClientScopeDir(),trgres;
      Resource[] children = dir.listResources(filter);
View Full Code Here

      }
    } catch (Throwable t) {}
  }

  private void checkCacheFileSize(ConfigWeb config) {
    checkSize(config,config.getCacheDir(),config.getCacheDirSize(),new ExtensionResourceFilter(".cache"));
  }
View Full Code Here

TOP

Related Classes of railo.commons.io.res.filter.ExtensionResourceFilter

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.