Package railo.commons.io.res

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


      f = dir.getRealResource("MediaPlayer.cfc");
      if (!f.exists() || doNew)
        createFileFromResourceEL("/resource/library/tag/MediaPlayer.cfc", f);
      Resource build = dir.getRealResource("build");
      if (!build.exists())
        build.mkdirs();
      String[] names = new String[] { "_background.png", "_bigplay.png", "_controls.png", "_loading.gif", "_player.swf", "_player.xap", "background_png.cfm",
          "bigplay_png.cfm", "controls_png.cfm", "jquery.js.cfm", "loading_gif.cfm", "mediaelement-and-player.min.js.cfm", "mediaelementplayer.min.css.cfm",
          "player.swf.cfm", "player.xap.cfm" };
      for (int i = 0; i < names.length; i++) {
        f = build.getRealResource(names[i]);
View Full Code Here


      config.setRemoteClients(new RemoteClient[0]);

    // init spooler engine
    Resource dir = config.getRemoteClientDirectory();
    if (dir != null && !dir.exists())
      dir.mkdirs();
    if (config.getSpoolerEngine() == null) {
      config.setSpoolerEngine(new SpoolerEngineImpl(config, dir, "Remote Client Spooler", config.getRemoteClientLog(), maxThreads));
    }
    else {
      SpoolerEngineImpl engine = (SpoolerEngineImpl) config.getSpoolerEngine();
View Full Code Here

  }

  public Resource getVideoDirectory() {
    // TODO take from tag <video>
    Resource dir = getConfigDir().getRealResource("video");
      if(!dir.exists())dir.mkdirs();
      return dir;
  }


  public Resource getExtensionDirectory() {
View Full Code Here


  public Resource getExtensionDirectory() {
    // TODO take from tag <extensions>
    Resource dir = getConfigDir().getRealResource("extensions");
      if(!dir.exists())dir.mkdirs();
      return dir;
  }
 
  protected void setExtensionProviders(ExtensionProvider[] extensionProviders) {
    this.extensionProviders=extensionProviders;
View Full Code Here

    }

    private Resource getContextDirectory() throws PageException  {
      ConfigServer cs = config.getConfigServer(password);
      Resource dist = cs.getConfigDir().getRealResource("distribution");
      dist.mkdirs();
      return dist;
    }
   
    private void doGetPluginDirectory() throws PageException {
        pageContext.setVariable(
View Full Code Here

        Resource src = ResourceUtil.toResourceExisting(pageContext, strSrc);
       
        ConfigServerImpl server = (ConfigServerImpl) config.getConfigServer(password);
        Resource trg,p;
        Resource deploy = server.getConfigDir().getRealResource("web-context-deployment");
        deploy.mkdirs();
       
        // deploy it
        trg=deploy.getRealResource(strRealpath);
      if(trg.exists()) trg.remove(true);
      p = trg.getParentResource();
View Full Code Here

  }

  private static Resource getTemp(PageContext pc) {
    Resource tmp = pc.getConfig().getConfigDir();
    Resource dir = tmp.getRealResource("execution-log");
    if(!dir.exists())dir.mkdirs();
    return dir;
  }

  protected void _release() {
   
View Full Code Here

    // webroot
    String strWebroot=config.get("webroot");
    if(Util.isEmpty(strWebroot,true)) throw new IOException("missing webroot configuration");
    Resource root=ResourcesImpl.getFileResourceProvider().getResource(strWebroot);
    root.mkdirs();
   
    // serverName
    String serverName=config.get("server-name");
    if(Util.isEmpty(serverName,true))serverName="localhost";
   
View Full Code Here

   
    // orm
    {
    Resource ormDir = dir.getRealResource("orm");
    String ormPath = path+"orm/";
    if(!ormDir.exists())ormDir.mkdirs();
    deploy(ormDir,ormPath,doNew,"IEventHandler");
    deploy(ormDir,ormPath,doNew,"INamingStrategy");
    }
    // test
    {
View Full Code Here

    }
    // test
    {
    Resource testDir = dir.getRealResource("test");
    String testPath = path+"test/";
    if(!testDir.exists())testDir.mkdirs();
    deploy(testDir,testPath,doNew,"AdministratorTest");
    deploy(testDir,testPath,doNew,"RailoTestSuite");
    deploy(testDir,testPath,doNew,"RailoTestSuiteRunner");
    deploy(testDir,testPath,doNew,"RailoTestCase");
    }
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.