From 459ac4001e4394cee368816441ba2e5a4290512d Mon Sep 17 00:00:00 2001 From: heshan Date: Fri, 4 Jun 2010 14:30:37 +0000 Subject: [PATCH] Refactored code. git-svn-id: http://svn.wso2.org/repos/wso2/trunk/wsf@67608 a5903396-d722-0410-b921-86c7d4935375 --- .../java/org/wso2/wsf/jython/deployer/JPythonServer.java | 3 +-- .../wso2/wsf/jython/messagereceiver/PythonScriptEngine.java | 5 ++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/jython/server/core/src/main/java/org/wso2/wsf/jython/deployer/JPythonServer.java b/jython/server/core/src/main/java/org/wso2/wsf/jython/deployer/JPythonServer.java index a11b728d1..f89546ab7 100644 --- a/jython/server/core/src/main/java/org/wso2/wsf/jython/deployer/JPythonServer.java +++ b/jython/server/core/src/main/java/org/wso2/wsf/jython/deployer/JPythonServer.java @@ -31,7 +31,6 @@ public static void main(String[] args) throws Exception{ ConfigurationContextFactory.createConfigurationContextFromFileSystem(repolocation, axis2XmlFilePath); SimpleHTTPServer server = new SimpleHTTPServer(configCtx ,8080); server.start(); - System.out.println(" simpleHTTP server started !"); - + System.out.println(" simpleHTTP server started !"); } } diff --git a/jython/server/core/src/main/java/org/wso2/wsf/jython/messagereceiver/PythonScriptEngine.java b/jython/server/core/src/main/java/org/wso2/wsf/jython/messagereceiver/PythonScriptEngine.java index 95f9b0faf..67bae5605 100644 --- a/jython/server/core/src/main/java/org/wso2/wsf/jython/messagereceiver/PythonScriptEngine.java +++ b/jython/server/core/src/main/java/org/wso2/wsf/jython/messagereceiver/PythonScriptEngine.java @@ -53,10 +53,9 @@ public static Object invoke(String method, String reader, Object args[]) { //PyFloat, PyInteger, PyLong , PyString, PyList, PyDictionary, PyTuple, PyArray, PyComplex, String s4 = "" + method + "(" + str + ")"; if (log.isDebugEnabled()) { - log.debug("String to be evaluated -->" + s4); + log.debug("String to be evaluated : " + s4); } - PyObject retObj = interp.eval(s4); - return retObj; + return interp.eval(s4); }