forked from kimhyungsik/ax_hub_mcp_tool
fix: resolve PodScaffolder missing workspace path by reading AXHUB_SOURCE_DIR system property instead of just env var
All checks were successful
Deploy Tools / deploy (push) Successful in 1m58s
All checks were successful
Deploy Tools / deploy (push) Successful in 1m58s
This commit is contained in:
@@ -46,7 +46,9 @@ public class PodScaffolder {
|
|||||||
|
|
||||||
public static String scaffoldPod(String moduleName, String portStr, String shortName, String author, String createDate) throws IOException {
|
public static String scaffoldPod(String moduleName, String portStr, String shortName, String author, String createDate) throws IOException {
|
||||||
String envSourceDir = System.getProperty("AXHUB_SOURCE_DIR");
|
String envSourceDir = System.getProperty("AXHUB_SOURCE_DIR");
|
||||||
if (envSourceDir == null) envSourceDir = System.getenv("AXHUB_SOURCE_DIR");
|
if (envSourceDir == null || envSourceDir.isBlank()) {
|
||||||
|
envSourceDir = System.getenv("AXHUB_SOURCE_DIR");
|
||||||
|
}
|
||||||
Path rootDir = envSourceDir != null ? Paths.get(envSourceDir) : Paths.get(".");
|
Path rootDir = envSourceDir != null ? Paths.get(envSourceDir) : Paths.get(".");
|
||||||
return scaffoldPod(rootDir, moduleName, portStr, shortName, author, createDate);
|
return scaffoldPod(rootDir, moduleName, portStr, shortName, author, createDate);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user