Hi,

 

How do I use variable substitution using a separate file with groovy configuration?

 

I tried xml to groovy translate tool but I got an error message

// File attribute not supported for <property> element

 

 

<configuration>

 
<property file="src/main/java/chapters/configuration/variables1.properties" />

 
<appender name="FILE" class="ch.qos.logback.core.FileAppender">
     
<file>${USER_HOME}/myApp.log</file>
     
<encoder>
       
<pattern>%msg%n</pattern>
     
</encoder>
   
</appender>

   
<root level="debug">
     
<appender-ref ref="FILE" />
   
</root>
</configuration>

 

 

Regards,

 

Arsene