forge / plugin-hibersap

Hibersap Plugin
GNU Lesser General Public License v3.0
8 stars 12 forks source link

Check for JCo dependency in lokal repo #13

Open mxsb opened 12 years ago

mxsb commented 12 years ago

Check for JCo dependency in lokal repo at installation or usage and give the user a hint that this dependency is needed.

gastaldi commented 11 years ago

You can use the following code to check if a dependency exists

DependencyBuilder dependency = DependencyBuilder.create("org.hibersap:hibersap-jco");
boolean hasDep = getProject().getFacet(DependencyFacet.class).hasDirectDependency(dependency);
mxsb commented 11 years ago

Thanks for the hint, but I want to do this before the plugin is installed. The plugin itself uses sap jco as dependency and won't work if its not in the local repository