# this code is to list the zipped applets that can be installed def fillziptoinstallname(inffile) applet = inffile.gsub(/\.zip$/, "") @a_installapplet = applet end def listzipfilestoinstall if $zipslocation.slice(0,1) == "/" || $zipslocation.include?(":") startlangdir = $zipslocation else startlangdir = File.join($progdir, $zipslocation ) end #get a list of the files and subdirectories on the starting directory only a = Array.new(Dir["#{startlangdir}/*"].entries.sort) #loop through and get the files names a.each do |x| # only zip files if x =~ /\.zip/ #adds the file to the array to display on the screen $zipsarraylocal = $zipsarraylocal | ["#{x}"] end end @zipslistresult = $zipsarraylocal.rwd_method("fillziptoinstallname") end