Tabnine Logo
Environment.getRealDirectory
Code IndexAdd Tabnine to your IDE (free)

How to use
getRealDirectory
method
in
org.apache.muse.core.Environment

Best Java code snippets using org.apache.muse.core.Environment.getRealDirectory (Showing top 4 results out of 315)

origin: org.n52.amused/amused-core

protected File createLogFile(Element logging, Environment env)
{
  QName qname = DescriptorConstants.LOG_FILE_QNAME;
  String location = XmlUtils.getElementText(logging, qname);
  
  boolean absolute = false;
  outer:
  if (location.contains("${")) {
    String placeholder = "${catalina.home}";
    int index = location.indexOf(placeholder);
    if (index >= 0) {
      String catalinaHome = System.getProperty("catalina.base");
      if (catalinaHome != null) {
        location = location.replace(placeholder, catalinaHome);
        absolute = true;
      }
      
      break outer;
    }
    
    //other placeholders...
  }
  
  if (absolute) {
    return new File(location);
  } else {
    return new File(env.getRealDirectory(), location);
  }
}

origin: org.n52.amused/amused-core

/**
 * 
 * @return The File directory that was specified as the persistence location 
 *         in muse.xml. The directory may not exist, so use File.exists() 
 *         and/or File.mkdirs() to prevent I/O errors.
 *
 */
protected File getPersistenceDirectory()
{
  String path = getPersistenceLocation();
  
  if (path == null)
    throw new RuntimeException(_MESSAGES.get("NoPersistenceLocation"));
  
  File workingDir = getResourceManager().getEnvironment().getRealDirectory();
  return new File(workingDir, path);
}

origin: org.n52.amused/amused-core

String absolutePath = env.getRealDirectory().getAbsolutePath();
origin: org.n52.amused/amused-osgi-core

String absolutePath = env.getRealDirectory().getAbsolutePath();
org.apache.muse.coreEnvironmentgetRealDirectory

Popular methods of Environment

  • getDocument
    This is a convenience method that loads an InputStream using getDataResourceStream() and turns it in
  • createRelativePath
    Merges the two paths to create a valid version of the second path. This method should be used when y
  • getAddressingContext
  • getClassLoader
  • addAddressingContext
    Records the WS-Addressing data for the current request.
  • getDefaultURI
  • getDeploymentEPR
  • getSoapClient
  • removeAddressingContext
    Removes the context object for the current request.

Popular in Java

  • Updating database using SQL prepared statement
  • runOnUiThread (Activity)
  • getSharedPreferences (Context)
  • getExternalFilesDir (Context)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now