[ 
https://issues.apache.org/jira/browse/SLING-10176?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Carsten Ziegeler resolved SLING-10176.
--------------------------------------
      Assignee: Carsten Ziegeler
    Resolution: Fixed

I've created a new configuration toggleApiOnly (default to false) - if set to 
true, only api behind an enabled toggle is considered

I've also refactored some code out of the mojo into a separate class to make it 
easier for testing and created some basic unit tests

https://github.com/apache/sling-slingfeature-maven-plugin/commit/d889619668c684b1d0d6dda3aa70a91208e592a0

> Support creating api jar based on enabled toggles
> -------------------------------------------------
>
>                 Key: SLING-10176
>                 URL: https://issues.apache.org/jira/browse/SLING-10176
>             Project: Sling
>          Issue Type: Improvement
>          Components: Feature Model, Maven Plugins and Archetypes
>            Reporter: Carsten Ziegeler
>            Assignee: Carsten Ziegeler
>            Priority: Major
>             Fix For: slingfeature-maven-plugin 1.4.26
>
>
> The apis mojo supports defining toggles for the api jar generation: if the 
> api region uses toggles for the api, that api is only included in the api 
> generation if the toggle is configured to be enabled,
> In some use cases it is benefial to create an api jar which just contains the 
> api behind a set of defined toggles. 
> This allows to create two api jars - one where no api behind toggles is 
> included and the second one with all the api behind the toggles.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to