From 36967c41d44bcc4966716f0bcf958ddf2aa0ff13 Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Wed, 31 May 2023 15:47:00 +0200 Subject: [PATCH] Drop the jakarta directory The remaining scripts have been moved to the quarkus-updates repository. See https://github.com/quarkusio/quarkus-updates/tree/main/tools/3.0 --- jakarta/PropertiesToRecipe.java | 44 -------- jakarta/jakarta-renames.properties | 158 ----------------------------- 2 files changed, 202 deletions(-) delete mode 100755 jakarta/PropertiesToRecipe.java delete mode 100644 jakarta/jakarta-renames.properties diff --git a/jakarta/PropertiesToRecipe.java b/jakarta/PropertiesToRecipe.java deleted file mode 100755 index 548a93895c857..0000000000000 --- a/jakarta/PropertiesToRecipe.java +++ /dev/null @@ -1,44 +0,0 @@ -///usr/bin/env jbang "$0" "$@" ; exit $? - -import java.io.FileInputStream; -import java.io.InputStream; -import java.util.Properties; - -public class PropertiesToRecipe { - public static void main(String[] args) throws Exception { - if (args.length < 1) { - System.err.println("Usage: ./PropertiesToRecipe.java "); - System.exit(1); - } - - Properties props = new Properties(); - try (InputStream in = new FileInputStream(args[0])) { - props.load(in); - } - - System.out.println(""); - System.out.println("#####"); - System.out.println("# Generated by PropertiesToRecipe.java from " + args[0]); - System.out.println("#####"); - generateRecipe("io.quarkus.updates.core.quarkus30.JavaxToJakartaDocumentation", "**/*.adoc", props); - generateRecipe("io.quarkus.updates.core.quarkus30.JavaxToJakartaDocumentation", "**/*.md", props); - generateRecipe("io.quarkus.updates.core.quarkus30.JavaxToJakartaCodestarts", "**/src/main/codestarts/**/*.java", props); - generateRecipe("io.quarkus.updates.core.quarkus30.JavaxToJakartaCodestartsTests", "**/src/test/resources/__snapshots__/**/*.java", props); - } - - private static void generateRecipe(String name, String filesGlob, Properties props) { - System.out.println("---"); - System.out.println("type: specs.openrewrite.org/v1beta/recipe"); - System.out.println("name: " + name); - System.out.println("applicability:"); - System.out.println(" singleSource:"); - System.out.println(" - org.openrewrite.FindSourceFiles:"); - System.out.println(" filePattern: \"" + filesGlob + "\""); - System.out.println("recipeList:"); - props.forEach((key, value) -> { - System.out.println(" - org.openrewrite.text.FindAndReplace:"); - System.out.println(" find: " + key + "."); - System.out.println(" replace: " + value + "."); - }); - } -} diff --git a/jakarta/jakarta-renames.properties b/jakarta/jakarta-renames.properties deleted file mode 100644 index 5a84f1fe33d02..0000000000000 --- a/jakarta/jakarta-renames.properties +++ /dev/null @@ -1,158 +0,0 @@ -# Default jakarta configuration for package renames. -# -# Format: -# currentPackageName=newPackageName -# -# The current package name may contain a ".*" suffix. The suffix indicates -# that sub-packages are to be matched. For example: -# -# javax.servlet.*=jakartax.servlet -# -# This will cause sub-packages like javax.servlet.annotation -# to be replaced with jakartax.servlet.annotation -# -# By default, sub-packages are not updated. -# -# Package renames apply in several ways: -# Class references in .class files are updated. -# Qualified class names which appear in java string constants in .class files are updated. -# Qualified resource references which appear in java string constants in .class files are updated. -# Package references in manifest (MANIFEST.MF) and feature manifest (featureName.mf) files are updated. -# - -javax.activation=jakarta.activation -javax.annotation.security=jakarta.annotation.security -javax.annotation.sql=jakarta.annotation.sql -javax.annotation=jakarta.annotation -javax.batch.api.chunk.listener=jakarta.batch.api.chunk.listener -javax.batch.api.chunk=jakarta.batch.api.chunk -javax.batch.api.listener=jakarta.batch.api.listener -javax.batch.api.partition=jakarta.batch.api.partition -javax.batch.api=jakarta.batch.api -javax.batch.operations=jakarta.batch.operations -javax.batch.runtime.context=jakarta.batch.runtime.context -javax.batch.runtime=jakarta.batch.runtime -javax.decorator=jakarta.decorator -javax.ejb.embeddable=jakarta.ejb.embeddable -javax.ejb.spi=jakarta.ejb.spi -javax.ejb=jakarta.ejb -javax.el=jakarta.el -javax.enterprise.concurrent=jakarta.enterprise.concurrent -javax.enterprise.context.control=jakarta.enterprise.context.control -javax.enterprise.context.spi=jakarta.enterprise.context.spi -javax.enterprise.context=jakarta.enterprise.context -javax.enterprise.event=jakarta.enterprise.event -javax.enterprise.inject.literal=jakarta.enterprise.inject.literal -javax.enterprise.inject.se=jakarta.enterprise.inject.se -javax.enterprise.inject.spi.configurator=jakarta.enterprise.inject.spi.configurator -javax.enterprise.inject.spi=jakarta.enterprise.inject.spi -javax.enterprise.inject=jakarta.enterprise.inject -javax.enterprise.util=jakarta.enterprise.util -javax.faces.annotation=jakarta.faces.annotation -javax.faces.application=jakarta.faces.application -javax.faces.bean=jakarta.faces.bean -javax.faces.component.behavior=jakarta.faces.component.behavior -javax.faces.component.html=jakarta.faces.component.html -javax.faces.component.search=jakarta.faces.component.search -javax.faces.component.visit=jakarta.faces.component.visit -javax.faces.component=jakarta.faces.component -javax.faces.context=jakarta.faces.context -javax.faces.convert=jakarta.faces.convert -javax.faces.el=jakarta.faces.el -javax.faces.event=jakarta.faces.event -javax.faces.flow.builder=jakarta.faces.flow.builder -javax.faces.flow=jakarta.faces.flow -javax.faces.lifecycle=jakarta.faces.lifecycle -javax.faces.model=jakarta.faces.model -javax.faces.push=jakarta.faces.push -javax.faces.render=jakarta.faces.render -javax.faces.validator=jakarta.faces.validator -javax.faces.view.facelets=jakarta.faces.view.facelets -javax.faces.view=jakarta.faces.view -javax.faces.webapp=jakarta.faces.webapp -javax.faces=jakarta.faces -javax.inject=jakarta.inject -javax.interceptor=jakarta.interceptor -javax.jms=jakarta.jms -javax.json.bind.adapter=jakarta.json.bind.adapter -javax.json.bind.annotation=jakarta.json.bind.annotation -javax.json.bind.config=jakarta.json.bind.config -javax.json.bind.serializer=jakarta.json.bind.serializer -javax.json.bind.spi=jakarta.json.bind.spi -javax.json.bind=jakarta.json.bind -javax.json.spi=jakarta.json.spi -javax.json.stream=jakarta.json.stream -javax.json=jakarta.json -javax.jws.soap=jakarta.jws.soap -javax.jws=jakarta.jws -javax.mail.event=jakarta.mail.event -javax.mail.internet=jakarta.mail.internet -javax.mail.search=jakarta.mail.search -javax.mail.util=jakarta.mail.util -javax.mail=jakarta.mail -javax.persistence.criteria=jakarta.persistence.criteria -javax.persistence.metamodel=jakarta.persistence.metamodel -javax.persistence.spi=jakarta.persistence.spi -javax.persistence=jakarta.persistence -javax.resource.cci=jakarta.resource.cci -javax.resource.spi.endpoint=jakarta.resource.spi.endpoint -javax.resource.spi.security=jakarta.resource.spi.security -javax.resource.spi.work=jakarta.resource.spi.work -javax.resource.spi=jakarta.resource.spi -javax.resource=jakarta.resource -javax.security.auth.message.callback=jakarta.security.auth.message.callback -javax.security.auth.message.config=jakarta.security.auth.message.config -javax.security.auth.message.module=jakarta.security.auth.message.module -javax.security.auth.message=jakarta.security.auth.message -javax.security.enterprise.authentication.mechanism.http=jakarta.security.enterprise.authentication.mechanism.http -javax.security.enterprise.credential=jakarta.security.enterprise.credential -javax.security.enterprise.identitystore=jakarta.security.enterprise.identitystore -javax.security.enterprise=jakarta.security.enterprise -javax.security.jacc=jakarta.security.jacc -javax.servlet.annotation=jakarta.servlet.annotation -javax.servlet.descriptor=jakarta.servlet.descriptor -javax.servlet.http=jakarta.servlet.http -javax.servlet.jsp.el=jakarta.servlet.jsp.el -javax.servlet.jsp.jstl.core=jakarta.servlet.jsp.jstl.core -javax.servlet.jsp.jstl.fmt=jakarta.servlet.jsp.jstl.fmt -javax.servlet.jsp.jstl.sql=jakarta.servlet.jsp.jstl.sql -javax.servlet.jsp.jstl.tlv=jakarta.servlet.jsp.jstl.tlv -javax.servlet.jsp.jstl=jakarta.servlet.jsp.jstl -javax.servlet.jsp.resources=jakarta.servlet.jsp.resources -javax.servlet.jsp.tagext=jakarta.servlet.jsp.tagext -javax.servlet.jsp=jakarta.servlet.jsp -javax.servlet.resources=jakarta.servlet.resources -javax.servlet=jakarta.servlet -javax.transaction=jakarta.transaction -javax.validation.bootstrap=jakarta.validation.bootstrap -javax.validation.constraints=jakarta.validation.constraints -javax.validation.constraintvalidation=jakarta.validation.constraintvalidation -javax.validation.executable=jakarta.validation.executable -javax.validation.groups=jakarta.validation.groups -javax.validation.metadata=jakarta.validation.metadata -javax.validation.spi=jakarta.validation.spi -javax.validation.valueextraction=jakarta.validation.valueextraction -javax.validation=jakarta.validation -javax.websocket.server=jakarta.websocket.server -javax.websocket=jakarta.websocket -javax.ws.rs.client=jakarta.ws.rs.client -javax.ws.rs.container=jakarta.ws.rs.container -javax.ws.rs.core=jakarta.ws.rs.core -javax.ws.rs.ext=jakarta.ws.rs.ext -javax.ws.rs.sse=jakarta.ws.rs.sse -javax.ws.rs=jakarta.ws.rs -javax.xml.bind.annotation.adapters=jakarta.xml.bind.annotation.adapters -javax.xml.bind.annotation=jakarta.xml.bind.annotation -javax.xml.bind.attachment=jakarta.xml.bind.attachment -javax.xml.bind.helpers=jakarta.xml.bind.helpers -javax.xml.bind.util=jakarta.xml.bind.util -javax.xml.bind=jakarta.xml.bind -javax.xml.soap=jakarta.xml.soap -javax.xml.ws.handler.soap=jakarta.xml.ws.handler.soap -javax.xml.ws.handler=jakarta.xml.ws.handler -javax.xml.ws.http=jakarta.xml.ws.http -javax.xml.ws.soap=jakarta.xml.ws.soap -javax.xml.ws.spi.http=jakarta.xml.ws.spi.http -javax.xml.ws.spi=jakarta.xml.ws.spi -javax.xml.ws.wsaddressing=jakarta.xml.ws.wsaddressing -javax.xml.ws=jakarta.xml.ws