You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: eclipse/org.mybatis.generator.eclipse.ui/antsrc/org/mybatis/generator/eclipse/ui/ant/logging/AntLogFactory.java
Copy file name to clipboardExpand all lines: eclipse/org.mybatis.generator.eclipse.ui/antsrc/org/mybatis/generator/eclipse/ui/ant/logging/package-info.java
+9-2Lines changed: 9 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -19,8 +19,15 @@
19
19
* in the base MyBatis Generator code. We need to duplicate them in the Eclipse plugin Ant runner
20
20
* because of some complexities in plugin class loading.
21
21
* <p>
22
-
* We don't want the optional logging frameworks to always be on the plugin classpath. And the plugin
23
-
* classpath cannot be altered at runtime. And the plugin classloader is a parent of the Ant classloader.
22
+
* Classes in the antsupport JAR are loaded by the Ant classloader - which is a child of the plugin classloader.
23
+
*
24
+
* Only the Ant classloader will have the logging implementations that are added to the launch configuration
25
+
* classpath.
26
+
*
27
+
* Any class that uses one of the optional logging implementations must also be loaded by the Ant classloader.
28
+
* If we use the versions from the base library (loaded by the plugin classloader), they will not be able to see
29
+
* the implementation JARs.
30
+
*
24
31
* All of this combines to mean that we need the logging implementations that have optional dependencies
25
32
* to be loaded by the Ant classloader, rather than the plugin classloader - so we need them in this source
0 commit comments