Skip to content

Commit

Permalink
missed some plumbing for compilation timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
mat authored and mat committed Oct 14, 2012
1 parent 790b576 commit 5ec5769
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import java.util.Collections;
import java.util.Map;

import com.sandwich.koan.ApplicationSettings;
import com.sandwich.koan.cmdline.CommandLineArgument;
import com.sandwich.koan.cmdline.CommandLineArgumentRunner;
import com.sandwich.koan.constant.ArgumentType;
Expand All @@ -29,6 +30,7 @@ public void fileSaved(File file) {
FileCompiler.compile(file,
new File(DirectoryManager.getBinDir()),
listener,
ApplicationSettings.getFileCompilationTimeoutInMs(),
new String[]{DirectoryManager.injectFileSystemSeparators(DirectoryManager.getProjectLibraryDir(), "koans.jar")});
DynamicClassLoader.remove(FileCompiler.sourceToClass(
DirectoryManager.getSourceDir(), DirectoryManager.getBinDir(), file).toURI().toURL());
Expand Down

0 comments on commit 5ec5769

Please sign in to comment.