db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcai...@apache.org
Subject svn commit: r1130399 - /db/jdo/trunk/exectck/src/main/java/org/apache/jdo/exectck/Enhance.java
Date Thu, 02 Jun 2011 04:11:58 GMT
Author: mcaisse
Date: Thu Jun  2 04:11:58 2011
New Revision: 1130399

URL: http://svn.apache.org/viewvc?rev=1130399&view=rev
Log:
JDO-647 - Invoke JDOHelper.getEnhancer with loader argument to provide classpath.

Modified:
    db/jdo/trunk/exectck/src/main/java/org/apache/jdo/exectck/Enhance.java

Modified: db/jdo/trunk/exectck/src/main/java/org/apache/jdo/exectck/Enhance.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/exectck/src/main/java/org/apache/jdo/exectck/Enhance.java?rev=1130399&r1=1130398&r2=1130399&view=diff
==============================================================================
--- db/jdo/trunk/exectck/src/main/java/org/apache/jdo/exectck/Enhance.java (original)
+++ db/jdo/trunk/exectck/src/main/java/org/apache/jdo/exectck/Enhance.java Thu Jun  2 04:11:58
2011
@@ -203,10 +203,11 @@ public class Enhance extends AbstractMoj
                     }
                     loader = new URLClassLoader(cpList.toArray(classPathURLs),
                              getClass().getClassLoader());
+//                    Utilities.printClasspath(loader);
                 } catch (MalformedURLException ex) {
                     Logger.getLogger(Enhance.class.getName()).log(Level.SEVERE, null, ex);
                 }
-                JDOEnhancer enhancer = JDOHelper.getEnhancer();
+                JDOEnhancer enhancer = JDOHelper.getEnhancer(loader);
                 enhancer.setVerbose(true);
                 String[] classArr = classes.toArray(classArray);
                 enhancer.addClasses(classArr);



Mime
View raw message