def generate_local_jnlp(options={})
      #
      # get a copy of the existing jnlp
      # (it should be easier than this)
      #
      @local_jnlp = Nokogiri::XML(@jnlp.to_s)
      #
      # we'll be working with the Hpricot root element
      #
      jnlp_elem = (@local_jnlp/"jnlp").first
      #
      # set the new codebase
      #
      jnlp_elem[:codebase] = "file:#{@local_cache_dir}"
      #
      # set the new href
      #
      jnlp_elem[:href] = @local_jnlp_href
      #
      # for each jar and nativelib remove the version
      # attribute and point the href to the local cache
      #
      @jars.each do |jar|
        j = @local_jnlp.at("//jar[@href=#{jar.href}]")
        j.remove_attribute(:version)
        if options[:include_pack_gz]
          j[:href] = jar.relative_local_path_pack_gz
        else
          j[:href] = jar.relative_local_path
        end
      end
      @nativelibs.each do |nativelib|
        nl = @local_jnlp.at("//nativelib[@href=#{nativelib.href}]")
        nl.remove_attribute(:version)
        if options[:include_pack_gz]
          nl[:href] = nativelib.relative_local_path_pack_gz
        else
          nl[:href] = nativelib.relative_local_path
        end
      end
    end
def generate_local_jnlp(options={})
      #
      # get a copy of the existing jnlp
      # (it should be easier than this)
      #
      @local_jnlp = Nokogiri::XML(@jnlp.to_s)
      #
      # we'll be working with the Hpricot root element
      #
      jnlp_elem = (@local_jnlp/"jnlp").first
      #
      # set the new codebase
      #
      jnlp_elem[:codebase] = "file:#{@local_cache_dir}"
      #
      # set the new href
      #
      jnlp_elem[:href] = @local_jnlp_href
      #
      # for each jar and nativelib remove the version
      # attribute and point the href to the local cache
      #
      @jars.each do |jar|
        j = @local_jnlp.at("//jar[@href=#{jar.href}]")
        j.remove_attribute(:version)
        if options[:include_pack_gz]
          j[:href] = jar.relative_local_path_pack_gz
        else
          j[:href] = jar.relative_local_path
        end
      end
      @nativelibs.each do |nativelib|
        nl = @local_jnlp.at("//nativelib[@href=#{nativelib.href}]")
        nl.remove_attribute(:version)
        if options[:include_pack_gz]
          nl[:href] = nativelib.relative_local_path_pack_gz
        else
          nl[:href] = nativelib.relative_local_path
        end
      end
    end
Copies the original Hpricot jnlp into @local_jnlp and
 modifies it to reference resources in the local cache.