forked from kimhyungsik/ax_hub_mcp_tool
fix(scaffold): respect AXHUB_SOURCE_DIR property for Pod generation
All checks were successful
Deploy Tools / deploy (push) Successful in 1m28s
All checks were successful
Deploy Tools / deploy (push) Successful in 1m28s
- PodScaffolder now checks System.getProperty before System.getenv for dynamic targeting.
This commit is contained in:
@@ -45,7 +45,8 @@ public class PodScaffolder {
|
||||
}
|
||||
|
||||
public static String scaffoldPod(String moduleName, String portStr, String shortName, String author, String createDate) throws IOException {
|
||||
String envSourceDir = System.getenv("AXHUB_SOURCE_DIR");
|
||||
String envSourceDir = System.getProperty("AXHUB_SOURCE_DIR");
|
||||
if (envSourceDir == null) envSourceDir = System.getenv("AXHUB_SOURCE_DIR");
|
||||
Path rootDir = envSourceDir != null ? Paths.get(envSourceDir) : Paths.get(".");
|
||||
return scaffoldPod(rootDir, moduleName, portStr, shortName, author, createDate);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user