mirror of https://github.com/apache/maven.git
o restore the getApplicationVersion() method which is use by eclipse:eclipse
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@701693 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9a02f5a1ec
commit
f4de864984
|
@ -23,6 +23,7 @@ import java.io.IOException;
|
|||
import java.io.InputStream;
|
||||
import java.util.Properties;
|
||||
|
||||
import org.apache.maven.artifact.versioning.ArtifactVersion;
|
||||
import org.apache.maven.artifact.versioning.DefaultArtifactVersion;
|
||||
import org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable;
|
||||
import org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException;
|
||||
|
@ -45,6 +46,12 @@ public class DefaultRuntimeInformation
|
|||
return applicationInformation;
|
||||
}
|
||||
|
||||
/** @deprecated Use getApplicationInformation() */
|
||||
public ArtifactVersion getApplicationVersion()
|
||||
{
|
||||
return applicationInformation.getVersion();
|
||||
}
|
||||
|
||||
public void initialize()
|
||||
throws InitializationException
|
||||
{
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
package org.apache.maven.execution;
|
||||
|
||||
import org.apache.maven.artifact.versioning.ArtifactVersion;
|
||||
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
|
@ -28,4 +30,9 @@ package org.apache.maven.execution;
|
|||
public interface RuntimeInformation
|
||||
{
|
||||
ApplicationInformation getApplicationInformation();
|
||||
|
||||
/** @deprecated Use getApplicationInformation() */
|
||||
//!!BC Used by the Eclipse Plugin
|
||||
ArtifactVersion getApplicationVersion();
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue