Package railo.loader

Examples of railo.loader.TP


    PrintWriter out = config.getOutWriter();
   
    URL dataUrl=toURL(config,jarName);
       
    // destination file
    ClassLoader mainClassLoader = new TP().getClass().getClassLoader();
   
    Resource lib = config.getResource(CFMLEngineFactory.getClassLoaderRoot(mainClassLoader).getCanonicalPath());
     
    Resource jar=lib.getRealResource(jarName);
    SystemOut.printDate(out,"Check for jar at "+dataUrl);
View Full Code Here


    }
    }
 
  private static Resource _toResource(ConfigWeb config,String jarName) {
      // destination file
    ClassLoader mainClassLoader = new TP().getClass().getClassLoader();
    try {
      Resource lib = ResourceUtil.toResourceNotExisting(config,CFMLEngineFactory.getClassLoaderRoot(mainClassLoader).getCanonicalPath());
      return lib.getRealResource(jarName);
    } catch (IOException e) {
      return null;
View Full Code Here

            throw Caster.toPageException(e);
        }
    }
   
  private String getCoreExtension() throws ServletException {
      URL res = new TP().getClass().getResource("/core/core.rcs");
        if(res!=null) return "rcs";
       
        res = new TP().getClass().getResource("/core/core.rc");
        if(res!=null) return "rc";
       
        throw new ServletException("missing core file");
  }
View Full Code Here

    private static void init() {
        if(version!=-1) return;
        String content="9000000:"+System.currentTimeMillis();
        try {
            content= Util.getContentAsString(
                    new TP().getClass().getClassLoader().getResourceAsStream("railo/version"),
                    "UTF-8");
           
           
        }
        catch (IOException e) {}
View Full Code Here

                engine=getCore(coreExt);
             
               
                railo=new File(patcheDir,engine.getVersion()+"."+coreExt);
               if(PATCH_ENABLED) {
                  InputStream bis = new TP().getClass().getResourceAsStream("/core/core."+coreExt);
                  OutputStream bos=new BufferedOutputStream(new FileOutputStream(railo));
                  Util.copy(bis,bos);
                  Util.closeEL(bis,bos);
                }
            }
View Full Code Here

       
    }
   

    private String getCoreExtension() throws ServletException {
      URL res = new TP().getClass().getResource("/core/core.rcs");
        if(res!=null) return "rcs";
       
        res = new TP().getClass().getResource("/core/core.rc");
        if(res!=null) return "rc";
       
        throw new ServletException("missing core file");
  }
View Full Code Here

  }

  private CFMLEngine getCore(String ext) throws SecurityException, IllegalArgumentException, ClassNotFoundException, NoSuchMethodException, IllegalAccessException, InvocationTargetException, IOException {
      InputStream is = null;
      try {
        is = new TP().getClass().getResourceAsStream("/core/core."+ext);
        RailoClassLoader classLoader=new RailoClassLoader(is,mainClassLoader,ext.equalsIgnoreCase("rcs"));
        return getEngine(classLoader);
      }
      finally {
        Util.closeEL(is);
View Full Code Here

        return arr;
  }

 
  private String getCoreExtension()  {
      URL res = new TP().getClass().getResource("/core/core.rcs");
        if(res!=null) return "rcs";
       
        res = new TP().getClass().getResource("/core/core.rc");
        if(res!=null) return "rc";
       
        return "rc";
  }
View Full Code Here

TOP

Related Classes of railo.loader.TP

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.