This is an automated email from the ASF dual-hosted git repository.

rfellows pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi.git


The following commit(s) were added to refs/heads/main by this push:
     new 634d914889 [NIFI-13471] make theme file path configurable during maven 
build (#9020)
634d914889 is described below

commit 634d914889de0f7cf502c53885acf4cd3bb84a64
Author: Scott Aslan <[email protected]>
AuthorDate: Wed Jul 17 16:25:02 2024 -0500

    [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
---
 nifi-frontend/pom.xml | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/nifi-frontend/pom.xml b/nifi-frontend/pom.xml
index b8554d635a..8e7bf11f30 100644
--- a/nifi-frontend/pom.xml
+++ b/nifi-frontend/pom.xml
@@ -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>

Reply via email to