Skip to content

Commit

Permalink
Fix copy xsd files from metadata schemas to the web application
Browse files Browse the repository at this point in the history
  • Loading branch information
josegar74 authored and fxprunayre committed Jun 3, 2024
1 parent 180537b commit e98fa93
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions core/src/main/java/org/fao/geonet/kernel/SchemaManager.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2001-2023 Food and Agriculture Organization of the
* Copyright (C) 2001-2024 Food and Agriculture Organization of the
* United Nations (FAO-UN), United Nations World Food Programme (WFP)
* and United Nations Environment Programme (UNEP)
*
Expand Down Expand Up @@ -1383,7 +1383,6 @@ private void checkAppSupported(Element schemaPluginCatRoot) throws Exception {
" requires max Geonetwork version: " + majorAppVersionSupported + ", current is: " +
version + ". Skip load schema.");
removes.add(schemaInfo.getKey());
continue;
}
}

Expand Down Expand Up @@ -1901,7 +1900,7 @@ public boolean accept(Path entry) throws IOException {
try (DirectoryStream<Path> schemaplugins = Files.newDirectoryStream(schemaPluginDir, xsdFilter)) {
boolean missingXsdFiles = true;
for (Path schemaplugin : schemaplugins) {
IO.copyDirectoryOrFile(schemaplugin, webAppDirSchemaXSD.resolve(schemaplugin), false);
IO.copyDirectoryOrFile(schemaplugin, webAppDirSchemaXSD.resolve(schemaplugin.getFileName()), false);
missingXsdFiles = false;
}

Expand Down

0 comments on commit e98fa93

Please sign in to comment.