Created
July 25, 2011 23:09
-
-
Save dcbriccetti/1105497 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
object MyBuild extends Build { | |
import BuildSettings._ | |
val custom = TaskKey[Unit]("custom", "Does custom processing") | |
val customTask = custom := { | |
Process("./a-script.sh %s".format(warFilePath), "a directory") ! | |
} | |
} |
Thanks for your help, Gerolf!
Not a problem at all. Glad to help out a fellow scalarazzi ;)
On Wed, Jul 27, 2011 at 12:02 AM, dcbriccetti < ***@***.***>wrote:
Thanks for your help, Gerolf!
##
Reply to this email directly or view it on GitHub:
https://gist.github.com/1105497
##
Gerolf Seitz
twitter: @gersei
code: github.com/gseitz
blog: www.gerolfseitz.com
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here's what i could come up with in 5 quick minutes. If you run this with sbt, you should have a "my-task" available in the sbt shell that runs "ls -la " with the war file:
edit: github swallowed the $lessthan characters
edit2: gave up, please look at my fork: https://gist.github.com/1105498