Skip to content
Permalink
Browse files
Fix #3374 to use File.separatorChar when get fqcn from generated … (#…
…3380)

* Fix #3374 to use File.separatorChar when get fqcn from generated xslt class files

* Fix XmlTest to work on Windows
  • Loading branch information
zhfeng committed Dec 13, 2021
1 parent 54cced2 commit 6731c512c557e567fe916cd68f40afb143fce1b7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
@@ -120,7 +120,8 @@ void xsltResources(
.forEach(path -> {
try {
final Path rel = destination.relativize(path);
final String fqcn = StringUtils.removeEnd(rel.toString(), ".class").replace('/', '.');
final String fqcn = StringUtils.removeEnd(rel.toString(), ".class").replace(File.separatorChar,
'.');
final byte[] data = Files.readAllBytes(path);

generatedClasses.produce(new GeneratedClassBuildItem(false, fqcn, data));
@@ -91,8 +91,8 @@ public void htmlToText() throws Exception {
.extract().body().asString().trim();

Assertions.assertEquals(
"= Title\n"
+ "\n"
"= Title" + System.lineSeparator()
+ System.lineSeparator()
+ "Paragraph Contents",
actual);
}

0 comments on commit 6731c51

Please sign in to comment.