diff --git a/README.md b/README.md index 971cd72..2df71c9 100644 --- a/README.md +++ b/README.md @@ -11,3 +11,13 @@ Recipes to migrate to the IBM WebSphere Liberty. Automatically This project implements a [Rewrite module](https://github.com/openrewrite/rewrite) that performs common tasks when migrating to new version of [Open Liberty](https://openliberty.io/). Browse [a selection of recipes available through this module in the recipe catalog](https://docs.openrewrite.org/recipes/liberty). + +## How to use? + +To get a curated list of recipes based on the migration issues present in your applications, consider downloading the [Migration Toolkit for Application Binaries](https://www.ibm.com/support/pages/node/6250913) and then running an analysis scan against your applications. Documentation on this scan and how to run it using the Migration Toolkit for Application Binaries can be found [here](https://www.ibm.com/docs/en/wamt?topic=binaries-detailed-migration-analysis-report). The report generated will contain the rewrite config necessary for your applications and their detected issues. + +For more info on using OpenRewrite, see the full documentation at [docs.openrewrite.org](https://docs.openrewrite.org/). + +## Contributing + +We appreciate all types of contributions. See the [contributing guide](https://github.com/openrewrite/.github/blob/main/CONTRIBUTING.md) for detailed instructions on how to get started. \ No newline at end of file diff --git a/src/main/resources/META-INF/rewrite/was-to-liberty.yml b/src/main/resources/META-INF/rewrite/was-to-liberty.yml index e311aca..8cfc9f0 100644 --- a/src/main/resources/META-INF/rewrite/was-to-liberty.yml +++ b/src/main/resources/META-INF/rewrite/was-to-liberty.yml @@ -47,7 +47,7 @@ recipeList: ignoreDefinition: true - org.openrewrite.java.ChangeType: oldFullyQualifiedTypeName: com.ibm.websphere.security.WSSecurityHelper - newFullyQualifiedTypeName: com.ibm.websphere.security.web.WSSecurityHelper + newFullyQualifiedTypeName: com.ibm.websphere.security.web.WebSecurityHelper ignoreDefinition: true --- type: specs.openrewrite.org/v1beta/recipe diff --git a/src/test/java/org/openrewrite/java/liberty/UnavailableSSOTokenTest.java b/src/test/java/org/openrewrite/java/liberty/UnavailableSSOTokenTest.java index f7a2a8d..85d0cc3 100644 --- a/src/test/java/org/openrewrite/java/liberty/UnavailableSSOTokenTest.java +++ b/src/test/java/org/openrewrite/java/liberty/UnavailableSSOTokenTest.java @@ -53,13 +53,13 @@ public void doX() { } """, """ - import com.ibm.websphere.security.web.WSSecurityHelper; + import com.ibm.websphere.security.web.WebSecurityHelper; import javax.servlet.http.Cookie; public class Test { public void doX() { - Cookie ltpaCookie = WSSecurityHelper.getSSOCookieFromSSOToken(); + Cookie ltpaCookie = WebSecurityHelper.getSSOCookieFromSSOToken(); } } """