mirror of
https://github.com/sbt/sbt.git
synced 2026-08-22 06:07:24 +02:00
package, package-doc, package-src
This commit is contained in:
@@ -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
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user