title: how can I use System.getProperty in persistence.xml file
body: <p>I'm workin in on java project ( with maven) I have a file (env-dev-windows.vars) for config like this :</p>
  <pre><code>APPLICATION_LOG_DIR=C:\DIRLOG
  APPLICATION_BDD_URL=jdbc::PostgreSQL://localhost:5432/postgres
  APPLICATION_USER=user_name
  APPLICATION_PASSWD=passwd
  ...
  </code></pre>
  <p>in persistence.xml file instead of using the username and password like this  :</p>
  <pre><code>    &lt;property name=&quot;javax.persistence.jdbc.driver&quot; value=&quot;org.postgresql.Driver&quot; /&gt;
          &lt;property name=&quot;javax.persistence.jdbc.url&quot; value=&quot;jdbc:postgresql://localhost:5432/test&quot; /&gt;
          &lt;property name=&quot;javax.persistence.jdbc.user&quot; value=&quot;postgres&quot; /&gt;
          &lt;property name=&quot;javax.persistence.jdbc.password&quot; value=&quot;James123&quot; /&gt;
  </code></pre>
  <p>I want to replace them with</p>
  <pre><code>System.getProperty(&quot;APPLICATION_USER&quot;) 
  and System.getProperty(&quot;APPLICATION_PASSWD&quot;) 
  </code></pre>
  <p>I just want to use the Application properties and not for exemple ( the windows env variables defined in a local machine (in the parameters of a machine)</p>
  <p>Is this possible ? for the moment I have no idea how to do it? is there another alternative</p>