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
-
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.sling.feature.builder.FeatureProvider
createFeatureProvider
(Environment env, FeatureProjectInfo info, boolean isTest, boolean skipAddDependencies, String dependencyScope, List<org.apache.sling.feature.Feature> projectFeatures) protected org.apache.sling.feature.Feature
postProcessReadFeature
(org.apache.sling.feature.Feature result) Hook to post process the local featureprotected String
preprocessFeature
(org.apache.maven.project.MavenProject project, boolean validate, File file, String json) void
process
(Environment env) Process the provided projects.protected void
readProjectFeatures
(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)
-