nl.toolforge.karma.core
Class MavenEnvironment

java.lang.Object
  extended bynl.toolforge.karma.core.MavenEnvironment

public final class MavenEnvironment
extends java.lang.Object

Class that checks if the user has a proper Maven enabled environment. This is required when <mavenmodule>s are used. This class is called

Version:
$Id: MavenEnvironment.java,v 1.3 2004/08/29 18:00:35 hippe Exp $
Author:
D.A. Smedes

Field Summary
static java.lang.String ENV_MAVEN_HOME
          The MAVEN_HOME environment variable that must be set.
static java.lang.String ENV_MAVEN_REPOSITORY
          The maven.repo.local environment variable when running Maven.
 
Constructor Summary
MavenEnvironment()
           
 
Method Summary
static java.lang.String getMavenRepository()
           
static boolean isValid()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ENV_MAVEN_HOME

public static final java.lang.String ENV_MAVEN_HOME
The MAVEN_HOME environment variable that must be set. This should be passed to the JVM upon startup.

See Also:
Constant Field Values

ENV_MAVEN_REPOSITORY

public static final java.lang.String ENV_MAVEN_REPOSITORY
The maven.repo.local environment variable when running Maven. Identifies the Maven repository for the current user. When not found in as a JMV system variable, ${user.home}/.maven/repository will be used as the default.

See Also:
Constant Field Values
Constructor Detail

MavenEnvironment

public MavenEnvironment()
Method Detail

isValid

public static boolean isValid()

getMavenRepository

public static java.lang.String getMavenRepository()


Copyright © 2002-2004 Toolforge. All Rights Reserved.