From 48f9fdbdb2dd20f071bc3fc44e30ce14bba513e5 Mon Sep 17 00:00:00 2001 From: Mark Harrah Date: Thu, 10 Feb 2011 08:16:07 -0500 Subject: [PATCH] package, package-doc, package-src --- ivy/ArtifactName.scala | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 ivy/ArtifactName.scala 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