Ignore:
Timestamp:
2012-07-24T09:33:19+12:00 (12 years ago)
Author:
sjm84
Message:

If the log dir does not exist then create it

File:
1 edited

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"));
Note: See TracChangeset for help on using the changeset viewer.