All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.rewrite.was-to-liberty.yml Maven / Gradle / Ivy

There is a newer version: 1.10.1
Show newest version
#
# Copyright 2023 the original author or authors.
# 

# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at #

# https://www.apache.org/licenses/LICENSE-2.0 #

# Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ######################################################################################################################## # WebSphere traditional to Liberty --- type: specs.openrewrite.org/v1beta/recipe name: org.openrewrite.java.liberty displayName: Migrate from WebSphere traditional to Liberty description: > Use this category of rules to identify code changes needed when migrating from WebSphere Application Server traditional to Liberty. recipeList: - org.openrewrite.java.liberty.RemoveWas2LibertyNonPortableJndiLookup - org.openrewrite.java.liberty.ServerName - org.openrewrite.java.liberty.WebSphereUnavailableSSOCookieMethod - org.openrewrite.java.liberty.WebSphereUnavailableSSOTokenMethod - org.openrewrite.xml.liberty.AppDDNamespaceRule - org.openrewrite.xml.liberty.ConnectorDDNamespaceRule - org.openrewrite.xml.liberty.EJBDDNamespaceRule - org.openrewrite.xml.liberty.PersistenceXmlLocationRule - org.openrewrite.xml.liberty.WebDDNamespaceRule --- type: specs.openrewrite.org/v1beta/recipe name: org.openrewrite.java.liberty.WebSphereUnavailableSSOTokenMethod displayName: Use `getSSOCookieFromSSOToken` description: > This method `LTPACookieFromSSOToken()` is deprecated in traditional WebSphere Application Server Version 8.5 and might be removed in a future release. It is not available on Liberty. recipeList: - org.openrewrite.java.ChangeMethodName: methodPattern: com.ibm.websphere.security.WSSecurityHelper getLTPACookieFromSSOToken() newMethodName: getSSOCookieFromSSOToken ignoreDefinition: true - org.openrewrite.java.ChangeType: oldFullyQualifiedTypeName: com.ibm.websphere.security.WSSecurityHelper newFullyQualifiedTypeName: com.ibm.websphere.security.web.WebSecurityHelper ignoreDefinition: true --- type: specs.openrewrite.org/v1beta/recipe name: org.openrewrite.xml.liberty.AppDDNamespaceRule displayName: Use correct application namespace values description: Namespace values in application.xml must be consistent with the descriptor version. recipeList: - org.openrewrite.xml.ChangeNamespaceValue: elementName: application newValue: http://java.sun.com/xml/ns/j2ee versionMatcher: 1.4 searchAllNamespaces: false - org.openrewrite.xml.ChangeNamespaceValue: elementName: application newValue: http://java.sun.com/xml/ns/javaee versionMatcher: 5,6 searchAllNamespaces: false - org.openrewrite.xml.ChangeNamespaceValue: elementName: application newValue: http://xmlns.jcp.org/xml/ns/javaee versionMatcher: 7+ searchAllNamespaces: false --- type: specs.openrewrite.org/v1beta/recipe name: org.openrewrite.xml.liberty.ConnectorDDNamespaceRule displayName: Use correct connector namespace values description: Namespace values in ra.xml must be consistent with the descriptor version. recipeList: - org.openrewrite.xml.ChangeNamespaceValue: elementName: connector newValue: http://java.sun.com/xml/ns/j2ee versionMatcher: 1.5 searchAllNamespaces: false - org.openrewrite.xml.ChangeNamespaceValue: elementName: connector newValue: http://java.sun.com/xml/ns/javaee versionMatcher: 1.6 searchAllNamespaces: false - org.openrewrite.xml.ChangeNamespaceValue: elementName: connector newValue: http://xmlns.jcp.org/xml/ns/javaee versionMatcher: 1.7+ searchAllNamespaces: false --- type: specs.openrewrite.org/v1beta/recipe name: org.openrewrite.xml.liberty.EJBDDNamespaceRule displayName: Use correct ejb-jar namespace values description: Namespace values in ejb-jar.xml must be consistent with the descriptor version. recipeList: - org.openrewrite.xml.ChangeNamespaceValue: elementName: ejb-jar newValue: http://java.sun.com/xml/ns/j2ee versionMatcher: 2.1 searchAllNamespaces: false - org.openrewrite.xml.ChangeNamespaceValue: elementName: ejb-jar newValue: http://java.sun.com/xml/ns/javaee versionMatcher: 3.0,3.1 searchAllNamespaces: false - org.openrewrite.xml.ChangeNamespaceValue: elementName: ejb-jar newValue: http://xmlns.jcp.org/xml/ns/javaee versionMatcher: 3.2+ searchAllNamespaces: false --- type: specs.openrewrite.org/v1beta/recipe name: org.openrewrite.xml.liberty.WebDDNamespaceRule displayName: Use correct web-app namespace values description: Namespace values in web.xml must be consistent with the descriptor version. recipeList: - org.openrewrite.xml.ChangeNamespaceValue: elementName: web-app newValue: http://java.sun.com/xml/ns/j2ee versionMatcher: 2.4 searchAllNamespaces: false - org.openrewrite.xml.ChangeNamespaceValue: elementName: web-app newValue: http://java.sun.com/xml/ns/java versionMatcher: 2.5,3.0 searchAllNamespaces: false - org.openrewrite.xml.ChangeNamespaceValue: elementName: web-app newValue: http://xmlns.jcp.org/xml/ns/javaee versionMatcher: 3.1+ searchAllNamespaces: false





© 2015 - 2025 Weber Informatics LLC | Privacy Policy