chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1000865 - /incubator/chemistry/opencmis-swingclient/trunk/src/main/java/org/apache/chemistry/opencmis/swingclient/ClientFrame.java
Date Fri, 24 Sep 2010 13:34:26 GMT
Author: fmui
Date: Fri Sep 24 13:34:26 2010
New Revision: 1000865

URL: http://svn.apache.org/viewvc?rev=1000865&view=rev
Log:
using the classloader of the client in the console avoids ClassNotFound exceptions in scripts

Modified:
    incubator/chemistry/opencmis-swingclient/trunk/src/main/java/org/apache/chemistry/opencmis/swingclient/ClientFrame.java

Modified: incubator/chemistry/opencmis-swingclient/trunk/src/main/java/org/apache/chemistry/opencmis/swingclient/ClientFrame.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/opencmis-swingclient/trunk/src/main/java/org/apache/chemistry/opencmis/swingclient/ClientFrame.java?rev=1000865&r1=1000864&r2=1000865&view=diff
==============================================================================
--- incubator/chemistry/opencmis-swingclient/trunk/src/main/java/org/apache/chemistry/opencmis/swingclient/ClientFrame.java
(original)
+++ incubator/chemistry/opencmis-swingclient/trunk/src/main/java/org/apache/chemistry/opencmis/swingclient/ClientFrame.java
Fri Sep 24 13:34:26 2010
@@ -278,9 +278,10 @@ public class ClientFrame extends JFrame 
         try {
             setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
 
-            Console console = new Console();
+            Console console = new Console(this.getClass().getClassLoader());
             console.setVariable("session", model.getClientSession().getSession());
             console.setVariable("binding", model.getClientSession().getSession().getBinding());
+            
             console.run();
 
             console.getInputArea().setText(readScript(path));



Mime
View raw message