Package railo.commons.io.res

Examples of railo.commons.io.res.Resource.mkdirs()


    }

    public DebuggerPool getDebuggerPool() {
      if(debuggerPool==null){
        Resource dir = getConfigDir().getRealResource("debugger");
        dir.mkdirs();
        debuggerPool=new DebuggerPool(dir);
      }
      return debuggerPool;
    }
   
View Full Code Here


        f = dir.getRealResource("RailoJs.cfc");
        if(f.exists())f.delete();
       
        //js
        Resource jsDir = dir.getRealResource("js");
        if(!jsDir.isDirectory())jsDir.mkdirs();
        f = jsDir.getRealResource("RailoAjax.js");
        if(!f.exists() || doNew)ConfigFactory.createFileFromResourceEL("/resource/library/tag/railo/core/ajax/js/RailoAjax.js",f);
        f = jsDir.getRealResource("RailoMap.js");
        if(!f.exists() || doNew)ConfigFactory.createFileFromResourceEL("/resource/library/tag/railo/core/ajax/js/RailoMap.js",f);
        f = jsDir.getRealResource("RailoWindow.js");
View Full Code Here

        Resource gDir = dir.getRealResource("google");
        if(gDir.isDirectory())ResourceUtil.removeEL(gDir, true);
       
        // create google/... again
        gDir = jsDir.getRealResource("google");
        if(!gDir.isDirectory())gDir.mkdirs();
        f = gDir.getRealResource("google-map.js");
        if(!f.exists() || doNew)ConfigFactory.createFileFromResourceEL("/resource/library/tag/railo/core/ajax/js/google/google-map.js",f);
       
       
        //jquery resources
View Full Code Here

        if(!f.exists() || doNew)ConfigFactory.createFileFromResourceEL("/resource/library/tag/railo/core/ajax/js/google/google-map.js",f);
       
       
        //jquery resources
        Resource jqDir = jsDir.getRealResource("jquery");
        if(!jqDir.isDirectory())jqDir.mkdirs();
        f = jqDir.getRealResource("jquery-1.4.2.js");
        if(!f.exists() || doNew)ConfigFactory.createFileFromResourceEL("/resource/library/tag/railo/core/ajax/js/jquery/jquery-1.4.2.js",f);
        f = jqDir.getRealResource("jquery-ui-1.8.2.js");
        if(!f.exists() || doNew)ConfigFactory.createFileFromResourceEL("/resource/library/tag/railo/core/ajax/js/jquery/jquery-ui-1.8.2.js",f);
        f = jqDir.getRealResource("jquery.layout.js");
View Full Code Here

        f = jqDir.getRealResource("jquery.window.js");
        if(!f.exists() || doNew)ConfigFactory.createFileFromResourceEL("/resource/library/tag/railo/core/ajax/js/jquery/jquery.window.js",f);
 
        //css Railo Skin
        Resource cssDir = dir.getRealResource("css/jquery");
        if(!cssDir.isDirectory())cssDir.mkdirs();
        f = cssDir.getRealResource("RailoSkin.css.cfm");
        if(!f.exists() || doNew)ConfigFactory.createFileFromResourceEL("/resource/library/tag/railo/core/ajax/css/jquery/RailoSkin.css.cfm",f);
       
        //css images
        Resource imgDir = cssDir.getRealResource("images");
View Full Code Here

        f = cssDir.getRealResource("RailoSkin.css.cfm");
        if(!f.exists() || doNew)ConfigFactory.createFileFromResourceEL("/resource/library/tag/railo/core/ajax/css/jquery/RailoSkin.css.cfm",f);
       
        //css images
        Resource imgDir = cssDir.getRealResource("images");
        if(!imgDir.isDirectory())imgDir.mkdirs();
        f = imgDir.getRealResource("ui-anim_basic_16x16.gif.cfm");
        if(!f.exists() || doNew)ConfigFactory.createFileFromResourceEL("/resource/library/tag/railo/core/ajax/css/jquery/images/ui-anim_basic_16x16.gif.cfm",f);
        f = imgDir.getRealResource("ui-bg_flat_0_aaaaaa_40x100.png.cfm");
        if(!f.exists() || doNew)ConfigFactory.createFileFromResourceEL("/resource/library/tag/railo/core/ajax/css/jquery/images/ui-bg_flat_0_aaaaaa_40x100.png.cfm",f);
        f = imgDir.getRealResource("ui-bg_flat_75_ffffff_40x100.png.cfm");
View Full Code Here

      }
     
      // security/cacerts
      if(cacerts==null || !cacerts.exists()) {
        cacerts = getConfigDir().getRealResource("security/cacerts");
        if(!cacerts.exists())cacerts.mkdirs();
      }
      return cacerts;
  }
   
    @Override
View Full Code Here

        throws SAXException, ClassException, PageException, IOException, TagLibException, FunctionLibException {
     
      boolean isCLI=SystemUtil.isCLICall();
      if(isCLI){
        Resource logs = configDir.getRealResource("logs");
        logs.mkdirs();
        Resource out = logs.getRealResource("out");
        Resource err = logs.getRealResource("err");
        ResourceUtil.touch(out);
        ResourceUtil.touch(err);
        if(logs instanceof FileResource) {
View Full Code Here

    "TaskGatewayDriver.cfc","DirectoryWatcher.cfc","MailWatcher.cfc","Gateway.cfc","Field.cfc","Group.cfc"}
    ,gDir,doNew);
   
    // Security
    Resource secDir = configDir.getRealResource("security");
        if(!secDir.exists())secDir.mkdirs();
        Resource res = create("/resource/security/","cacerts",secDir,false);
    System.setProperty("javax.net.ssl.trustStore",res.toString());
   
        // ESAPI
        Resource propDir = configDir.getRealResource("properties");
View Full Code Here

        Resource res = create("/resource/security/","cacerts",secDir,false);
    System.setProperty("javax.net.ssl.trustStore",res.toString());
   
        // ESAPI
        Resource propDir = configDir.getRealResource("properties");
        if(!propDir.exists())propDir.mkdirs();
        create("/resource/properties/","ESAPI.properties",propDir,doNew);
    System.setProperty("org.owasp.esapi.resources", propDir.toString());


    // Jacob
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.