Skip to content

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

@bivana

Description

@bivana

打包成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);
}

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions