Package org.apache.cayenne.util

Examples of org.apache.cayenne.util.ResourceLocator.addFilesystemPath()


    locator.setSkipHomeDirectory(true);

    // add the file's location to the search path, if it exists
    File projectDirectory = this.getProjectDirectory();
    if (projectDirectory != null) {
      locator.addFilesystemPath(projectDirectory.getPath());
    }
  }

  /**
   * Creates a configuration that uses the provided file
View Full Code Here


    locator.setSkipHomeDirectory(true);

    // add the file's location to the search path, if it exists
    File projectDirectory = this.getProjectDirectory();
    if (projectDirectory != null) {
      locator.addFilesystemPath(projectDirectory);
    }
  }

  /**
   * Adds the given String as a custom path for filesystem lookups.
View Full Code Here

    locator.setSkipHomeDirectory(true);

    // add the file's location to the search path, if it exists
    File projectDirectory = this.getProjectDirectory();
    if (projectDirectory != null) {
      locator.addFilesystemPath(projectDirectory.getPath());
    }
  }

  /**
   * Creates a configuration that uses the provided file
View Full Code Here

    locator.setSkipHomeDirectory(true);

    // add the file's location to the search path, if it exists
    File projectDirectory = this.getProjectDirectory();
    if (projectDirectory != null) {
      locator.addFilesystemPath(projectDirectory);
    }
  }

  /**
   * Adds the given String as a custom path for filesystem lookups.
View Full Code Here

    // check for a configuration path in the context parameters
    String configurationPath =
      ctxt.getInitParameter(CONFIGURATION_PATH_KEY);
    if (configurationPath != null
      && configurationPath.trim().length() > 0) {
      l.addFilesystemPath(configurationPath);
    }

    this.setResourceLocator(l);
  }
View Full Code Here

    locator.setSkipHomeDirectory(true);

    // add the file's location to the search path, if it exists
    File projectDirectory = this.getProjectDirectory();
    if (projectDirectory != null) {
      locator.addFilesystemPath(projectDirectory.getPath());
    }
  }

  /**
   * Creates a configuration that uses the provided file
View Full Code Here

    locator.setSkipHomeDirectory(true);

    // add the file's location to the search path, if it exists
    File projectDirectory = this.getProjectDirectory();
    if (projectDirectory != null) {
      locator.addFilesystemPath(projectDirectory);
    }
  }

  /**
   * Adds the given String as a custom path for filesystem lookups.
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.