Package com.caucho.config.types

Examples of com.caucho.config.types.FileSetType


   * Sets the archive auto-remove file set.
   */
  public void addExpandPreserveFileset(FileSetType fileSet)
  {
    if (_expandCleanupFileSet == null)
      _expandCleanupFileSet = new FileSetType();
   
    _expandCleanupFileSet.addInverse(fileSet);
  }
View Full Code Here


   * Sets the expand remove file set.
   */
  public void addExpandPreserveFileset(FileSetType fileSet)
  {
    if (_expandCleanupFileSet == null)
      _expandCleanupFileSet = new FileSetType();

    _expandCleanupFileSet.addInverse(fileSet);
  }
View Full Code Here

  /**
   * Sets a restriction of the tld dir.
   */
  public void setTldDir(Path tldDir)
  {
    _tldFileSet = new FileSetType();
    _tldFileSet.setDir(tldDir);
  }
View Full Code Here

    else if (_tldDir.startsWith("WEB-INF"))
      dir = _tldDir;
    else
      dir = "WEB-INF/" + _tldDir;

    FileSetType fileSet = _tldFileSet;
    if (fileSet == null) {
      fileSet = new FileSetType();
      fileSet.setDir(_resourceManager.resolvePath(dir));
      try {
        fileSet.init();
      } catch (Exception e) {
        log.config(e.toString());
      }
    }
View Full Code Here

   * Add a pattern.
   */
  public FileSetType createFileset()
  {
    if (_fileSet == null) {
      _fileSet = new FileSetType();
      _fileSet.setDir(Vfs.lookup());
    }

    return _fileSet;
  }
View Full Code Here

  /**
   * Sets a restriction of the tld dir.
   */
  public void setTldDir(Path tldDir)
  {
    _tldFileSet = new FileSetType();
    _tldFileSet.setDir(tldDir);
  }
View Full Code Here

   * Sets the directory for the *.ejb files.
   */
  public void setConfigDirectory(Path dir)
    throws ConfigException
  {
    FileSetType fileSet = new FileSetType();

    fileSet.setDir(dir);

    fileSet.addInclude(new PathPatternType("**/*.ejb"));

    Path pwd = Vfs.lookup();

    String dirPath = dir.getPath();
    String pwdPath = pwd.getPath();

    if (dirPath.startsWith(pwdPath)) {
      String prefix = dirPath.substring(pwdPath.length());

      fileSet.setUserPathPrefix(prefix);
    }

    _ejbContainer.getConfigManager().addFileSet(fileSet);
  }
View Full Code Here

    else if (_tldDir.startsWith("WEB-INF"))
      dir = _tldDir;
    else
      dir = "WEB-INF/" + _tldDir;

    FileSetType fileSet = _tldFileSet;
    if (fileSet == null) {
      fileSet = new FileSetType();
      fileSet.setDir(_resourceManager.resolvePath(dir));
      try {
        fileSet.init();
      } catch (Exception e) {
        log.config(e.toString());
      }
    }
View Full Code Here

   * Add a pattern.
   */
  public FileSetType createFileset()
  {
    if (_fileSet == null) {
      _fileSet = new FileSetType();
      _fileSet.setDir(Vfs.lookup());
    }

    return _fileSet;
  }
View Full Code Here

    try {
      if (_fileSet != null) {
      }
      else if (_path.getPath().endsWith(".jar")
         || _path.getPath().endsWith(".zip")) {
  _fileSet = new FileSetType();
  _fileSet.setDir(_path.getParent());
  _fileSet.addInclude(new PathPatternType(_path.getTail()));
      }
      else {
  _fileSet = new FileSetType();
  _fileSet.setDir(_path);
  _fileSet.addInclude(new PathPatternType("*.jar"));
  _fileSet.addInclude(new PathPatternType("*.zip"));
      }

View Full Code Here

TOP

Related Classes of com.caucho.config.types.FileSetType

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.