From f4de864984ade83dfbc33d4bab1200be6f9dbd03 Mon Sep 17 00:00:00 2001 From: Jason van Zyl Date: Sat, 4 Oct 2008 19:19:41 +0000 Subject: [PATCH] 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 --- .../apache/maven/execution/DefaultRuntimeInformation.java | 7 +++++++ .../org/apache/maven/execution/RuntimeInformation.java | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/maven-core/src/main/java/org/apache/maven/execution/DefaultRuntimeInformation.java b/maven-core/src/main/java/org/apache/maven/execution/DefaultRuntimeInformation.java index a17d70515b..53d30f8456 100644 --- a/maven-core/src/main/java/org/apache/maven/execution/DefaultRuntimeInformation.java +++ b/maven-core/src/main/java/org/apache/maven/execution/DefaultRuntimeInformation.java @@ -23,6 +23,7 @@ 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 ApplicationInformation getApplicationInformation() return applicationInformation; } + /** @deprecated Use getApplicationInformation() */ + public ArtifactVersion getApplicationVersion() + { + return applicationInformation.getVersion(); + } + public void initialize() throws InitializationException { diff --git a/maven-core/src/main/java/org/apache/maven/execution/RuntimeInformation.java b/maven-core/src/main/java/org/apache/maven/execution/RuntimeInformation.java index cfcc747a36..c1a1bb9404 100644 --- a/maven-core/src/main/java/org/apache/maven/execution/RuntimeInformation.java +++ b/maven-core/src/main/java/org/apache/maven/execution/RuntimeInformation.java @@ -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 @@ public interface RuntimeInformation { ApplicationInformation getApplicationInformation(); + + /** @deprecated Use getApplicationInformation() */ + //!!BC Used by the Eclipse Plugin + ArtifactVersion getApplicationVersion(); + }