package, package-doc, package-src

This commit is contained in:
Mark Harrah 2011-02-10 08:16:07 -05:00
parent 91b95ee23a
commit 48f9fdbdb2
1 changed files with 16 additions and 0 deletions

16
ivy/ArtifactName.scala Normal file
View File

@ -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
}
}