Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fullClasspath in Runtime <<= (fullClasspath in Runtime, classDirectory in Compile) map { (cp, classes) => (cp.files map {
- f: File =>
- if (f.getName == classes.getName) {
- val result = new File(f.getParent + File.separator + "transformed-" + f.getName)
- if (result.exists) result else f
- } else f
- }).classpath }
- fullClasspath in Runtime := ...
- fullClasspath in Runtime := (fullClasspath in Runtime).value.files.map {
- f: File =>
- if (f.getName == (classDirectory in Compile).value.getName) {
- val result = new File(f.getParent + File.separator + "transformed-" + f.getName)
- if (result.exists) result else f
- } else f
- }.classpath
- % sbt
- > show runtime:fullClasspath
- [info] List(Attributed(.../target/classes),
- Attributed(.../jars/scala-library-2.10.4.jar),
- Attributed(.../jars/asm-all-3.3.1.jar))
- > set fullClasspath in Runtime := (fullClasspath in Runtime).value.files.filterNot(_.getName.containsSlice("asm")).classpath
- > show runtime:fullClasspath
- [info] List(Attributed(.../target/classes),
- Attributed(.../jars/scala-library-2.10.4.jar))
- set fullClasspath in Runtime <<= (fullClasspath in Runtime) map
- {_.files.filterNot(_.getName.containsSlice("asm")).classpath}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement