title: Can I use property placeholders in Jetty-env.xml?
body: <p>I am working on a project that uses jetty-env.xml to define some resources in the test environment. It requires that I hijack it and put in my username and password for the resources. Is there a way to define my credentials in an external way and use a property placeholder instead? Like in the Spring applicationConfig.xml I can use ${username} as defined in my system properties.</p>
  
  <pre><code>&lt;?xml version="1.0"  encoding="ISO-8859-1"?&gt;
  &lt;!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd"&gt;
  &lt;Configure id="wac" class="org.mortbay.jetty.webapp.WebAppContext"&gt;
  &lt;New id="validation_mail" class="org.mortbay.jetty.plus.naming.Resource"&gt;
      &lt;Arg&gt;mail/exampleMail&lt;/Arg&gt;
      &lt;Arg&gt;
          &lt;New class="org.mortbay.naming.factories.MailSessionReference"&gt;
              &lt;Set name="user"&gt;&lt;/Set&gt;
              &lt;Set name="password"&gt;&lt;/Set&gt;
              &lt;Set name="properties"&gt;
                  &lt;New class="java.util.Properties"&gt;
                      &lt;Put name="mail.smtp.host"&gt;mail.example.edu&lt;/Put&gt;
                  &lt;/New&gt;
              &lt;/Set&gt;
          &lt;/New&gt;
      &lt;/Arg&gt;
  &lt;/New&gt;
  
  &lt;New id="datasource" class="org.mortbay.jetty.plus.naming.Resource"&gt;
      &lt;Arg&gt;jdbc/DataSource&lt;/Arg&gt;
      &lt;Arg&gt;
          &lt;New class="com.sybase.jdbc3.jdbc.SybDataSource"&gt;
              &lt;Set name="databaseName"&gt;example&lt;/Set&gt;
              &lt;Set name="serverName"&gt;testip.example.edu:2025&lt;/Set&gt;
              &lt;Set name="portNumber"&gt;2025&lt;/Set&gt;
              &lt;Set name="user"&gt;username&lt;/Set&gt; &lt;!-- put username here --&gt;
              &lt;Set name="password"&gt;password&lt;/Set&gt; &lt;!-- put password here --&gt;
          &lt;/New&gt;
      &lt;/Arg&gt;
  &lt;/New&gt;
  </code></pre>
  
  <p>I new to these tools so I might be closer to an answer than I think. Any help would be appreciated.</p>
  
  <p>Enviroment:
  Spring Tool Suite 3.4.0 RELEASE
  Maven 3
  Jetty Plugin 6.1
  Spring 3</p>