Rename OpenSymphony / XWork classes to Struts 7 packages

Proprietary

Updates classes moved from com.opensymphony.xwork2.* to their new org.apache.struts2.* packages in Struts 7.

org.openrewrite.java.struts.migrate7.RenameOpenSymphonyToStruts2
mod run . --recipe=org.openrewrite.java.struts.migrate7.RenameOpenSymphonyToStruts2

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.

Recipe list

It runs these recipes, in this order.

  1. Change type com.opensymphony.xwork2.Action to org.apache.struts2.action.Action
  2. Change type com.opensymphony.xwork2.ActionChainResult to org.apache.struts2.result.ActionChainResult
  3. Change type com.opensymphony.xwork2.TextProvider to org.apache.struts2.text.TextProvider
  4. Change type com.opensymphony.xwork2.CompositeTextProvider to org.apache.struts2.text.CompositeTextProvider
  5. Change type com.opensymphony.xwork2.DefaultTextProvider to org.apache.struts2.text.DefaultTextProvider
  6. Change type com.opensymphony.xwork2.LocalizedTextProvider to org.apache.struts2.text.LocalizedTextProvider
  7. Change type com.opensymphony.xwork2.ResourceBundleTextProvider to org.apache.struts2.text.ResourceBundleTextProvider
  8. Change type com.opensymphony.xwork2.TextProviderFactory to org.apache.struts2.text.TextProviderFactory
  9. Change type com.opensymphony.xwork2.TextProviderSupport to org.apache.struts2.text.TextProviderSupport
  10. Change type com.opensymphony.xwork2.util.AbstractLocalizedTextProvider to org.apache.struts2.text.AbstractLocalizedTextProvider
  11. Change type com.opensymphony.xwork2.util.GlobalLocalizedTextProvider to org.apache.struts2.text.GlobalLocalizedTextProvider
  12. Change type com.opensymphony.xwork2.util.StrutsLocalizedTextProvider to org.apache.struts2.text.StrutsLocalizedTextProvider
  13. Change type com.opensymphony.xwork2.DefaultLocaleProvider to org.apache.struts2.locale.DefaultLocaleProvider
  14. Change type com.opensymphony.xwork2.DefaultLocaleProviderFactory to org.apache.struts2.locale.DefaultLocaleProviderFactory
  15. Change type com.opensymphony.xwork2.LocaleProvider to org.apache.struts2.locale.LocaleProvider
  16. Change type com.opensymphony.xwork2.LocaleProviderFactory to org.apache.struts2.locale.LocaleProviderFactory
  17. Rename package name com.opensymphony.xwork2 to org.apache.struts2