Changeset 452 for gssim_ui/branches


Ignore:
Timestamp:
09/07/12 18:05:38 (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

    r451 r452  
    9090                                if (property != null && properties[property] != null) 
    9191                                { 
    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"; 
     92                                        output += property + "=" + properties[property].toString() + "\r\n"; 
    9693                                } 
    9794                        } 
  • gssim_ui/branches/vine/gssimstudio/src/web/ui/flex/java/gssim/gssimstudio/flex/app/editor/GSSimStudio.java

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