Author: antelder
Date: Sun Mar 16 01:47:22 2008
New Revision: 637564

URL: http://svn.apache.org/viewvc?rev=637564&view=rev
Log:
With hindsight just suppressing the warning message is a simpler fix for 
TUSCANY-1950

Modified:
    
incubator/tuscany/java/sca/modules/implementation-script/src/main/java/org/apache/tuscany/sca/implementation/script/ScriptInvokerFactory.java

Modified: 
incubator/tuscany/java/sca/modules/implementation-script/src/main/java/org/apache/tuscany/sca/implementation/script/ScriptInvokerFactory.java
URL: 
http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/implementation-script/src/main/java/org/apache/tuscany/sca/implementation/script/ScriptInvokerFactory.java?rev=637564&r1=637563&r2=637564&view=diff
==============================================================================
--- 
incubator/tuscany/java/sca/modules/implementation-script/src/main/java/org/apache/tuscany/sca/implementation/script/ScriptInvokerFactory.java
 (original)
+++ 
incubator/tuscany/java/sca/modules/implementation-script/src/main/java/org/apache/tuscany/sca/implementation/script/ScriptInvokerFactory.java
 Sun Mar 16 01:47:22 2008
@@ -19,8 +19,6 @@
 
 package org.apache.tuscany.sca.implementation.script;
 
-import java.io.File;
-import java.io.IOException;
 import java.io.StringReader;
 
 import javax.script.Invocable;
@@ -151,18 +149,12 @@
     }
 
     /**
-     * If the cachedir or python home properties are not set then create a 
temp folder for cachedir
+     * If the python home isn't set then let Tuscany suppress messages other 
than errors
      * See TUSCANY-1950
      */
     protected void pythonCachedir() {
-        try {
-            if (System.getProperty("python.cachedir") == null || 
System.getProperty("python.home") == null) {
-                File cachedir = new File(File.createTempFile("tuscany", 
"sca").getParentFile(), "tuscany.python.cachedir");
-                cachedir.mkdir();
-                System.setProperty("python.cachedir", 
cachedir.getCanonicalPath());
+            if (System.getProperty("python.home") == null) {
+              System.setProperty("python.verbose", "error");
             }
-        } catch (IOException e) {
-            // ignore
-        }
     }
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to