Class XmlModuleDescriptorUpdater
- java.lang.Object
-
- org.apache.ivy.plugins.parser.xml.XmlModuleDescriptorUpdater
-
public final class XmlModuleDescriptorUpdater extends java.lang.ObjectUsed to update ivy files. Uses ivy file as source and not ModuleDescriptor to preserve as much as possible the original syntax
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classXmlModuleDescriptorUpdater.ConfigurationPrinterprotected static classXmlModuleDescriptorUpdater.DependencyPrinterprotected static interfaceXmlModuleDescriptorUpdater.ItemPrinterPrints a descriptor item's XML representation
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringLINE_SEPARATOR
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidupdate(java.io.InputStream in, Resource res, java.io.File destFile, UpdateOptions options)static voidupdate(java.net.URL srcURL, java.io.File destFile, UpdateOptions options)used to copy a module descriptor xml file (also known as ivy file) and update the revisions of its dependencies, its status and revisionstatic voidupdate(java.net.URL inStreamCtx, java.io.InputStream inStream, java.io.OutputStream outStream, UpdateOptions options)static voidupdate(java.net.URL srcURL, java.io.OutputStream destFile, UpdateOptions options)
-
-
-
Method Detail
-
update
public static void update(java.net.URL srcURL, java.io.File destFile, UpdateOptions options) throws java.io.IOException, org.xml.sax.SAXExceptionused to copy a module descriptor xml file (also known as ivy file) and update the revisions of its dependencies, its status and revision- Parameters:
srcURL- the url of the source module descriptor filedestFile- The file to which the updated module descriptor should be outputoptions- UpdateOptions- Throws:
java.io.IOException- if something goes wrongorg.xml.sax.SAXException- if something goes wrong
-
update
public static void update(java.net.URL srcURL, java.io.OutputStream destFile, UpdateOptions options) throws java.io.IOException, org.xml.sax.SAXException- Throws:
java.io.IOExceptionorg.xml.sax.SAXException
-
update
public static void update(java.io.InputStream in, Resource res, java.io.File destFile, UpdateOptions options) throws java.io.IOException, org.xml.sax.SAXException- Throws:
java.io.IOExceptionorg.xml.sax.SAXException
-
update
public static void update(java.net.URL inStreamCtx, java.io.InputStream inStream, java.io.OutputStream outStream, UpdateOptions options) throws java.io.IOException, org.xml.sax.SAXException- Throws:
java.io.IOExceptionorg.xml.sax.SAXException
-
-