Class XmlModuleDescriptorWriter
java.lang.Object
org.apache.ivy.plugins.parser.xml.XmlModuleDescriptorWriter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static StringgetConfs(ModuleDescriptor md, Artifact artifact) private static StringlistToPrefixedString(String[] confs, String prefix) private static voidprintAllExcludes(ModuleDescriptor md, PrintWriter out) private static voidprintAllMediators(ModuleDescriptor md, PrintWriter out) protected static voidprintConfiguration(Configuration conf, PrintWriter out) private static voidprivate static voidprintDependencies(ModuleDescriptor md, PrintWriter out) protected static voidprintDependency(ModuleDescriptor md, DependencyDescriptor dep, PrintWriter out) private static voidprintDependencyArtefacts(ModuleDescriptor md, PrintWriter out, DependencyArtifactDescriptor[] depArtifacts) private static voidprintDependencyExcludeRules(ModuleDescriptor md, PrintWriter out, ExcludeRule[] excludes) private static voidprintDependencyIncludeRules(ModuleDescriptor md, PrintWriter out, IncludeRule[] includes) private static voidprintExtraAttributes(Map<String, String> extra, PrintWriter out, String prefix) Writes the specified Map containing the extra attributes to the given PrintWriter.private static voidprintExtraAttributes(ExtendableItem item, PrintWriter out, String prefix) Writes the extra attributes of the givenExtendableItemto the given PrintWriter.private static voidprintExtraInfoElement(PrintWriter out, ExtraInfoHolder extraInfo, int indent) private static voidprintInfoTag(ModuleDescriptor md, PrintWriter out) private static voidprintPublications(ModuleDescriptor md, PrintWriter out) private static booleanstatic voidwrite(ModuleDescriptor md, File output) static voidwrite(ModuleDescriptor md, String licenseHeader, File output)
-
Constructor Details
-
XmlModuleDescriptorWriter
private XmlModuleDescriptorWriter()
-
-
Method Details
-
write
- Throws:
IOException
-
write
- Throws:
IOException
-
printDependencies
-
printDependency
protected static void printDependency(ModuleDescriptor md, DependencyDescriptor dep, PrintWriter out) -
printAllMediators
-
printAllExcludes
-
printDependencyExcludeRules
private static void printDependencyExcludeRules(ModuleDescriptor md, PrintWriter out, ExcludeRule[] excludes) -
printDependencyIncludeRules
private static void printDependencyIncludeRules(ModuleDescriptor md, PrintWriter out, IncludeRule[] includes) -
printDependencyArtefacts
private static void printDependencyArtefacts(ModuleDescriptor md, PrintWriter out, DependencyArtifactDescriptor[] depArtifacts) -
listToPrefixedString
-
printExtraAttributes
Writes the extra attributes of the givenExtendableItemto the given PrintWriter.- Parameters:
item- theExtendableItem, cannot be nullout- the writer to useprefix- the string to write before writing the attributes (if any)
-
printExtraAttributes
Writes the specified Map containing the extra attributes to the given PrintWriter.- Parameters:
extra- the extra attributes, can be nullout- the writer to useprefix- the string to write before writing the attributes (if any)
-
printPublications
-
printConfigurations
-
printConfiguration
-
printInfoTag
-
printExtraInfoElement
-
requireInnerInfoElement
-
getConfs
-