title: How to read a property injected from file.properties in WSO2 - micro integrator?
body: <p>Is there a way to read the properties from file in wso2 using <strong>property mediator</strong>?</p>
  <p>I'm injecting an address uri from the file.properties, and passing the file path as -Dproperties.file.path argument to the startup script, it is able to resolve the varibale only within the address endpoint's uri attribute using the syntax $FILE:variableName as below:</p>
  <pre><code>                &lt;call&gt;
                      &lt;endpoint&gt;
                          &lt;address uri=&quot;$FILE:uploadPath&quot;&gt;
                              &lt;suspendOnFailure&gt;
                                  &lt;initialDuration&gt;-1&lt;/initialDuration&gt;
                                  &lt;progressionFactor&gt;1&lt;/progressionFactor&gt;
                              &lt;/suspendOnFailure&gt;
                              &lt;markForSuspension&gt;
                                  &lt;retriesBeforeSuspension&gt;0&lt;/retriesBeforeSuspension&gt;
                              &lt;/markForSuspension&gt;
                          &lt;/address&gt;
                      &lt;/endpoint&gt;
                  &lt;/call&gt;
  
             
  </code></pre>
  <p>But I also have the need to use the same property, do a minor transformation and pass it to a class mediator,</p>
  <p>I've tried the below approaches and none of them are working.</p>
  <pre><code>&lt;log level=&quot;custom&quot;&gt;
    &lt;property expression=&quot;$FILE:uploadPath&quot; name=&quot;file-path-1&quot;/&gt;
    &lt;property expression=&quot;$ctx:uploadPath&quot; name=&quot;file-path-2&quot;/&gt;
    &lt;property expression=&quot;$axis2:uploadPath&quot; name=&quot;file-path-3&quot;/&gt;
    &lt;property expression=&quot;$trp:uploadPath&quot; name=&quot;file-path-4&quot;/&gt;
    &lt;property expression=&quot;$axis2:POST_TO_URI&quot; name=&quot;POST_TO_URI&quot;/&gt;
  &lt;/log&gt;
  </code></pre>
  <p>Below are the versions of OS and tools that I'm using.
  OS: Mac os catalina,
  WSO2: micro-integrator 1.2.0, Integration sutdio - 7.1.0</p>