title: How to copy jar files to WEB-INF/lib using Grunt
body: <p>I am new to Grunt build. Here my requirement is, create WEB-INF/lib directory and copy Jar files into it while doing war task using Grunt build.</p>
  
  <p>Below is the sample of my war.js:</p>
  
  <pre><code>module.exports = {
  /*
   * Build a WAR (web archive) without Maven or the JVM installed.
   */
  
  target: {
      options: {
          war_dist_folder: 'deploy',
          /* Folder to generate the WAR into */
          war_name: 'mySampleApp',
          /* The name fo the WAR file (.war will be the extension) */
          webxml_webapp_version: '2.5',
          war_extras: [{
                  filename: 'WEB-INF/weblogic.xml',
                  data: '&lt;?xml version = "1.0" encoding = "US-ASCII"?&gt; \n\n\
                          &lt;weblogic-web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" \n\n\
                          xsi:schemaLocation="http://www.bea.com/ns/weblogic/weblogic-web-app http://www.bea.com/ns/weblogic/weblogic-web-app/1.0/weblogic-web-app.xsd http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd" \n\n\
                          xmlns="http://www.bea.com/ns/weblogic/weblogic-web-app"&gt; \n\n\
                              &lt;context-root&gt;my-sample-app&lt;/context-root&gt; \n\n\
                              &lt;session-descriptor&gt; \n\n\
                                &lt;timeout-secs&gt;1800&lt;/timeout-secs&gt; \n\n\
                                 &lt;cookie-name&gt;JSESSIONID&lt;/cookie-name&gt; \n\n\
                                  &lt;cookie-path&gt;/my-sample-app&lt;/cookie-path&gt;  \n\n\
                                  &lt;url-rewriting-enabled&gt;false&lt;/url-rewriting-enabled&gt;  \n\n\
                              &lt;/session-descriptor&gt; \n\n\
                          &lt;/weblogic-web-app&gt;'
              }],
          /* the war_extras are extra files to be generated, needed since grunt-war doesn't create a weblogic.xml */
          webxml_welcome: 'index.html',
          /* to point web.xml to the default page */
          webxml_webapp_extras: ['&lt;login-config /&gt;\n', 
                                 '&lt;session-config&gt;\n    \n\
                                      &lt;session-timeout&gt;\n    30\n    &lt;/session-timeout&gt;\n\n\
                                  &lt;/session-config&gt;\n',
                                  '&lt;servlet&gt;\n   \n\
                                      &lt;servlet-name&gt;\n    MyServlet\n    &lt;/servlet-name&gt;\n\n\
                                      &lt;servlet-class&gt;com.sample.servlet.MyServlet&lt;/servlet-class&gt;\n\n\
                                  &lt;/servlet&gt;\n',
                                  '&lt;servlet-mapping&gt;\n\
                                      &lt;servlet-name&gt;MyServlet&lt;/servlet-name&gt;\n\
                                      &lt;url-pattern&gt;/maySampleApp&lt;/url-pattern&gt;    \n\
                                  &lt;/servlet-mapping&gt;'
                                ]
  
      },
      files: [{
              expand: true,
              cwd: 'release',
              /* find the source files for the WAR in the /release folder */
              src: ['**'],
              dest: ''
          }]
      }
  };
  </code></pre>
  
  <p>Please provide me instructions to create WEB-INF/lib directory and copying the jar files into it.</p>