Class XmlModuleDescriptorUpdater
java.lang.Object
org.apache.ivy.plugins.parser.xml.XmlModuleDescriptorUpdater
Used 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 ClassesModifier and TypeClassDescriptionprotected static class
protected static class
protected static interface
Prints a descriptor item's XML representation -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic void
update
(InputStream in, Resource res, File destFile, UpdateOptions options) static void
update
(URL srcURL, 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 void
update
(URL inStreamCtx, InputStream inStream, OutputStream outStream, UpdateOptions options) static void
update
(URL srcURL, OutputStream destFile, UpdateOptions options)
-
Field Details
-
LINE_SEPARATOR
-
-
Method Details
-
update
public static void update(URL srcURL, File destFile, UpdateOptions options) throws IOException, SAXException used 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:
IOException
- if something goes wrongSAXException
- if something goes wrong
-
update
public static void update(URL srcURL, OutputStream destFile, UpdateOptions options) throws IOException, SAXException - Throws:
IOException
SAXException
-
update
public static void update(InputStream in, Resource res, File destFile, UpdateOptions options) throws IOException, SAXException - Throws:
IOException
SAXException
-
update
public static void update(URL inStreamCtx, InputStream inStream, OutputStream outStream, UpdateOptions options) throws IOException, SAXException - Throws:
IOException
SAXException
-