You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: plugins/amazonq/codetransform/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codemodernizer/CodeTransformChatApp.kt
-1Lines changed: 0 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -152,7 +152,6 @@ class CodeTransformChatApp : AmazonQApp {
Copy file name to clipboardExpand all lines: plugins/amazonq/codetransform/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codemodernizer/constants/CodeTransformChatItems.kt
+12-18Lines changed: 12 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -234,24 +234,18 @@ fun buildUserBuildSystemSelectionChatContent(buildSystem: String) = CodeTransfor
Copy file name to clipboardExpand all lines: plugins/amazonq/codetransform/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codemodernizer/controller/CodeTransformChatController.kt
-3Lines changed: 0 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -261,13 +261,10 @@ class CodeTransformChatController(
261
261
262
262
val sourceJdk = getSourceJdk(moduleConfigurationFile)
Copy file name to clipboardExpand all lines: plugins/amazonq/codetransform/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codemodernizer/model/CodeModernizerSessionContext.kt
val pythonExecutable = getPythonExecutable() ?:returnLocalBuildResult.Failure("Python not found")
161
164
val gradleWrapperExists = checkAndCreateGradleWrapper(sourceFolder)
162
165
if (!gradleWrapperExists) {
163
166
returnLocalBuildResult.Failure("Gradle wrapper could not be created")
164
167
}
165
-
val scriptPath ="/pythonScript/gradle_copy_deps.py"// AwsToolkit.PLUGINS_INFO.getValue(AwsPlugin.Q).path?.resolve("codetransform/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codemodernizer/utils/gradle_copy_deps.py")
166
-
//TO-DO: evaluate if withWorkDirectory is needed here, and whether to use path or absolutePath
167
-
val commandLine =GeneralCommandLine("$pythonExecutable$scriptPath${sourceFolder.path}")
168
+
val scriptPath =Paths.get("plugins/amazonq/codetransform/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codemodernizer/model/gradle_copy_deps.py").toAbsolutePath().toString()// AwsToolkit.PLUGINS_INFO.getValue(AwsPlugin.Q).path?.resolve("codetransform/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codemodernizer/utils/gradle_copy_deps.py")
169
+
//TODO: evaluate if withWorkDirectory is needed here, and whether to use path or absolutePath
170
+
val commandLine =GeneralCommandLine("$pythonExecutable$scriptPath${sourceFolder.path}").withWorkDirectory(sourceFolder)
168
171
try {
169
172
val processOutput =ExecUtil.execAndGetOutput(commandLine)
170
173
LOG.warn { "gradle_copy_deps.py finished with exitCode = ${processOutput.exitCode} and output = ${processOutput.stdout}\n${processOutput.stderr}" }
@@ -302,10 +305,10 @@ data class CodeModernizerSessionContext(
302
305
val outputFile = createTemporaryZipFile { zip ->
303
306
// 1) Manifest file
304
307
val dependenciesRoot ="$ZIP_DEPENDENCIES_PATH/${depDirectory?.name}"
305
-
//TO-DO: fix backend issue where this needs to be equalsIgnoreCase: https://code.amazon.com/packages/ElasticGumbyCodeGenAgent/blobs/e4002a60a410da75c55aad1279a314204919bd80/--/src/main/java/com/amazonaws/elasticgumby/codegen/build/inference/FileBasedBuildSystemInference.java#L62
306
-
// then the below "GRADLE" can just be "Gradle"
307
-
val buildTool =if (configurationFile.name ==MAVEN_CONFIGURATION_FILE_NAME) "Maven"else"GRADLE"
0 commit comments