Package com.caucho.vfs

Examples of com.caucho.vfs.Depend


      String realPath = app.getRealPath(contextURI + "/" + file);

      Path path = app.getAppDir().lookup(realPath);

      dependencyList.add(new Depend(path));
    }

    dependencyList.clearModified();

    invocation.setDependency(dependencyList);
View Full Code Here


      GettextParser parser;

      if (_depend == null)
        _depend = new BasicDependencyContainer();

      _depend.add(new Depend(_currentPath));

      if (_currentPath == _pathPO)
        parser = new POFileParser(_env, _currentPath);
      else
        parser = new MOFileParser(_env, _currentPath);
View Full Code Here

   */
  protected void _caucho_addDepend(Path path,
                                   long lastModified,
                                   long length)
  {
    Depend depend = new Depend(path, lastModified, length);
    depend.setRequireSource(getRequireSource());

    _caucho_addDepend(depend);
  }
View Full Code Here

                                        long length)
  {
    if (_cacheDepends == null)
      _cacheDepends = new ArrayList<Depend>();

    Depend depend = new Depend(path, lastModified, length);

    if (! _cacheDepends.contains(depend))
      _cacheDepends.add(depend);
  }
View Full Code Here

  {
    _cacheDepends = new ArrayList<Depend>();
    for (int i = 0; i < depends.size(); i++) {
      Path path = depends.get(i);

      Depend depend = new Depend(path);
      depend.setRequireSource(getRequireSource());

      if (! _cacheDepends.contains(depend))
        _cacheDepends.add(depend);
    }
  }
View Full Code Here

      for (int i = 0; i < depends.size(); i++) {
        PersistentDependency dependency = depends.get(i);

        if (dependency instanceof Depend) {
          Depend depend = (Depend) dependency;
          long modified = depend.getLastModified();
          if (lastModified < modified)
            lastModified = modified;
        }
      }

      for (int i = 0; cacheDepends != null && i < cacheDepends.size(); i++) {
        Depend depend = cacheDepends.get(i);
        long modified = depend.getLastModified();
        if (lastModified < modified)
          lastModified = modified;
      }

      return lastModified;
View Full Code Here

    if (_jarList.contains(jarEntry))
      return;
   
    _jarList.add(jarEntry);

    _dependencyList.add(new Depend(jarPath));

    if (_pathMap == null && isJarCacheEnabled())
      _pathMap = new JarMap();

    if (_pathMap != null) {
View Full Code Here

    if (_path == null)
      throw new ConfigException(L.l("project-loader requires a 'path' attribute"));

    EnvironmentClassLoader loader = Environment.getEnvironmentClassLoader();

    loader.addDependency(new Depend(_path));

    if (_path.canRead()) {
      try {
  MavenProject project = new MavenProject();
View Full Code Here

   
    for (int i = 0; i < _dependList.size(); i++) {
      PersistentDependency dependency = _dependList.get(i);

      if (dependency instanceof Depend) {
        Depend depend = (Depend) _dependList.get(i);
        Path path = depend.getPath();

        out.print("_caucho_depend[" + i + "] = new com.caucho.vfs.Depend(");
       
        // php/3b33
        String relativePath;
        if (searchPath != null)
          relativePath = searchPath.lookup(path.getRelativePath()).getRelativePath();
        else {
          String fullPath = path.getFullPath();
          String pwd = Vfs.lookup().getFullPath();

          if (fullPath.startsWith(pwd))
            relativePath = "./" + fullPath.substring(pwd.length());
          else
            relativePath = fullPath;
        }
 
        out.print("path.lookup(\"" + relativePath + "\"), ");
   
        out.println(depend.getDigest() + "L, "
                    + depend.getRequireSource() + ");");
      }
      else {
        out.print("_caucho_depend[" + i + "] = ");
        out.print(dependency.getJavaCreateString());
        out.println(";");
View Full Code Here

      _depends.add(path);

      if (_dependList == null)
        _dependList = new ArrayList<Depend>();

      _dependList.add(new Depend(path));
    }
  }
View Full Code Here

TOP

Related Classes of com.caucho.vfs.Depend

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.