def cache_resources(dest_dir=@local_cache_dir, options=@options)
      unless dest_dir
        raise ArgumentError, "Must specify destination directory when caching resources", caller
      end
      self.local_cache_dir=dest_dir
      @local_resource_signatures_verified = true
      @jars.each do |jar|
        @local_resource_signatures_verified &&= jar.cache_resource(dest_dir, options)
      end
      @nativelibs.each do |nativelib|
        @local_resource_signatures_verified &&= nativelib.cache_resource(dest_dir, options)
      end
      if @local_resource_signatures_verified
        generate_local_jnlp
      end
      @local_resource_signatures_verified = @local_resource_signatures_verified ? true : false
    end
def cache_resources(dest_dir=@local_cache_dir, options=@options)
      unless dest_dir
        raise ArgumentError, "Must specify destination directory when caching resources", caller
      end
      self.local_cache_dir=dest_dir
      @local_resource_signatures_verified = true
      @jars.each do |jar|
        @local_resource_signatures_verified &&= jar.cache_resource(dest_dir, options)
      end
      @nativelibs.each do |nativelib|
        @local_resource_signatures_verified &&= nativelib.cache_resource(dest_dir, options)
      end
      if @local_resource_signatures_verified
        generate_local_jnlp
      end
      @local_resource_signatures_verified = @local_resource_signatures_verified ? true : false
    end
Copy all the jars and nativelib resources referenced in the Jnlp to
 a local cache dir passed in _dest_dir_. The structure of the cache directory
 and the naming using for the jar and nativelib files is the same as that used
 by the Java Web Start Download Servlet, see:
 * http://java.sun.com/javase/6/docs/technotes/guides/javaws/developersguide/downloadservletguide.html