title: Create a WAR file with version using ANT
body: <p>I have a problem trying to build a WAR file with a version number.
  This is my build.properties</p>
  
  <blockquote>
    <p>jboss.home=D\:\java\jboss-as-7.1.1.Final</p>
    
    <p>version=2.0</p>
  </blockquote>
  
  <p>And this is part of my ANT task</p>
  
  <pre><code>&lt;project name="AS2-jBoss7" basedir="../" default="deploy"&gt;
  
  &lt;!-- Configuraciones del proyecto --&gt;
  &lt;property name="project.distname" value="AS2" /&gt;
  
  &lt;!-- Paths locales del sistema --&gt;
  &lt;property file="${basedir}/ant/build.properties" /&gt;
  &lt;property name="webroot.dir" value="${basedir}/WebContent" /&gt;
  &lt;property name="webinf.dir" value="${webroot.dir}/WEB-INF" /&gt;
  &lt;property name="build.dir" value="build" /&gt;
  
  &lt;!-- Build project --&gt;
  &lt;target name="build" depends="prepare,compile" /&gt;
  &lt;target name="rebuild" depends="clean,prepare,compile" /&gt;
  
  &lt;!-- Crea el war de la aplicacion --&gt;
  &lt;target name="war" depends="build"&gt;
  &lt;mkdir dir="${build.dir}" /&gt;
  &lt;war basedir="${webroot.dir}" warfile="${build.dir}/${project.distname}_${version}.war"  webxml="${webinf.dir}/web.xml"&gt;
  &lt;exclude name="WEB-INF/${build.dir}/**" /&gt;
  &lt;exclude name="WEB-INF/otros/**" /&gt;
  &lt;/war&gt;
  &lt;/target&gt;
  
  &lt;!-- Despliega el proyecto --&gt;
  &lt;target name="deploy" depends="war"&gt;
  &lt;delete file="${deploy.dir}/${project.distname}.war" /&gt;
  &lt;delete dir="${deploy.dir}/${project.distname}" /&gt;
  &lt;copy file="${build.dir}/${project.distname}_${version}.war" todir="${deploy.dir}" /&gt;
  &lt;/target&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>When I build my WAR file the name is AS2_2.0.war and that is correct, but when I view the site in the web browser I have to write the url:</p>
  
  <pre><code>http://localhost:8030/AS2_2.0/login.jsf
  </code></pre>
  
  <p>What I want is that the WAR version is AS2_2.0 but the URL does not contain the version number, how could I do that?</p>