brusdev commented on code in PR #5136:
URL: https://github.com/apache/activemq-artemis/pull/5136#discussion_r1709377455


##########
artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/Upgrade.java:
##########
@@ -154,6 +154,17 @@ public Object run(ActionContext context) throws Exception {
          write("etc/" + Create.ETC_ARTEMIS_PROFILE_CMD, artemisProfileCmdTmp, 
filters, false, false);
          upgradeJDK(context, JDK_PREFIX_WINDOWS, "", KEEPING_JVM_ARGUMENTS, 
artemisProfileCmdTmp, artemisProfileCmd, artemisProfileCmdBkp,
                     "set ARTEMIS_INSTANCE=\"", "set ARTEMIS_DATA_DIR=", "set 
ARTEMIS_ETC_DIR=", "set ARTEMIS_OOME_DUMP=", "set ARTEMIS_INSTANCE_URI=", "set 
ARTEMIS_INSTANCE_ETC_URI=");
+
+         File artemisUtilityProfileCmd = new File(etcFolder, 
Create.ETC_ARTEMIS_UTILITY_PROFILE);
+         File artemisUtilityProfileCmdTmp = new File(tmp, 
Create.ETC_ARTEMIS_UTILITY_PROFILE);
+         File artemisUtilityProfileCmdBkp = new File(etcBkp, 
Create.ETC_ARTEMIS_UTILITY_PROFILE);
+         if (artemisUtilityProfileCmd.exists()) {

Review Comment:
   Good catch!



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact


Reply via email to