forked from NetLogo/NetLogo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclassycle.sbt
More file actions
19 lines (17 loc) · 746 Bytes
/
classycle.sbt
File metadata and controls
19 lines (17 loc) · 746 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import scala.sys.process.Process
val classycle = taskKey[File](
"run Classycle and display a dependency report")
classycle := {
val _ = (compile in Compile).value // run it, ignore result
Process("mkdir -p target/classycle").!
Process("cp -f project/classycle/reportXMLtoHTML.xsl target/classycle").!
Process("rm -rf target/classycle/images").!
Process("cp -rp project/classycle/images target/classycle/images").!
_root_.classycle.Analyser.main(
Array(
"-xmlFile=target/classycle/classycle.xml",
"-mergeInnerClasses",
(classDirectory in Compile).value.getAbsolutePath.toString))
Process("open -a Safari target/classycle/classycle.xml").!
baseDirectory.value / "target" / "classycle" / "classycle.xml"
}