Skip to content

Commit

Permalink
Migrate OpenSymphony classes as indicated in the guide
Browse files Browse the repository at this point in the history
For #1
  • Loading branch information
timtebeek committed Jul 5, 2024
1 parent 35ccb44 commit f17d915
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/main/resources/META-INF/rewrite/struts6.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ displayName: Migrate to Struts 6.0
description: Migrate Struts 2.x to Struts 6.0
recipeList:
- org.openrewrite.java.struts.migrate6.MigrateAwareInterfaces
- org.openrewrite.java.struts.migrate6.MigrateOpenSymphonyClasses
- org.openrewrite.java.struts.migrate6.UpgradeStruts6Dependencies
- org.openrewrite.java.struts.MigrateStrutsDtd:
strutsVersion: 6.0
Expand Down Expand Up @@ -198,3 +199,18 @@ recipeList:
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.struts2.util.ServletContextAware
newFullyQualifiedTypeName: org.apache.struts2.action.ServletContextAware
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.java.struts.migrate6.MigrateOpenSymphonyClasses
displayName: Migrate OpenSymphony classes to Struts 6.0
description: Migrate classes from `com.opensymphony.xwork2` to their replacements in `org.apache.struts2`.
recipeList:
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: com.opensymphony.xwork2.config.providers.XmlConfigurationProvider
newFullyQualifiedTypeName: org.apache.struts2.config.StrutsXmlConfigurationProvider
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: com.opensymphony.xwork2.conversion.TypeConversionException
newFullyQualifiedTypeName: org.apache.struts2.conversion.TypeConversionException
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: com.opensymphony.xwork2.XWorkException
newFullyQualifiedTypeName: org.apache.struts2.StrutsException

0 comments on commit f17d915

Please sign in to comment.