Package org.apache.sling.feature.maven
Class Preprocessor
java.lang.Object
org.apache.sling.feature.maven.Preprocessor
The processor processes all feature projects.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.sling.feature.builder.FeatureProvidercreateFeatureProvider(Environment env, FeatureProjectInfo info, boolean isTest, boolean skipAddDependencies, String dependencyScope, List<org.apache.sling.feature.Feature> projectFeatures) protected org.apache.sling.feature.FeaturepostProcessReadFeature(org.apache.sling.feature.Feature result) Hook to post process the local featureprotected StringpreprocessFeature(org.apache.maven.project.MavenProject project, boolean validate, File file, String json) voidprocess(Environment env) Process the provided projects.protected voidreadProjectFeatures(org.codehaus.plexus.logging.Logger logger, FeatureProjectInfo info, FeatureProjectConfig config) Read the features for a feature project.
-
Constructor Details
-
Preprocessor
public Preprocessor()
-
-
Method Details
-
process
Process the provided projects.- Parameters:
env- The environment with all maven settings and projects
-
readProjectFeatures
protected void readProjectFeatures(org.codehaus.plexus.logging.Logger logger, FeatureProjectInfo info, FeatureProjectConfig config) Read the features for a feature project. The feature is either inlined in the pom or stored in a file in the project.- Parameters:
logger- The loggerinfo- The project infoconfig- The configuration
-
preprocessFeature
-
postProcessReadFeature
protected org.apache.sling.feature.Feature postProcessReadFeature(org.apache.sling.feature.Feature result) Hook to post process the local feature- Parameters:
result- The read feature- Returns:
- The post processed feature
-
createFeatureProvider
protected org.apache.sling.feature.builder.FeatureProvider createFeatureProvider(Environment env, FeatureProjectInfo info, boolean isTest, boolean skipAddDependencies, String dependencyScope, List<org.apache.sling.feature.Feature> projectFeatures)
-