com.atlassian.bamboo.plugins.maven.task
Class MavenUtils

java.lang.Object
  extended by com.atlassian.bamboo.plugins.maven.task.MavenUtils

public class MavenUtils
extends java.lang.Object


Nested Class Summary
static class MavenUtils.MavenVersionMatcher
           
 
Method Summary
static java.lang.String getMavenVersion(java.io.File mavenExecutable)
          Parse output of "mvn --version".
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getMavenVersion

@Nullable
public static java.lang.String getMavenVersion(java.io.File mavenExecutable)
Parse output of "mvn --version". This method works only with Maven 2 and Maven 3

Parameters:
homePath - maven home directory
Returns:
text representation of Maven version number or null if not possible to obtain version number


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.