Skip to content

Commit e98fa93

Browse files
josegar74fxprunayre
authored andcommitted
Fix copy xsd files from metadata schemas to the web application
1 parent 180537b commit e98fa93

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

core/src/main/java/org/fao/geonet/kernel/SchemaManager.java

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2001-2023 Food and Agriculture Organization of the
2+
* Copyright (C) 2001-2024 Food and Agriculture Organization of the
33
* United Nations (FAO-UN), United Nations World Food Programme (WFP)
44
* and United Nations Environment Programme (UNEP)
55
*
@@ -1383,7 +1383,6 @@ private void checkAppSupported(Element schemaPluginCatRoot) throws Exception {
13831383
" requires max Geonetwork version: " + majorAppVersionSupported + ", current is: " +
13841384
version + ". Skip load schema.");
13851385
removes.add(schemaInfo.getKey());
1386-
continue;
13871386
}
13881387
}
13891388

@@ -1901,7 +1900,7 @@ public boolean accept(Path entry) throws IOException {
19011900
try (DirectoryStream<Path> schemaplugins = Files.newDirectoryStream(schemaPluginDir, xsdFilter)) {
19021901
boolean missingXsdFiles = true;
19031902
for (Path schemaplugin : schemaplugins) {
1904-
IO.copyDirectoryOrFile(schemaplugin, webAppDirSchemaXSD.resolve(schemaplugin), false);
1903+
IO.copyDirectoryOrFile(schemaplugin, webAppDirSchemaXSD.resolve(schemaplugin.getFileName()), false);
19051904
missingXsdFiles = false;
19061905
}
19071906

0 commit comments

Comments
 (0)