From 093d515e4f5e018dc33048b4f0d31c7ead6717ed Mon Sep 17 00:00:00 2001 From: rameshiyer27 Date: Fri, 8 Jul 2022 12:29:25 +0100 Subject: Support MetadataSet generation in APEX CLI Editor In addition to the existing capabilities of CLI editor, new arguments added for generating Tosca policy template excluding the policy model entity. Also generates independent json file for node template comprising the policy model data. Issue-ID: POLICY-4084 Signed-off-by: zrrmmua Change-Id: I7c6a9570846e3ebfaa3f4ebc8d60faa94b533240 --- examples/examples-grpc/pom.xml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'examples/examples-grpc/pom.xml') diff --git a/examples/examples-grpc/pom.xml b/examples/examples-grpc/pom.xml index b6b0a19a5..df4df5373 100644 --- a/examples/examples-grpc/pom.xml +++ b/examples/examples-grpc/pom.xml @@ -33,6 +33,8 @@ APEXgRPCPolicy APEXgRPCToscaPolicy + + org.onap.nodetypes.policy.MetadataSet @@ -128,6 +130,27 @@ + + + generate-tosca-policy-metadataSet + compile + + java + + + org.onap.policy.apex.auth.clieditor.tosca.ApexCliToscaEditorMain + compile + + --command-file=${project.basedir}/src/main/resources/policy/${policymodel.name}.apex + --output-tosca-file=${project.build.directory}/classes/${toscapolicy.name}.metadataSet.json + --log-file=${project.build.directory}/${policymodel.name}_policygeneration.log + --apex-config-file=${project.basedir}/src/main/resources/examples/config/APEXgRPC/ApexConfig.json + --tosca-template-file=${project.basedir}/src/main/resources/tosca/ToscaTemplate.json + --node-type=${nodeType.name} + --output-node-template-file=${project.build.directory}/classes/${toscapolicy.name}.nodeTemplate.json + + + -- cgit 1.2.3-korg