private static void loadExplodedDirectoryExtension(JpsModule module, Element rootModelComponent) { final Element exploded = rootModelComponent.getChild(EXPLODED_TAG); if (exploded != null) { final ExplodedDirectoryModuleExtension extension = getService().getOrCreateExplodedDirectoryExtension(module); extension.setExcludeExploded(rootModelComponent.getChild(EXCLUDE_EXPLODED_TAG) != null); extension.setExplodedUrl(exploded.getAttributeValue(URL_ATTRIBUTE)); } }
private static void saveExplodedDirectoryExtension(JpsModule module, Element rootModelElement) { ExplodedDirectoryModuleExtension extension = getService().getExplodedDirectoryExtension(module); if (extension != null) { if (extension.isExcludeExploded()) { rootModelElement.addContent(0, new Element(EXCLUDE_EXPLODED_TAG)); } rootModelElement.addContent( 0, new Element(EXPLODED_TAG).setAttribute(URL_ATTRIBUTE, extension.getExplodedUrl())); } }