Changeset 451 for gssim_ui/branches


Ignore:
Timestamp:
09/07/12 17:46:53 (13 years ago)
Author:
mcichenski
Message:
 
Location:
gssim_ui/branches/vine/gssimstudio/src/web/ui/flex
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • gssim_ui/branches/vine/gssimstudio/src/web/ui/flex/app/gssim/gssimstudio/editor/gssim/experiment/ExperimentProperties.as

    r429 r451  
    9090                                if (property != null && properties[property] != null) 
    9191                                { 
    92                                         if (property != gridSchedulingPlugin && property != localAllocPolicyPlugin && property != execTimeEstimationPlugin) 
    93                                                 output += property + "=" + properties[property].toString() + "\r\n"; 
    94                                         else 
    95                                                 output += property + "=" + properties[property].toString() + "\r\n"; 
     92                                        var value : String = properties[property].toString(); 
     93                                        //if file is a .zip then cut the extension in property file 
     94                                        if (property == resourceDescriptionFile && value.lastIndexOf(".zip") == value.length - 4) value = value.substr(0, value.length - 4); 
     95                                        output += property + "=" + value + "\r\n"; 
    9696                                } 
    9797                        } 
  • gssim_ui/branches/vine/gssimstudio/src/web/ui/flex/java/gssim/gssimstudio/flex/app/editor/GSSimStudio.java

    r450 r451  
    170170                String uniqueFolderName = "tmp" + String.valueOf(new Date().getTime()); 
    171171                fileContent = fileContent.replace(pInputLocation, "input"); 
    172                 if (resources.endsWith(".zip")) fileContent = fileContent.replace(resources, resources.split(".")[0]); 
    173172                uploadPropertyFile(destFileName, fileContent); 
    174173                 
Note: See TracChangeset for help on using the changeset viewer.