diff --git a/ivy/ArtifactName.scala b/ivy/ArtifactName.scala new file mode 100644 index 000000000..a4adef5cd --- /dev/null +++ b/ivy/ArtifactName.scala @@ -0,0 +1,16 @@ +/* sbt -- Simple Build Tool + * Copyright 2011 Mark Harrah + */ +package sbt + +final case class ArtifactName(base: String, version: String, config: String, tpe: String, ext: String) +object ArtifactName +{ + def show(name: ArtifactName) = + { + import name._ + val confStr = if(config.isEmpty || config == "compile") "" else "-" + config + val tpeStr = if(tpe.isEmpty) "" else "-" + tpe + base + "-" + version + confStr + tpeStr + "." + ext + } +} \ No newline at end of file