Package org.apache.maven.project
Class ExtensionDescriptorBuilder
- java.lang.Object
-
- org.apache.maven.project.ExtensionDescriptorBuilder
-
public class ExtensionDescriptorBuilder extends java.lang.ObjectCreates an extension descriptor from some XML stream.- Author:
- Benjamin Bentmann
-
-
Constructor Summary
Constructors Constructor Description ExtensionDescriptorBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExtensionDescriptorbuild(java.io.File extensionJar)Extracts the extension descriptor (if any) from the specified JAR file.ExtensionDescriptorbuild(java.io.InputStream is)java.lang.StringgetExtensionDescriptorLocation()
-
-
-
Method Detail
-
getExtensionDescriptorLocation
public java.lang.String getExtensionDescriptorLocation()
- Since:
- 3.3.0
-
build
public ExtensionDescriptor build(java.io.File extensionJar) throws java.io.IOException
Extracts the extension descriptor (if any) from the specified JAR file.- Parameters:
extensionJar- The JAR file or directory to extract the descriptor from, must not benull.- Returns:
- The extracted descriptor or
nullif no descriptor was found. - Throws:
java.io.IOException- If the descriptor is present but could not be parsed.
-
build
public ExtensionDescriptor build(java.io.InputStream is) throws java.io.IOException
- Throws:
java.io.IOException- Since:
- 3.3.0
-
-