Author: challngr
Date: Thu Apr 25 18:42:31 2013
New Revision: 1475894

URL: http://svn.apache.org/r1475894
Log:
UIMA-2837
Pre-create the web server's JSP compilation directory at boot.

Modified:
    uima/sandbox/uima-ducc/trunk/src/main/admin/ducc.py

Modified: uima/sandbox/uima-ducc/trunk/src/main/admin/ducc.py
URL: 
http://svn.apache.org/viewvc/uima/sandbox/uima-ducc/trunk/src/main/admin/ducc.py?rev=1475894&r1=1475893&r2=1475894&view=diff
==============================================================================
--- uima/sandbox/uima-ducc/trunk/src/main/admin/ducc.py (original)
+++ uima/sandbox/uima-ducc/trunk/src/main/admin/ducc.py Thu Apr 25 18:42:31 2013
@@ -109,6 +109,9 @@ class Ducc(DuccUtil):
             if ( c == 'ws' ):
                 #see if the ws jsp compilation directory is specified
                 compdir = 
self.ducc_properties.get('ducc.ws.jsp.compilation.directory')
+                if ( not os.path.exists(compdir) ):
+                    os.makedirs(compdir)
+
                 if ( compdir != None ):
                     jvm_opts.append('-Djava.io.tmpdir=' + compdir)
 


Reply via email to