summaryrefslogtreecommitdiffstats
path: root/examples/examples-myfirstpolicy/pom.xml
diff options
context:
space:
mode:
authorliamfallon <liam.fallon@est.tech>2020-03-11 17:17:14 +0000
committerliamfallon <liam.fallon@est.tech>2020-03-11 18:34:55 +0000
commitb87ab1696010ca0bbed5db99c140cf908722df57 (patch)
tree160ed6eafc600d126465e846f18b70bd199edbed /examples/examples-myfirstpolicy/pom.xml
parent7c28f233037e768cde426f78d61cf959d2053fdb (diff)
Convert examples to Rhino Javascript format
All examples are converted to Rhino Javascript from Nashorn Javascript. Issue-ID: POLICY-2106 Change-Id: Ia6fec5b57b1e6131799b4b069968e4766ce54c96 Signed-off-by: liamfallon <liam.fallon@est.tech>
Diffstat (limited to 'examples/examples-myfirstpolicy/pom.xml')
-rw-r--r--examples/examples-myfirstpolicy/pom.xml26
1 files changed, 12 insertions, 14 deletions
diff --git a/examples/examples-myfirstpolicy/pom.xml b/examples/examples-myfirstpolicy/pom.xml
index ec61748f0..65349d1b3 100644
--- a/examples/examples-myfirstpolicy/pom.xml
+++ b/examples/examples-myfirstpolicy/pom.xml
@@ -34,7 +34,8 @@
<description>Specific code for the Apex MyFirstPolicy Example</description>
<properties>
- <policymodel1.name>MyFirstPolicyModel_0.0.1</policymodel1.name>
+ <policymodel1m.name>MyFirstPolicyModelMvel_0.0.1</policymodel1m.name>
+ <policymodel1j.name>MyFirstPolicyModelJavascript_0.0.1</policymodel1j.name>
<policymodel2.name>MyFirstPolicyModel_0.0.1</policymodel2.name>
</properties>
@@ -81,29 +82,26 @@
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
+ <!-- Generate the APEX Policy JSON files from the APEX CLI command -->
<execution>
- <id>generate-models</id>
+ <id>generate-policy1m</id>
<phase>compile</phase>
<goals>
<goal>java</goal>
</goals>
<configuration>
- <mainClass>org.onap.policy.apex.examples.myfirstpolicy.model.MfpDomainModelSaver</mainClass>
+ <mainClass>org.onap.policy.apex.auth.clieditor.ApexCommandLineEditorMain</mainClass>
<classpathScope>compile</classpathScope>
<arguments>
- <argument>${project.build.directory}/classes/examples/models/MyFirstPolicy</argument>
+ <argument>--command-file=${project.basedir}/src/main/resources/examples/models/MyFirstPolicy/1/${policymodel1m.name}.apex</argument>
+ <argument>--output-model-file=${project.build.directory}/classes/examples/models/MyFirstPolicy/1/${policymodel1m.name}.json</argument>
+ <argument>--log-file=${project.build.directory}/${policymodel1.name}_policygeneration.log</argument>
+ <argument>--working-dir=${project.basedir}</argument>
</arguments>
</configuration>
</execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>exec-maven-plugin</artifactId>
- <executions>
- <!-- Generate the APEX Policy JSON files from the APEX CLI command -->
<execution>
- <id>generate-policy1</id>
+ <id>generate-policy1j</id>
<phase>compile</phase>
<goals>
<goal>java</goal>
@@ -112,8 +110,8 @@
<mainClass>org.onap.policy.apex.auth.clieditor.ApexCommandLineEditorMain</mainClass>
<classpathScope>compile</classpathScope>
<arguments>
- <argument>--command-file=${project.basedir}/src/main/resources/examples/models/MyFirstPolicy/1/${policymodel1.name}.apex</argument>
- <argument>--output-model-file=${project.build.directory}/classes/examples/models/MyFirstPolicy/1/${policymodel1.name}.json</argument>
+ <argument>--command-file=${project.basedir}/src/main/resources/examples/models/MyFirstPolicy/1/${policymodel1j.name}.apex</argument>
+ <argument>--output-model-file=${project.build.directory}/classes/examples/models/MyFirstPolicy/1/${policymodel1j.name}.json</argument>
<argument>--log-file=${project.build.directory}/${policymodel1.name}_policygeneration.log</argument>
<argument>--working-dir=${project.basedir}</argument>
</arguments>