[
https://issues.jboss.org/browse/FORGE-308?page=com.atlassian.jira.plugin....
]
Lincoln Baxter III commented on FORGE-308:
------------------------------------------
It should also be possible to load the JARs directly in the plugin. This would be a
simpler solution. Simply create a new ClassLoader and ask it for the JARs.
Forge could bundle a utility for this:
{code}Class<?> clazz = ForgeLibApi.loadClass("my.jdbc.Driver");{code}
Need a way of supplying JARs to Plugins (e.g. Hibernate Tools)
---------------------------------------------------------------
Key: FORGE-308
URL:
https://issues.jboss.org/browse/FORGE-308
Project: Forge
Issue Type: Feature Request
Components: Plugin API, Usability
Affects Versions: 1.0.0.Beta2
Reporter: Lincoln Baxter III
You could (in theory) add a JAR to the plugin module where it is installed:
.forge/plugins/org/jboss/hibernate/forge/hibernate-tools-plugin/dependencies/1.0.0-SNAPSHOT-***
and also add that jar as a resource in the module.xml file
.forge/plugins/org/jboss/hibernate/forge/hibernate-tools-plugin/dependencies/1.0.0-SNAPSHOT-***/modules.xml
That should do it, but it's not easy. This needs to be streamlined
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira