-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP #46] fix : Fix local startup error #50
base: iteration/2.1.x
Are you sure you want to change the base?
Conversation
1、local startup load tools.jar 2、local startup load SystemCommand 3、modify module version
} | ||
|
||
public static String getXpocketScrollPath() { | ||
return System.getProperty(SCROLL_PATH, System.getProperty(HOME_NAME) + File.separator + "scrolls" + File.separator); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里有切实必要从常量变实时调用不,差异在于,常量是初始化时调用一次就确定了,后续只是取值;实时调用意味着每次执行都会做一次map查询
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里有切实必要从常量变实时调用不,差异在于,常量是初始化时调用一次就确定了,后续只是取值;实时调用意味着每次执行都会做一次map查询
的确没有实时获取最新SCROLL_PATH的必要,已调整
}); | ||
|
||
File dir = new File(XPocketConstants.getXpocketScrollPath()); | ||
File[] files = dir.listFiles((dir1, name) -> name.endsWith("scl")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
使用stream语法需要考虑jdk兼容性 (虽然目前没做jdk6的兼容,不过其实是有一定考虑的
1、local startup load tools.jar
2、local startup load SystemCommand
3、modify module version