Back to project page m2e-android.
The source code is released under:
Eclipse Public License - v 1.0 THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECI...
If you think the Android project m2e-android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
/******************************************************************************* * Copyright (c) 2012 Ricardo Gladwell/*from w w w .ja va 2s.co m*/ * 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 *******************************************************************************/ package me.gladwell.eclipse.m2e.android.project; import static me.gladwell.eclipse.m2e.android.project.JaywayMavenAndroidProject.ANDROID_LIBRARY_PACKAGE_TYPE; import org.apache.maven.artifact.Artifact; public class MavenDependency implements Dependency { private Artifact artifact; public MavenDependency(Artifact artifact) { super(); this.artifact = artifact; } public String getName() { return artifact.getArtifactId(); } public String getGroup() { return artifact.getGroupId(); } public String getVersion() { return artifact.getVersion(); } public boolean isLibrary() { return artifact.getType().equals(ANDROID_LIBRARY_PACKAGE_TYPE); } public String getPath() { return artifact.getFile().getAbsolutePath(); } @Override public String toString() { return artifact.toString(); } }