title: Eclipse Tomcat - Context environment variable
body: <p>I use eclipse + tomcat + maven.</p>
  
  <p>When I deploy my project to Tomcat, the following entry gets added to the server.xml of the tomcat configuration:</p>
  
  <pre><code>&lt;Context docBase="C:\ws_eclipse\ws\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\MyApp" path="/myApp" reloadable="true" source="org.eclipse.jst.jee.server:MyApp"/&gt;
  </code></pre>
  
  <p>What I actually want is to add an environment variable so that the context looks like this:</p>
  
  <pre><code>  &lt;Context docBase="C:\ws_eclipse\ws\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\MyApp" path="/myApp" reloadable="true" source="org.eclipse.jst.jee.server:MyApp"&gt;
         &lt;Environment name="config.file" type="java.lang.String" value="C:/test/config.xml" /&gt; 
  &lt;/Context&gt;
  </code></pre>
  
  <p>I tried adding it as an environment variable in eclipse run configuration, but when I deployed the application on tomcat, the context does not include the environment variable.</p>