-
-
Save gseitz/1105498 to your computer and use it in GitHub Desktop.
Trying to get war file name from SBT
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sbt._ | |
import Keys._ | |
import com.github.siasia.{WebPlugin=>WP} | |
object MyBuild extends Build { | |
val myTask = TaskKey[Unit]("my-task") | |
lazy val myProject = Project("webproject", file("."), settings =Defaults.defaultSettings ++ | |
WP.webSettings ++ Seq[Setting[_]]( | |
myTask <<= (streams, target, scalaVersion, projectID, artifact in WP.packageWar) map ( | |
(out, t, sv, p, a) => "ls -la " + new File(t, Artifact.artifactName(sv, p, a)).getAbsolutePath ! out.log) | |
)) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment