aboutsummaryrefslogtreecommitdiffstats
path: root/cps-ncmp-rest
diff options
context:
space:
mode:
authoregernug <gerard.nugent@est.tech>2024-10-10 10:11:27 +0100
committeregernug <gerard.nugent@est.tech>2024-10-10 11:08:06 +0100
commit076b1b140925168e0c1eb0ffad2ae1e648010d1f (patch)
treec7fc2c5db364ea6efb8105a7328cf91f8e066156 /cps-ncmp-rest
parent0af02bffdb13debee6a65c803ba680bd921a3cdf (diff)
Copy Swagger file to docs folder
To avoid manual copy/paste errors updates to docs folder for RTD are generated and copied when compiling CPS Issue-ID: CPS-2332 Change-Id: I1a64f7cc74a82341403f8125adc5216ef046429c Signed-off-by: egernug <gerard.nugent@est.tech>
Diffstat (limited to 'cps-ncmp-rest')
-rw-r--r--cps-ncmp-rest/pom.xml19
1 files changed, 19 insertions, 0 deletions
diff --git a/cps-ncmp-rest/pom.xml b/cps-ncmp-rest/pom.xml
index d46767e72c..e6c01cbe8a 100644
--- a/cps-ncmp-rest/pom.xml
+++ b/cps-ncmp-rest/pom.xml
@@ -231,6 +231,25 @@
</resources>
</configuration>
</execution>
+ <execution>
+ <id>copy-to-docs-folder</id>
+ <phase>compile</phase>
+ <goals>
+ <goal>copy-resources</goal>
+ </goals>
+ <configuration>
+ <outputDirectory>${project.basedir}/../docs/api/swagger/ncmp</outputDirectory>
+ <overwrite>true</overwrite>
+ <resources>
+ <resource>
+ <directory>${project.basedir}/target/generated-sources/openapi/</directory>
+ <includes>
+ <include>openapi*.yaml</include>
+ </includes>
+ </resource>
+ </resources>
+ </configuration>
+ </execution>
</executions>
</plugin>
</plugins>