diff --git a/disable_kafka.py b/disable_kafka.py deleted file mode 100644 index 71cb2b5..0000000 --- a/disable_kafka.py +++ /dev/null @@ -1,17 +0,0 @@ -import os - -for root, _, files in os.walk('.'): - for f in files: - if f == 'application-local.properties': - p = os.path.join(root, f) - try: - content = open(p, encoding='utf-8').read() - except Exception: - content = open(p, encoding='cp949').read() - - # Disable Kafka AutoConfiguration if not present - if 'KafkaAutoConfiguration' not in content: - content += '\n# Disable Kafka\nspring.autoconfigure.exclude=org.springframework.boot.autoconfigure.kafka.KafkaAutoConfiguration\n' - - with open(p, 'w', encoding='utf-8') as out: - out.write(content) diff --git a/fix_mcptool.py b/fix_mcptool.py deleted file mode 100644 index 7ca3cdb..0000000 --- a/fix_mcptool.py +++ /dev/null @@ -1,24 +0,0 @@ -import os -import re - -pattern = re.compile(r'name\s*=\s*"[^"]*",\s*description\s*=\s*"[^"]*",\s*group\s*=\s*"[^"]*",?\s*') - -for root, _, files in os.walk('.'): - for f in files: - if f.endswith('.java'): - p = os.path.join(root, f) - try: - content = open(p, encoding='utf-8').read() - except Exception: - content = open(p, encoding='cp949').read() - - new_content = pattern.sub('', content) - - # Clean up empty parens like @McpTool() - new_content = new_content.replace('@McpTool(\n \n)', '@McpTool') - new_content = new_content.replace('@McpTool()', '@McpTool') - - if content != new_content: - with open(p, 'w', encoding='utf-8') as out: - out.write(new_content) - print(f"Updated {p}") diff --git a/fix_props.py b/fix_props.py deleted file mode 100644 index f0e62b0..0000000 --- a/fix_props.py +++ /dev/null @@ -1,16 +0,0 @@ -import os - -for root, _, files in os.walk('.'): - for f in files: - if f == 'application-local.properties': - p = os.path.join(root, f) - try: - content = open(p, encoding='utf-8').read() - except Exception: - content = open(p, encoding='cp949').read() - - content = content.replace('localhost:/', 'localhost:${server.port}/') - content = content.replace('localhost:\n', 'localhost:${server.port}\n') - - with open(p, 'w', encoding='utf-8') as out: - out.write(content) diff --git a/suppress_kafka_logs.py b/suppress_kafka_logs.py deleted file mode 100644 index ef365a1..0000000 --- a/suppress_kafka_logs.py +++ /dev/null @@ -1,17 +0,0 @@ -import os - -for root, _, files in os.walk('.'): - for f in files: - if f == 'application-local.properties' or f == 'application.properties': - p = os.path.join(root, f) - try: - content = open(p, encoding='utf-8').read() - except Exception: - content = open(p, encoding='cp949').read() - - # Add logging level to suppress kafka warnings - if 'logging.level.org.apache.kafka' not in content: - content += '\n# Suppress Kafka Connection Logs\nlogging.level.org.apache.kafka=ERROR\n' - - with open(p, 'w', encoding='utf-8') as out: - out.write(content)