Skip to content

Commit 192ec85

Browse files
UCT-782: Added alternative uct module name
1 parent 72e21fb commit 192ec85

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/com/magento/idea/magento2uct/util/module/UctModuleLocatorUtil.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@
2020

2121
public final class UctModuleLocatorUtil {
2222

23-
private static final String UCT_COMPOSER_NAME = "magento\\/upgrade-compatibility-tool";
23+
private static final String UCT_COMPOSER_NAME = "magento/upgrade-compatibility-tool";
24+
private static final String UCT_COMPOSER_ALTERNATIVE_NAME
25+
= "magento\\/upgrade-compatibility-tool";
2426
private static final String UCT_EXECUTABLE_RELATIVE_PATH = "bin" + File.separator + "uct";
2527

2628
private UctModuleLocatorUtil() {
@@ -140,9 +142,9 @@ private UctModuleLocatorUtil() {
140142
if (composerFile == null) {
141143
continue;
142144
}
143-
final boolean isUctModule = composerFile.getText().contains(UCT_COMPOSER_NAME);
144145

145-
if (isUctModule) {
146+
if (composerFile.getText().contains(UCT_COMPOSER_NAME)
147+
|| composerFile.getText().contains(UCT_COMPOSER_ALTERNATIVE_NAME)) {
146148
return subDir;
147149
}
148150
}

0 commit comments

Comments
 (0)