public class FeatureModelConverter extends Object
Modifier and Type | Class and Description |
---|---|
static class |
FeatureModelConverter.FeatureFileEntry |
Constructor and Description |
---|
FeatureModelConverter() |
Modifier and Type | Method and Description |
---|---|
static void |
convert(ModelPreprocessor.Environment env) |
static void |
convert(ModelPreprocessor.Environment env,
ModelPreprocessor.ProjectInfo info,
String defaultProvName) |
static void |
convertDirectories(String featuresDirectory,
org.apache.maven.project.MavenProject project,
String defaultProvName,
org.apache.sling.feature.builder.FeatureProvider fp) |
static org.apache.sling.feature.Feature |
getFeature(org.apache.sling.feature.ArtifactId id,
org.apache.maven.execution.MavenSession session,
org.apache.maven.project.MavenProject project,
org.apache.maven.artifact.handler.manager.ArtifactHandlerManager manager,
org.apache.maven.artifact.resolver.ArtifactResolver resolver) |
static String |
getOSGiVersion(String version) |
static String |
readFeatureFile(org.apache.maven.project.MavenProject project,
File file,
String suggestedClassifier)
Read the json file, minify it, add id if missing and replace variables
|
public static org.apache.sling.feature.Feature getFeature(org.apache.sling.feature.ArtifactId id, org.apache.maven.execution.MavenSession session, org.apache.maven.project.MavenProject project, org.apache.maven.artifact.handler.manager.ArtifactHandlerManager manager, org.apache.maven.artifact.resolver.ArtifactResolver resolver)
public static void convert(ModelPreprocessor.Environment env) throws org.apache.maven.MavenExecutionException
org.apache.maven.MavenExecutionException
public static void convertDirectories(String featuresDirectory, org.apache.maven.project.MavenProject project, String defaultProvName, org.apache.sling.feature.builder.FeatureProvider fp) throws org.apache.maven.MavenExecutionException
org.apache.maven.MavenExecutionException
public static void convert(ModelPreprocessor.Environment env, ModelPreprocessor.ProjectInfo info, String defaultProvName) throws org.apache.maven.MavenExecutionException
org.apache.maven.MavenExecutionException
public static String readFeatureFile(org.apache.maven.project.MavenProject project, File file, String suggestedClassifier)
file
- The json fileCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.