title: Generate .war file from web app containing just HTML, CSS & JavaScript
body: <p>I am trying to create a war file that will be deployed on a web/application server. </p>
  
  <p>The source files of the app are purely HTML, CSS, and JavaScript. There is a separate war file for our REST API and for the rest of our backend code. </p>
  
  <p>Most of the guides out there talk about using java to compile, and pointing to WEB-INF folders etc. </p>
  
  <p>However, as I mentioned, in the HTML/CSS/JS war, I don't use any Java, don't use WEB-INF, and there are no servlets or other things you would normally see in a "Java" war file.  </p>
  
  <p>How do I compile or create this type of war file?</p>
  
  <p>The contents look like this: </p>
  
  <p>WebContent/HTML
  WebContent/CSS
  WebContent/JS</p>
  
  <p>All libraries for JavaScript contained within JS folder. </p>
  
  <p>Would this work: Simply run:</p>
  
  <pre><code>src.dist="./WebContent"
  app.name="example"
  app.version=1
  work.home="./temp"
  
  jar jarfile="${src.dist}/${app.name}-${app.version}.war"
       basedir="${work.home}"
  </code></pre>
  
  <p>Obviously I would have set up the rest of the script correctly. </p>