Created
January 29, 2014 15:36
-
-
Save raymanoz/8690461 to your computer and use it in GitHub Desktop.
Include action to be run after compile in an sbt build
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
yourTask <<= (fullClasspath in Runtime) map {classpath => | |
val loader: ClassLoader = ClasspathUtilities.toLoader(classpath.map(_.data).map(_.getAbsoluteFile)) | |
loader.loadClass("your.class.Here").newInstance() | |
} triggeredBy(compile in Compile) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment