public interface MavenArtifactConverter
| Modifier and Type | Field and Description |
|---|---|
static String |
GEMNAME_PREFIX |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canConvert(MavenArtifact artifact)
Returns is the artifact convertable safely into Gem.
|
GemArtifact |
createGemFromArtifact(MavenArtifact artifact,
File target)
Creates a valid Ruby Gem, and returns File pointing to the result.
|
File |
createGemspecFromArtifact(MavenArtifact artifact,
File target) |
GemArtifact |
createGemStubFromArtifact(MavenArtifact artifact,
File target)
Creates a valid Ruby Gem, and returns File pointing to the result.
|
GemSpecification |
createSpecification(MavenArtifact artifact)
Creates a Gem::Specification (the equivalent JavaBeans actually) filled
up properly based on informaton from POM.
|
String |
getGemFileName(MavenArtifact artifact)
Returns the "regular" gem filename, as it is expected this artifact to be
called as Gem.
|
static final String GEMNAME_PREFIX
boolean canConvert(MavenArtifact artifact)
pom - String getGemFileName(MavenArtifact artifact)
pom - GemSpecification createSpecification(MavenArtifact artifact)
artifact - File createGemspecFromArtifact(MavenArtifact artifact, File target) throws IOException
IOExceptionGemArtifact createGemStubFromArtifact(MavenArtifact artifact, File target) throws IOException
artifact - the artifact to gemize (without data only gemspec)target - where to save Gem file. If null, it will be created next to
artifactIOExceptionGemArtifact createGemFromArtifact(MavenArtifact artifact, File target) throws IOException
artifact - the artifact to gemizetarget - where to save Gem file. If null, it will be created next to
artifactIOExceptionCopyright © 2016. All Rights Reserved.