/** * Write the component descriptors to the file. * * @param components * @param file * @throws SCRDescriptorException */ public static void write(Components components, File file, boolean isScrPrivateFile) throws SCRDescriptorException { try { generateXML(components, IOUtils.getSerializer(file), isScrPrivateFile); } catch (TransformerException e) { throw new SCRDescriptorException("Unable to write xml", file.toString(), 0, e); } catch (SAXException e) { throw new SCRDescriptorException("Unable to generate xml", file.toString(), 0, e); } catch (IOException e) { throw new SCRDescriptorException("Unable to write xml", file.toString(), 0, e); } }