Navigation Menu

Skip to content

Commit

Permalink
Fix a bug exposed by the update to tip of Ioke and JDK 7 where I was …
Browse files Browse the repository at this point in the history
…trying to operate on a nonsensical path.
  • Loading branch information
flaviusb committed Jul 21, 2011
1 parent e45a3ab commit bc11a67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion genx.ik
Expand Up @@ -6,7 +6,7 @@ GenX = Origin mimic do(
baseDir = "#{System currentWorkingDirectory}/"
writeOut = method(fname, contents, base: baseDir,
if(FileSystem exists?(base + fname), FileSystem removeFile!(base + fname))
unless(FileSystem exists?(FileSystem parentOf(fname)), Shell out("mkdir", "-p", FileSystem parentOf(fname)))
unless(FileSystem exists?(FileSystem parentOf(base + fname)), Shell out("mkdir", "-p", FileSystem parentOf(base + fname)))
FileSystem withOpenFile(base + fname, fn(out, out println(contents))))
built = []
baseURI = ""
Expand Down

0 comments on commit bc11a67

Please sign in to comment.