Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Jar 包运行时皮肤目录名问题 #41

Closed
bivana opened this issue Jan 14, 2020 · 0 comments
Closed

Jar 包运行时皮肤目录名问题 #41

bivana opened this issue Jan 14, 2020 · 0 comments
Assignees
Milestone

Comments

@bivana
Copy link

bivana commented Jan 14, 2020

打包成jar时,获取的皮肤路径的目录名包含/,导致匹配错误

for (final Iterator<Path> it = walk.iterator(); it.hasNext(); ) {
  final Path file = it.next().getFileName();
  final String fileName = file.toString(); //此处取的的fileName是含/的,如 Bruce,获取到的是Bruce/ ,而非Bruce
  if (fileName.startsWith(".") || fileName.endsWith(".md") || "skins".equals(fileName)) {
     continue;
  }
  ret.add(fileName);
}
@88250 88250 self-assigned this Jan 14, 2020
@88250 88250 added this to the 3.8.0 milestone Jan 14, 2020
@88250 88250 changed the title Skins.getSkinDirNames 获取jar路径错误 Jar 包运行时皮肤目录名问题 Jan 14, 2020
@88250 88250 closed this as completed in d5867a8 Jan 14, 2020
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants