title: I need to make an application-test.properties path 100% unique at startup for a spring boot unit test
body: <p>I need to make an application-test.properties path 100% unique at startup for a spring boot unit test.</p>
  
  <p>I was thinking I could use the current time in milliseconds, or a generated UUID, but I don't know how I would do that from within a properties file.</p>
  
  <p>I'm using some of the jenkins variables plus some defaults for local testing to get it closer, but it's not 100% certain due to the way the pipeline was set up.</p>
  
  <h3>Current application-test.properties:</h3>
  
  <pre><code>data.path=tmp/Bob/test-${BRANCH_NAME:local}-${BUILD_ID:local}/source
  </code></pre>
  
  <h3>I'm looking for something like this:</h3>
  
  <pre><code>data.path=tmp/Bob/test-${BRANCH_NAME:local}-${BUILD_ID:local}-${UUID.randomUUID().toString())}/source
  </code></pre>
  
  <p>or</p>
  
  <pre><code>data.path=tmp/Bob/test-${BRANCH_NAME:local}-${BUILD_ID:local}-${System.currentTimeMillis()}/source
  </code></pre>
  
  <p>or
  something similar.</p>
  
  Note: I can't mess with the pipeline at this time, or I'd just create a variable for this purpose.