Skip to content

Commit

Permalink
Make diagrams with plugin.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmederly committed May 13, 2021
1 parent 8926586 commit ab7885c
Showing 1 changed file with 10 additions and 0 deletions.
Expand Up @@ -106,11 +106,21 @@ public void execute() throws MojoExecutionException, MojoFailureException {
throw new MojoExecutionException(e.getMessage(),e);
}
for (PrismSchema schema: schemaRegistry.getSchemas()) {

try {
renderSchema(schema, prismContext, velocityEngine, pathGenerator);
} catch (IOException e) {
throw new MojoExecutionException(e.getMessage(),e);
}

if (schema.getNamespace().equals("http://midpoint.evolveum.com/xml/ns/public/common/common-3")) { // todo as parameter
try {
renderRelationDiagram(schema, schemaRegistry, "user-overview",
outDir.getAbsolutePath() + "/", buildDir.getAbsolutePath() + "/schemadoc/schemaLibraries/", null, null, null);
} catch (IOException e) {
e.printStackTrace();
}
}
}

try {
Expand Down

0 comments on commit ab7885c

Please sign in to comment.