Webmodule Settings

is there a possibility to manipulate the webmodule settings by openapi?
especially im interested in the table "modules and libraries to package".

thanks in advance

cK


1 comment
Comment actions Permalink

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

0

Please sign in to leave a comment.