Package de.saumya.mojo.gems
Interface MavenArtifactConverter
- All Known Implementing Classes:
DefaultMavenArtifactConverter
public interface MavenArtifactConverter
This is the single entry point into the Maven artifact to Ruby Gem converter.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleancanConvert(MavenArtifact artifact) Returns is the artifact convertable safely into Gem.createGemFromArtifact(MavenArtifact artifact, File target) Creates a valid Ruby Gem, and returns File pointing to the result.createGemspecFromArtifact(MavenArtifact artifact, File target) createGemStubFromArtifact(MavenArtifact artifact, File target) Creates a valid Ruby Gem, and returns File pointing to the result.createSpecification(MavenArtifact artifact) Creates a Gem::Specification (the equivalent JavaBeans actually) filled up properly based on informaton from POM.getGemFileName(MavenArtifact artifact) Returns the "regular" gem filename, as it is expected this artifact to be called as Gem.
-
Field Details
-
GEMNAME_PREFIX
- See Also:
-
-
Method Details
-
canConvert
Returns is the artifact convertable safely into Gem.- Parameters:
pom-- Returns:
- true if yes.
-
getGemFileName
Returns the "regular" gem filename, as it is expected this artifact to be called as Gem.- Parameters:
pom-- Returns:
-
createSpecification
Creates a Gem::Specification (the equivalent JavaBeans actually) filled up properly based on informaton from POM. The "better" POM is, the getter is gemspec. For best results, fed in interpolated POMs!- Parameters:
artifact-- Returns:
-
createGemspecFromArtifact
- Throws:
IOException
-
createGemStubFromArtifact
Creates a valid Ruby Gem, and returns File pointing to the result.- Parameters:
artifact- the artifact to gemize (without data only gemspec)target- where to save Gem file. If null, it will be created next to artifact- Returns:
- Throws:
IOException
-
createGemFromArtifact
Creates a valid Ruby Gem, and returns File pointing to the result.- Parameters:
artifact- the artifact to gemizetarget- where to save Gem file. If null, it will be created next to artifact- Returns:
- Throws:
IOException
-