Webmodule Settings Permanently deleted user Created March 03, 2005 21:04 is there a possibility to manipulate the webmodule settings by openapi?especially im interested in the table "modules and libraries to package".thanks in advancecK
i finally found a way of doing the desired stuff:
private void configureJ2eePackaging(final Module module, final Library newLib,
final String libName) {
J2EEModuleProperties j2eeProperties = J2EEModuleProperties.getInstance(module);
if (j2eeProperties != null) {
J2EEModulePropertiesEx exProperties = (J2EEModulePropertiesEx) j2eeProperties;
LibraryLink[] packagings = exProperties.getContainingLibraries();
List newPackagings = new ArrayList(Arrays.asList(packagings));
ContainerElement element = new LibraryLinkImpl(newLib, module);
J2EEPackagingMethod deployMethod = fConfig.getPackagingMethod();
element.setPackagingMethod(deployMethod);
element.setURI("/WEB-INF/lib/" + libName + ".jar");
newPackagings.add(element);
exProperties.setElements((ContainerElement[]) newPackagings.toArray(new
ContainerElement[newPackagings.size()]));
}
}
the real question now is: is this allowed and how is this done with idea
4.5.4?
thanks in advance