org_scala_tools_maven_dependency.StringUtil Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of maven-scala-plugin Show documentation
Show all versions of maven-scala-plugin Show documentation
The maven-scala-plugin is used for compiling/testing/running/documenting scala code in maven.
package org_scala_tools_maven_dependency;
import org.apache.maven.artifact.Artifact;
/**
* Utilities for making Error messages.
*/
public class StringUtil {
/**
* Creates a human-readable string for an artifact.
* @param artifact
* @return
*/
public static String makeArtifactNameString(Artifact artifact) {
//TODO - Handle version ranges...
if(artifact == null) {
return "";
}
return artifact.getGroupId() + ":" + artifact.getArtifactId() + ":" + artifact.getVersion();
}
}