Skip to content
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

Open
wants to merge 2 commits into
base: iteration/2.1.x
Choose a base branch
from

Conversation

DearZh
Copy link
Contributor

@DearZh DearZh commented Mar 7, 2023

1、local startup load tools.jar
2、local startup load SystemCommand
3、modify module version

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);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里有切实必要从常量变实时调用不,差异在于,常量是初始化时调用一次就确定了,后续只是取值;实时调用意味着每次执行都会做一次map查询

Copy link
Contributor Author

@DearZh DearZh Mar 8, 2023

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"));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

使用stream语法需要考虑jdk兼容性 (虽然目前没做jdk6的兼容,不过其实是有一定考虑的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants