aboutsummaryrefslogtreecommitdiff
path: root/compiler/test/dotc
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/test/dotc')
-rw-r--r--compiler/test/dotc/build.scala40
1 files changed, 0 insertions, 40 deletions
diff --git a/compiler/test/dotc/build.scala b/compiler/test/dotc/build.scala
deleted file mode 100644
index b1c8db7c7..000000000
--- a/compiler/test/dotc/build.scala
+++ /dev/null
@@ -1,40 +0,0 @@
-package dotc
-
-import java.io.File
-
-object build extends tests {
-
- private def deleteFilesInFolder(folder: File, deleteFolder: Boolean = false): Unit = {
- val files = folder.listFiles()
- if(files != null) { //some JVMs return null for empty dirs
- for(f <- files) {
- if(f.isDirectory) {
- deleteFilesInFolder(f, deleteFolder = true)
- } else {
- f.delete()
- }
- }
- }
- if(deleteFolder) folder.delete()
- }
-
- def clearOutput() = {
- deleteFilesInFolder(new File(defaultOutputDir)) // clear previous output
- val keepFile = new File(defaultOutputDir + ".keep")
- keepFile.createNewFile()
- }
-
- def main(args: Array[String]): Unit = {
- println("---------- Building bootstrapped dotty-lib ----------------------------------------------")
- clearOutput()
- dottyBootedLib
- val p1 = Runtime.getRuntime.exec(Array("jar", "cf", "dotty-lib.jar", "-C", "out", "."))
- p1.waitFor()
-
- println("---------- Building bootstrapped dotty depending on dotty-lib compiled by dotty ----------")
- clearOutput()
- dottyDependsOnBootedLib
- val p2 = Runtime.getRuntime.exec(Array("jar", "cf", "dotty.jar", "-C", "out", "."))
- p2.waitFor()
- }
-}