Package org.cruxframework.crux.core.utils

Examples of org.cruxframework.crux.core.utils.FilePatternHandler


    {
      extractModuleViews(viewsLocator, result);
    }
    else if (isFolderLocator(viewsLocator))
    {
      FilePatternHandler handler = new FilePatternHandler(viewsLocator, null);
      URL url = ClassPathResolverInitializer.getClassPathResolver().findWebBaseDir();
     
      extractFolderViews(result, url, handler);
     
      if (moduleId != null)
View Full Code Here


        }
        else
        {
          URL rootURL = Modules.getInstance().getModuleRootURL(moduleId);
          URLResourceHandler urlResourceHandler = URLResourceHandlersRegistry.getURLResourceHandler(rootURL.getProtocol());
          FilePatternHandler handler = new FilePatternHandler(viewsLocator, null);
          for (String path : module.getPublicPaths())
              {
            URL modulePublicPath = urlResourceHandler.getChildResource(rootURL, path);
            extractFolderViews(result, modulePublicPath, handler);
              }
View Full Code Here

    if (startScreenId != null)
    {
      builder.append("/{context}/" + moduleName + "/" + startScreenId + "\n");
    }

    FilePatternHandler pattern = new FilePatternHandler(offlineScreen.getIncludes(), offlineScreen.getExcludes());
    for (String fn : artifacts)
    {
      if (!fn.endsWith("hosted.html") && pattern.isValidEntry(moduleName + "/" + fn))
      {
        String path = fn.contains("\\") ? fn.replaceAll("\\\\", "/") : fn;
        builder.append("/{context}/" + moduleName + "/" + path + "\n");
      }
    }
View Full Code Here

      String scanIgnoredLibs = ConfigurationFactory.getConfigurations().scanIgnoredLibs();
      String scanAllowedLibs = ConfigurationFactory.getConfigurations().scanAllowedLibs();
      if ((scanIgnoredLibs != null && scanIgnoredLibs.length() > 0) ||
        (scanAllowedLibs != null && scanAllowedLibs.length() > 0)) 
      {
        allowedLibsHandler = new FilePatternHandler(scanAllowedLibs, scanIgnoredLibs);
        requiredLibsHandler = new FilePatternHandler(getRequiredLibs(), null);
      }
      initialized = true;
    }
  }
View Full Code Here

TOP

Related Classes of org.cruxframework.crux.core.utils.FilePatternHandler

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.