Class XmlModuleDescriptorWriter
java.lang.Object
org.apache.ivy.plugins.parser.xml.XmlModuleDescriptorWriter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static String
getConfs
(ModuleDescriptor md, Artifact artifact) private static String
listToPrefixedString
(String[] confs, String prefix) private static void
printAllExcludes
(ModuleDescriptor md, PrintWriter out) private static void
printAllMediators
(ModuleDescriptor md, PrintWriter out) protected static void
printConfiguration
(Configuration conf, PrintWriter out) private static void
private static void
printDependencies
(ModuleDescriptor md, PrintWriter out) protected static void
printDependency
(ModuleDescriptor md, DependencyDescriptor dep, PrintWriter out) private static void
printDependencyArtefacts
(ModuleDescriptor md, PrintWriter out, DependencyArtifactDescriptor[] depArtifacts) private static void
printDependencyExcludeRules
(ModuleDescriptor md, PrintWriter out, ExcludeRule[] excludes) private static void
printDependencyIncludeRules
(ModuleDescriptor md, PrintWriter out, IncludeRule[] includes) private static void
printExtraAttributes
(Map<String, String> extra, PrintWriter out, String prefix) Writes the specified Map containing the extra attributes to the given PrintWriter.private static void
printExtraAttributes
(ExtendableItem item, PrintWriter out, String prefix) Writes the extra attributes of the givenExtendableItem
to the given PrintWriter.private static void
printExtraInfoElement
(PrintWriter out, ExtraInfoHolder extraInfo, int indent) private static void
printInfoTag
(ModuleDescriptor md, PrintWriter out) private static void
printPublications
(ModuleDescriptor md, PrintWriter out) private static boolean
static void
write
(ModuleDescriptor md, File output) static void
write
(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 givenExtendableItem
to 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
-