Skip to content

Commit

Permalink
Merge pull request scala#896 from dotty-staging/gitignore
Browse files Browse the repository at this point in the history
Fix scala#895: Maintain keep file during bootstrap
  • Loading branch information
odersky committed Oct 31, 2015
2 parents c5fedba + 03bf490 commit 08e8802
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,8 @@ classes/
tests/partest-generated/
tests/locks/
/test-classes/


# Ignore output files but keep the directory
out/
!out/.keep
2 changes: 2 additions & 0 deletions test/dotc/build.scala
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ object build extends tests {
def main(args: Array[String]): Unit = {
println("------------ Building dotty ------------")
deleteFilesInFolder(new File(defaultOutputDir)) // clear previous output
val keepFile = new File(defaultOutputDir + ".keep")
keepFile.createNewFile()
dotty // build output dir
val p = Runtime.getRuntime.exec(Array("jar", "cf", "dotty.jar", "-C", "out", "."))
p.waitFor()
Expand Down

0 comments on commit 08e8802

Please sign in to comment.