validate _all_ xml files only in public
@@ -279,6 +279,7 @@ public class SessionPreparer {
vespaPreprocess(applicationPackageDir.getAbsoluteFile(), hostsXml, applicationPackage.getMetaData());
}
+ if (zone.system().isPublic()) {
// Validate all other XML files
try (var paths = Files.find(applicationPackageDir.getAbsoluteFile().toPath(), Integer.MAX_VALUE,
(path, attr) -> attr.isRegularFile() && path.getFileName().toString().matches(".*\\.[Xx][Mm][Ll]"))) {
@@ -293,6 +294,7 @@ public class SessionPreparer {
} catch (IOException e) {
throw new RuntimeException(e);
}
+ }
// Validate pom.xml files in OSGi bundles
try (var paths = Files.find(applicationPackageDir.getAbsoluteFile().toPath(), Integer.MAX_VALUE,
