Class JSONFeatures
- java.lang.Object
-
- org.apache.sling.maven.slingstart.JSONFeatures
-
public class JSONFeatures extends Object
-
-
Constructor Summary
Constructors Constructor Description JSONFeatures()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Stringread(Reader reader, org.apache.sling.feature.ArtifactId optionalId, String location)Read the feature and add theidattribute if missing
-
-
-
Method Detail
-
read
public static String read(Reader reader, org.apache.sling.feature.ArtifactId optionalId, String location) throws IOException
Read the feature and add theidattribute if missing- Parameters:
reader- The readeroptionalId- The artifact id to use if theidattribute is missinglocation- The location- Returns:
- The feature as a string
- Throws:
IOException- If reading fails
-
-