Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(99)

Unified Diff: compiler/java/com/google/dart/compiler/backend/doc/DartDocumentationVisitor.java

Issue 9178038: Issue 1177: Non-existant documentation directory throws (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiler/java/com/google/dart/compiler/backend/doc/DartDocumentationVisitor.java
diff --git a/compiler/java/com/google/dart/compiler/backend/doc/DartDocumentationVisitor.java b/compiler/java/com/google/dart/compiler/backend/doc/DartDocumentationVisitor.java
index d2bda84f441ec348d0c27fd6f1dc8fe03205dac3..b80af3ff2239fbb5ae03f7b9bc067820ea6b66de 100644
--- a/compiler/java/com/google/dart/compiler/backend/doc/DartDocumentationVisitor.java
+++ b/compiler/java/com/google/dart/compiler/backend/doc/DartDocumentationVisitor.java
@@ -623,9 +623,10 @@ class DartDocumentationVisitor extends DartNodeTraverser<Void> {
if (isPrivateName(name)) {
return;
}
- String fileName = outputDirectory + File.separator + name + ".html";
try {
- stream = new PrintStream(fileName);
+ File output = new File(outputDirectory, name + ".html");
+ output.getParentFile().mkdirs();
+ stream = new PrintStream(output);
} catch (FileNotFoundException e) {
throw new RuntimeException(e);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698