You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by de...@apache.org on 2016/04/12 16:41:37 UTC

svn commit: r1738812 - /uima/sandbox/uima-ducc/trunk/src/main/admin/ducc.py

Author: degenaro
Date: Tue Apr 12 14:41:37 2016
New Revision: 1738812

URL: http://svn.apache.org/viewvc?rev=1738812&view=rev
Log:
UIMA-4755 DUCC Web Server (WS) must assure that compiled JSP's are viable

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=1738812&r1=1738811&r2=1738812&view=diff
==============================================================================
--- uima/sandbox/uima-ducc/trunk/src/main/admin/ducc.py (original)
+++ uima/sandbox/uima-ducc/trunk/src/main/admin/ducc.py Tue Apr 12 14:41:37 2016
@@ -197,10 +197,10 @@ 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 ):
+                    os.system("rm -rf %s" % compdir)
+                    os.makedirs(compdir)
                     jvm_opts.append('-Djava.io.tmpdir=' + compdir)
 
                 here = os.getcwd()