org.mevenide.environment
Class SysEnvLocationFinder

java.lang.Object
  extended byorg.mevenide.environment.AbstractLocationFinder
      extended byorg.mevenide.environment.SysEnvLocationFinder
All Implemented Interfaces:
ILocationFinder

public class SysEnvLocationFinder
extends AbstractLocationFinder

Version:
$Id: SysEnvLocationFinder.java,v 1.1 15 nov. 2003 Exp gdodinet
Author:
Gilles Dodinet (gdodinet@wanadoo.fr)

Method Summary
static SysEnvLocationFinder getInstance()
           
 java.lang.String getJavaHome()
           
 java.lang.String getMavenHome()
           
 java.lang.String getMavenLocalHome()
           
 java.lang.String getMavenLocalRepository()
           
 java.lang.String getMavenPluginsDir()
          directory with the expanded plugin cache, basically value of maven.plugin.unpacked.dir property
 java.lang.String getPluginJarsDir()
          the directory containing maven plugin jars, denoted by maven.plugin.dir propertu
 java.lang.String getUserHome()
           
 java.lang.String getUserPluginsDir()
          directory with user's custom plugins, denoted by maven.plugin.user.dir property
static void setDefaultSysEnvProvider(SysEnvProvider prov)
          Sets the SysEnv provider instance for the locationFinder.
 
Methods inherited from class org.mevenide.environment.AbstractLocationFinder
getConfigurationFileLocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static SysEnvLocationFinder getInstance()

setDefaultSysEnvProvider

public static void setDefaultSysEnvProvider(SysEnvProvider prov)
Sets the SysEnv provider instance for the locationFinder. Please not that if you define a custom one impl, you should set it *before* the singleton SysEnvLocationFinder instance is created, thus before the getInstance() method is called for the first time. Best place is during the startup sequence of your IDE. (For performance reasons your provider impl should be lazy initialized).


getJavaHome

public java.lang.String getJavaHome()

getMavenHome

public java.lang.String getMavenHome()

getMavenLocalHome

public java.lang.String getMavenLocalHome()

getMavenLocalRepository

public java.lang.String getMavenLocalRepository()

getMavenPluginsDir

public java.lang.String getMavenPluginsDir()
Description copied from interface: ILocationFinder
directory with the expanded plugin cache, basically value of maven.plugin.unpacked.dir property


getUserHome

public java.lang.String getUserHome()

getUserPluginsDir

public java.lang.String getUserPluginsDir()
Description copied from interface: ILocationFinder
directory with user's custom plugins, denoted by maven.plugin.user.dir property


getPluginJarsDir

public java.lang.String getPluginJarsDir()
Description copied from interface: ILocationFinder
the directory containing maven plugin jars, denoted by maven.plugin.dir propertu



Copyright © 2003-2005 The Codehaus. All Rights Reserved.