Skip to content

Commit 08e8802

Browse files
committed
Merge pull request #896 from dotty-staging/gitignore
Fix #895: Maintain keep file during bootstrap
2 parents c5fedba + 03bf490 commit 08e8802

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,8 @@ classes/
3030
tests/partest-generated/
3131
tests/locks/
3232
/test-classes/
33+
34+
35+
# Ignore output files but keep the directory
36+
out/
37+
!out/.keep

test/dotc/build.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ object build extends tests {
2121
def main(args: Array[String]): Unit = {
2222
println("------------ Building dotty ------------")
2323
deleteFilesInFolder(new File(defaultOutputDir)) // clear previous output
24+
val keepFile = new File(defaultOutputDir + ".keep")
25+
keepFile.createNewFile()
2426
dotty // build output dir
2527
val p = Runtime.getRuntime.exec(Array("jar", "cf", "dotty.jar", "-C", "out", "."))
2628
p.waitFor()

0 commit comments

Comments
 (0)