Skip to content

Commit f2c8234

Browse files
committed
HBX-2910: Make sure that the Exporter classes needed by plugin 'org.hibernate.eclipse.console' are visible and available
- Handle the case for 'org.hibernate.tool.hbm2x.DocExporter' Signed-off-by: Koen Aers <[email protected]>
1 parent 8cd2f2e commit f2c8234

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
package org.hibernate.tool.hbm2x;
2+
3+
public class DocExporter extends org.hibernate.tool.internal.export.doc.DocExporter {}

jbt/src/test/java/org/hibernate/tool/hbm2x/ExportersPresenceTest.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,15 @@ public void testQueryExporter() {
8484
}
8585
}
8686

87+
@Test
88+
public void testDocExporter() {
89+
try {
90+
ClassLoader cl = getClass().getClassLoader();
91+
Class<?> docExporterClass = cl.loadClass("org.hibernate.tool.hbm2x.DocExporter");
92+
assertNotNull(docExporterClass);
93+
} catch (Throwable t) {
94+
fail(t);
95+
}
96+
}
97+
8798
}

0 commit comments

Comments
 (0)