Changeset 26005

Show
Ignore:
Timestamp:
24.07.2012 09:33:19 (7 years ago)
Author:
sjm84
Message:

If the log dir does not exist then create it

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/build/GS2PerlConstructor.java

    r25635 r26005  
    295295            // Captures the std err of a program and pipes it into 
    296296            // std in of java 
     297             
     298            File logDir = new File(GSFile.collectDir(this.site_home) + File.separator + this.collection_name + File.separator + "log"); 
     299            if(!logDir.exists()) 
     300            { 
     301                logDir.mkdir(); 
     302            } 
    297303 
    298304            BufferedWriter bw = new BufferedWriter(new FileWriter(GSFile.collectDir(this.site_home) + File.separator + this.collection_name + File.separator + "log" + File.separator + "build_log." + (System.currentTimeMillis()) + ".txt"));