Skip to content

Fix #895: Maintain keep file during bootstrap #896

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 31, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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