uber / piranha

A tool for refactoring code related to feature flag APIs
Apache License 2.0
2.29k stars 198 forks source link

Is there anyway to add the multiple flag names in pom.xml compilerArgs #640

Open ranjit92 opened 11 months ago

ranjit92 commented 11 months ago

Hi Team,

I am trying to add multiple flags in the controller args but it only considers the last one "FlagName=SAMPLE_STALE_FLAG2". Can someone please help here with how we pass the multiple flag args?

                <compilerArgs>
                    <arg>-XDcompilePolicy=simple</arg>
                    <arg>-Xplugin:ErrorProne -Xep:Piranha:WARN -XepPatchChecks:Piranha -XepPatchLocation:IN_PLACE
                        -XepOpt:Piranha:FlagName=SAMPLE_STALE_FLAG -XepOpt:Piranha:FlagName=SAMPLE_STALE_FLAG2 -XepOpt:Piranha:IsTreated=true
                        -XepOpt:Piranha:Config=config/properties.json
                    </arg>
                </compilerArgs>
ketkarameya commented 11 months ago

Can you try the polyglot piranha version of feature flag cleanup? https://uber.github.io/piranha/docs/reference/staleflags ?