rem: CCKCopyFile(listitem.label, destdir); 
add: CCKCopyFile(listitem.getAttribute("label"), destdir); 
context: function CreateCCK(){   gPrefBranch.setCharPref("cck.path_to_zip", document.getElementById("zipLocation").value);/* ---------- */  var destdir = Components.classes["@mozilla.org/file/local;1"]                          .createInstance(Components.interfaces.nsILocalFile);  destdir.initWithPath(currentconfigpath);    CCKWriteConfigFile(destdir);  destdir.append("jar");  try {    destdir.remove(true);  } catch(ex) {}    destdir.append("content");  destdir.append("cck");  try {    destdir.create(Components.interfaces.nsIFile.DIRECTORY_TYPE, 0775);  } catch(ex) {}    CCKWriteXULOverlay(destdir);  CCKWriteDTD(destdir);  CCKWriteCSS(destdir);  CCKWriteProperties(destdir);  CCKCopyFile(document.getElementById("iconURL").value, destdir);  CCKCopyFile(document.getElementById("LargeAnimPath").value, destdir);  CCKCopyFile(document.getElementById("LargeStillPath").value, destdir);  CCKCopyChromeToFile("cck.js", destdir)  if (document.getElementById("noaboutconfig").checked)    CCKCopyChromeToFile("cck-config.css", destdir)  listbox = document.getElementById('certList');  for (var i=0; i < listbox.getRowCount(); i++) {    listitem = listbox.getItemAtIndex(i);    CCKCopyFile(listitem.label, destdir);  }/* copy/create contents.rdf if 1.0 */  var zipdir = Components.classes["@mozilla.org/file/local;1"]                         .createInstance(Components.interfaces.nsILocalFile);  zipdir.initWithPath(currentconfigpath);  zipdir.append("jar");  CCKZip("cck.jar", zipdir, "content");  /* ---------- */  destdir.initWithPath(currentconfigpath);  destdir.append("xpi");  try {    destdir.remove(true);  } catch(ex) {}  try {    destdir.create(Components.interfaces.nsIFile.DIRECTORY_TYPE, 0775);      } catch(ex) {}    CCKWriteConfigFile(destdir);    destdir.append("chrome");  try {    destdir.create(Components.interfaces.nsIFile.DIRECTORY_TYPE, 0775);  } catch(ex) {}  zipdir.append("cck.jar");  CCKCopyFile(zipdir.path, destdir);/* ---------- */  destdir.initWithPath(currentconfigpath);  destdir.append("xpi");  destdir.append("components");  try {    destdir.create(Components.interfaces.nsIFile.DIRECTORY_TYPE, 0775);  } catch(ex) {}  CCKCopyChromeToFile("cckService.js", destdir);  if (document.getElementById("noaboutconfig").checked)    CCKCopyChromeToFile("disableAboutConfig.js", destdir);  /* ---------- */  destdir.initWithPath(currentconfigpath);  destdir.append("xpi");  destdir.append("defaults");  destdir.append("preferences");  try {    destdir.create(Components.interfaces.nsIFile.DIRECTORY_TYPE, 0775);  } catch(ex) {}  CCKWriteDefaultJS(destdir)  /* ---------- */  destdir.initWithPath(currentconfigpath);  destdir.append("xpi");  destdir.append("platform");  try {    destdir.remove(true);    destdir.create(Components.interfaces.nsIFile.DIRECTORY_TYPE, 0775);  } catch(ex) {}  listbox = document.getElementById('browserPluginList');  for (var i=0; i < listbox.getRowCount(); i++) {    listitem = listbox.getItemAtIndex(i);    var pluginsubdir = destdir.clone();    /* If there is no value, assume windows - this should only happen for migration */    if (listitem.value) {      pluginsubdir.append(listitem.value);    } else {      pluginsubdir.append("WINNT_x86-msvc");    }    pluginsubdir.append("plugins");    try {      pluginsubdir.create(Components.interfaces.nsIFile.DIRECTORY_TYPE, 0775);    } catch(ex) {}    CCKCopyFile(listitem.label, pluginsubdir);  }  destdir.initWithPath(currentconfigpath);  destdir.append("xpi");  destdir.append("searchplugins");  try {    destdir.remove(true);    destdir.create(Components.interfaces.nsIFile.DIRECTORY_TYPE, 0775);  } catch(ex) {}    listbox = document.getElementById('searchEngineList');  for (var i=0; i < listbox.getRowCount(); i++) {    listitem = listbox.getItemAtIndex(i);    CCKCopyFile(listitem.label, destdir);    CCKCopyFile(listitem.value, destdir);  }  destdir.initWithPath(currentconfigpath);  destdir.append("xpi");  CCKCopyChromeToFile("chrome.manifest", destdir)  CCKWriteInstallRDF(destdir);           CCKWriteInstallJS(destdir);  var filename = document.getElementById("filename").value;  if (filename.length == 0)    filename = "cck";  filename += ".xpi";  CCKZip("cck.xpi", destdir,         "chrome", "components", "defaults", "platform", "searchplugins", "chrome.manifest", "install.rdf", "install.js", "cck.config");  var outputdir = Components.classes["@mozilla.org/file/local;1"]                            .createInstance(Components.interfaces.nsILocalFile);  outputdir.initWithPath(currentconfigpath);  destdir.append("cck.xpi");    if (document.getElementById('bundleList').getRowCount() == 0) {    outputdir.append(filename);    try {      outputdir.remove(true);    } catch(ex) {}    outputdir = outputdir.parent;    destdir.copyTo(outputdir, filename);  } else {    var packagedir = Components.classes["@mozilla.org/file/local;1"]                               .createInstance(Components.interfaces.nsILocalFile);                                                                                                                 packagedir.initWithPath(currentconfigpath);    packagedir.append("package");      try {      packagedir.remove(true);      packagedir.create(Components.interfaces.nsIFile.DIRECTORY_TYPE, 0775);    } catch(ex) {}    CCKCopyFile(destdir.path, packagedir);    listbox = document.getElementById('bundleList');    for (var i=0; i < listbox.getRowCount(); i++) {          listitem = listbox.getItemAtIndex(i);      CCKCopyFile(listitem.label, packagedir);    }    CCKCopyChromeToFile("install.rdf.mip", packagedir)    packagedir.append("install.rdf.mip");    packagedir.moveTo(packagedir.parent, "install.rdf");    packagedir = packagedir.parent;    CCKZip("cck.zip", packagedir, "*.xpi", "*.jar", "install.rdf");    packagedir.append("cck.zip");    outputdir.append(filename);    try {      outputdir.remove(true);    } catch(ex) {}    outputdir = outputdir.parent;    packagedir.copyTo(outputdir, filename);  }  var bundle = document.getElementById("bundle_cckwizard");  outputdir.append(filename);  gPromptService.alert(window, bundle.getString("windowTitle"),                       bundle.getString("outputLocation") + outputdir.path);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/cb3ed131924c11734475d0a28e5563f422df9be3/cckwizard.js/buggy/extensions/cck/browser/resources/content/cckwizard/cckwizard.js