Skip to content

Commit

Permalink
Create output directory before compiling.
Browse files Browse the repository at this point in the history
  • Loading branch information
espenhw committed Mar 19, 2009
1 parent 2d63f9a commit b38023c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/groovy/org/grumblesmurf/malabar/Compiler.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,13 @@ class Compiler
output = project.testClassesDirectory
classpath = project.testClasspath
}
(output as File).mkdirs()

JavaCompiler compiler = ToolProvider.getSystemJavaCompiler();
StandardJavaFileManager fileManager =
compiler.getStandardFileManager(null, null, Charset.forName("UTF-8"));
Iterable<? extends JavaFileObject> compilationUnits =
fileManager.getJavaFileObjectsFromStrings(Arrays.asList(file));
fileManager.getJavaFileObjectsFromStrings([file]);
JavaCompiler.CompilationTask task =
compiler.getTask(Utils.getOut(), fileManager, null,
["-cp", classpath.asClassPath(),
Expand Down

0 comments on commit b38023c

Please sign in to comment.