Skip to content

Commit da97538

Browse files
author
David Hasani
committed
add legacy jdbc string
1 parent 299c6ee commit da97538

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

plugins/amazonq/codetransform/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codemodernizer/utils/CodeTransformModuleUtils.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,9 @@ fun Module.tryGetJdkLanguageLevelJdk(): JavaSdkVersion? {
4545
fun containsSQL(contentRoot: VirtualFile): Boolean {
4646
val patterns = listOf(
4747
"oracle.jdbc.OracleDriver",
48-
"jdbc:oracle:thin:@//",
49-
"jdbc:oracle:oci:@//"
48+
"jdbc:oracle:thin:@",
49+
"jdbc:oracle:oci:@",
50+
"jdbc:odbc:",
5051
)
5152

5253
val searchers = patterns.map { StringSearcher(it, false, true) }

plugins/core/resources/resources/software/aws/toolkits/resources/MessagesBundle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -641,8 +641,8 @@ codemodernizer.chat.message.validation.error.invalid_source_db=I can only conver
641641
codemodernizer.chat.message.validation.error.invalid_target_db=I can only convert SQL for migrations to Aurora PostgreSQL or Amazon RDS for PostgreSQL target databases. The provided .sct file indicates another target database for this migration.
642642
codemodernizer.chat.message.validation.error.missing_sct_file=An .sct file is required for transformation. Make sure that you've uploaded the .zip file you retrieved from your schema conversion in AWS DMS.
643643
codemodernizer.chat.message.validation.error.more_info=For more information, see the [Amazon Q documentation]({0}).
644-
codemodernizer.chat.message.validation.error.no_java_project=Sorry, I could not find an open Java module. Make sure you have a module open that has the JDK configured and has at least 1 content root.
645-
codemodernizer.chat.message.validation.error.no_pom=Sorry, I couldn't find a module that I can upgrade. I couldn't find a pom.xml file in any of your open projects. Currently, I can only upgrade Java 8 or Java 11 projects built on Maven.
644+
codemodernizer.chat.message.validation.error.no_java_project=Sorry, I could not find an open Java module with embedded Oracle SQL statements. Make sure you have a Java module open that has at least 1 content root.
645+
codemodernizer.chat.message.validation.error.no_pom=Sorry, I couldn't find a module that I can upgrade. Currently, I can only upgrade Java 8 or Java 11 modules built on Maven. If you have a Java 8 or Java 11 module in your workspace, you might need to configure your project so that I can find it. Go to File and choose Project Structure. In the Projects tab, set the correct project JDK and the correct language level. In the Modules tab, set the correct module JDK and language level.
646646
codemodernizer.chat.message.validation.error.other=Sorry, I couldn't find a module that I can upgrade. Currently, I can only upgrade Java 8 or Java 11 projects built on Maven. If you have a Java 8 or Java 11 module in your workspace, you might need to configure your project so that I can find it. Go to File and choose Project Structure. In the Projects tab, set the correct project JDK and the correct language level. In the Modules tab, set the correct module JDK and language level.
647647
codemodernizer.chat.message.validation.error.unsupported_java_version=Sorry, I couldn't find a module that I can upgrade. Currently, I can only upgrade Java 8 or Java 11 modules built on Maven. If you have a Java 8 or Java 11 module in your workspace, you might need to configure your project so that I can find it. Go to File and choose Project Structure. In the Projects tab, set the correct project JDK and the correct language level. In the Modules tab, set the correct module JDK and language level.
648648
codemodernizer.chat.message.validation.no_jdk=I couldn't build your project with your current JDK configuration. To update your JDK, go to File and choose Project Structure. In the Projects tab, set the correct project JDK in the SDK field. In the Modules tab, set the correct module JDK in the SDK field. In Maven Runner settings, set the correct JDK in the JRE field.

0 commit comments

Comments
 (0)