Skip to content

Commit 97a6285

Browse files
javier-godoypaodb
authored andcommitted
fix: normalize leading slash in DemoSource path values
1 parent ed280da commit 97a6285

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

processor/src/main/java/com/flowingcode/vaadin/addons/demo/DemoSourceProcessor.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,8 @@ private void writeResource() {
230230
Diagnostic.Kind.NOTE,
231231
"Copying " + count + " demo-source " + (count == 1 ? "file" : "files") + " to class output");
232232
}
233-
for (String sourcePath : collectedPaths) {
233+
for (String rawPath : collectedPaths) {
234+
String sourcePath = rawPath.startsWith("/") ? rawPath.substring(1) : rawPath;
234235
// Files under META-INF/resources/ are already packaged into the JAR by Maven's
235236
// resource-processing phase; the processor does not need to copy them.
236237
if (isFromMetaInfResources(sourcePath)) {

0 commit comments

Comments
 (0)