[NIFI-13471] make theme file path configurable during maven build (#9020)

* [NIFI-13471] make theme file path configurable during maven build

* address review feedback

This closes #9020
This commit is contained in:
Scott Aslan 2024-07-17 16:25:02 -05:00 committed by GitHub
parent ca227c7cd0
commit 634d914889
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 4 deletions

View File

@ -33,10 +33,13 @@
<frontend.working.dir>${project.build.directory}/frontend-working-directory</frontend.working.dir>
<copy-rename-maven-plugin.version>1.0.1</copy-rename-maven-plugin.version>
<!--
String name of the theme file to be used.
Ex: 'purple' // will overwrite the 'material' theme file with the 'purple' theme.
Path to the theme file to be used.
-->
<frontend.theme>material</frontend.theme>
<frontend.theme.dir>${frontend.working.dir}/libs/shared/src/assets/themes</frontend.theme.dir>
<!--
Name of the theme file to be used.
-->
<frontend.theme.name>material</frontend.theme.name>
<frontend.skipTests>true</frontend.skipTests>
</properties>
@ -166,7 +169,7 @@
<goal>copy</goal>
</goals>
<configuration>
<sourceFile>${frontend.working.dir}/libs/shared/src/assets/themes/${frontend.theme}.scss</sourceFile>
<sourceFile>${frontend.theme.dir}/${frontend.theme.name}.scss</sourceFile>
<destinationFile>${frontend.working.dir}/libs/shared/src/assets/themes/material.scss</destinationFile>
</configuration>
</execution>