Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: f32de7ed187fa4b83e22ce24023f28bcdc9eb422 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*******************************************************************************
 * Copyright (c) 2014 Takari, Inc.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *      Takari, Inc. - initial API and implementation
 *******************************************************************************/

package org.eclipse.m2e.core.internal.launch;

import java.util.List;

import org.eclipse.m2e.core.embedder.MavenRuntime;


/**
 * @since 1.5
 */
public abstract class AbstractMavenRuntime implements MavenRuntime {

  private final String name;

  @Deprecated
  protected AbstractMavenRuntime() {
    this.name = null;
  }

  protected AbstractMavenRuntime(String name) {
    this.name = name;
  }

  @Override
  public String getName() {
    return name != null ? name : getLocation();
  }

  public List<ClasspathEntry> getExtensions() {
    return null;
  }

  public boolean isLegacy() {
    return name == null;
  }
}

Back to the top