Package railo.commons.io.res

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


        Resource file=temp.getRealResource(Md5.getDigestAsString(Info.getVersionAsString())+".lmdp");
           
        if(!file.exists()){
          ResourceUtil.removeChildrenEL(temp, new ExtensionResourceFilter(".lmdp"));
         
              file.createFile(true);
              //print.out(new Info().getClass().getResource("/resource/lib/pd4ml.jar"));
              InputStream jar = new Info().getClass().getResourceAsStream("/resource/lib/pd4ml.jar");
            IOUtil.copy(jar, file,true);
            }
            ClassLoader parent = Version.class.getClassLoader();
View Full Code Here


      Resource file;
      while((file=dir.getRealResource(prefix+pc.getId()+count+".tmp")).exists()) {
          count++;
      }
      try {
        file.createFile(false);
            //file.createNewFile();
          return file.getCanonicalPath();
        }
      catch (IOException e) {
            throw Caster.toPageException(e);
View Full Code Here

      manifest.append("\"\n");
       
       

       
        mani.createFile(true);
        IOUtil.write(mani, manifest.toString(), "UTF-8", false);
       
    // source files
        Resource[] sources;
      if(!addCFMLFiles && !addNonCFMLFiles) sources=new Resource[]{temp,classRoot};
View Full Code Here

             
      boolean doNew=doNew(configDir);
     
      Resource configFile=configDir.getRealResource("railo-server.xml");
        if(!configFile.exists()) {
        configFile.createFile(true);
      //InputStream in = new TextFile("").getClass().getResourceAsStream("/resource/config/server.xml");
      createFileFromResource(
           "/resource/config/server.xml",
           configFile.getAbsoluteResource(),
           "tpiasfap"
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.