Create tmpdir if it doesn't exist.

git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@4936 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
hanna 2011-01-05 03:07:11 +00:00
parent 0982d35f5b
commit 7cdaffbe5c
1 changed files with 11 additions and 0 deletions

View File

@ -196,6 +196,9 @@ public class GenomeAnalysisEngine {
// our microscheduler, which is in charge of running everything
MicroScheduler microScheduler = createMicroscheduler();
// create temp directories as necessary
initializeTempDirectory();
// create the output streams "
initializeOutputStreams(microScheduler.getOutputTracker());
@ -473,6 +476,14 @@ public class GenomeAnalysisEngine {
return walker instanceof ReadWalker;
}
/**
* Create the temp directory if it doesn't exist.
*/
private void initializeTempDirectory() {
File tempDir = new File(System.getProperty("java.io.tmpdir"));
tempDir.mkdirs();
}
/**
* Initialize the output streams as specified by the user.
*