org.mevenide.idea.module
Class ModuleLocationFinder
java.lang.Object
org.mevenide.environment.LocationFinderAggregator
org.mevenide.idea.module.ModuleLocationFinder
- All Implemented Interfaces:
- ILocationFinder
public class ModuleLocationFinder
- extends LocationFinderAggregator
A location finder which uses an IDEA module to find the Java home and uses the IDEA
settings to find the Maven home.
- Author:
- Arik
|
Constructor Summary |
ModuleLocationFinder(com.intellij.openapi.module.Module pModule)
Creates an instance using the given module. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ModuleLocationFinder
public ModuleLocationFinder(com.intellij.openapi.module.Module pModule)
- Creates an instance using the given module. The given module will be used to locate
the appropriate Java home. The Maven home will be taken from the settings defined
by the user.
- Parameters:
pModule - the module to use
getJavaHome
public String getJavaHome()
- Use the Java home defined for the specified module.
- Specified by:
getJavaHome in interface ILocationFinder- Overrides:
getJavaHome in class LocationFinderAggregator
- Returns:
- the Java home defined for the module, or the default Java home, if not
defined for it
getMavenHome
public String getMavenHome()
- Return the Maven home defined by the user in IDEA settings. If not defined there,
lets the superclass try to guess its location.
- Specified by:
getMavenHome in interface ILocationFinder- Overrides:
getMavenHome in class LocationFinderAggregator
- Returns:
- maven home directory
Copyright © 2005 The Codehaus. All Rights Reserved.