Created
December 29, 2017 11:48
-
-
Save danslapman/a43b4811b18d0ae6ab6aa64049fa4581 to your computer and use it in GitHub Desktop.
Copy classes from alternative target
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
copyProbeClasses := { | |
val log = streams.value.log | |
val probeTarget = new File(crossTarget.value, "probe-classes") | |
(probeTarget ** "*" filter(_.isFile)).get.foreach { fl => | |
log.info("Copying " + fl.relativeTo(probeTarget).get.toString) | |
Files.copy(fl.toPath, new File((classDirectory in Compile).value, fl.relativeTo(probeTarget).get.toString).toPath, REPLACE_EXISTING) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment