Ignore:
Timestamp:
08/18/12 00:20:34 (13 years ago)
Author:
mcichenski
Message:
 
Location:
gssim_ui/branches/vine/gssimstudio/src/web/ui/flex/java/gssim/gssimstudio/flex/app/editor
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • gssim_ui/branches/vine/gssimstudio/src/web/ui/flex/java/gssim/gssimstudio/flex/app/editor/DatabaseHelper.java

    r370 r408  
    5656         */ 
    5757        protected String jdOutputLocation = "$OUTPUT_LOCATION"; 
     58         
     59        /** 
     60         * Properties input data location 
     61         */ 
     62        protected String pInputLocation = "$INPUT"; 
    5863} 
  • gssim_ui/branches/vine/gssimstudio/src/web/ui/flex/java/gssim/gssimstudio/flex/app/editor/GSSimStudio.java

    r407 r408  
    161161     
    162162    @BlazeDsMethod() 
    163         public GSSimStudioModel uploadAndSubmitExperiment(String destFileName, String fileContent) throws IOException { 
     163        public GSSimStudioModel uploadAndSubmitExperiment(String destFileName, String fileContent, String workload, String resources, String topology) throws IOException { 
    164164        GSSimStudioModel model = getModel(); 
    165165         
     
    168168                Integer expId = addExperimentToDb(expName, metaexpName); 
    169169                fileContent += "experiment.id="+expId.toString(); 
     170                String uniqueFolderName = "tmp" + String.valueOf(new Date().getTime()); 
     171                fileContent = fileContent.replace(pInputLocation, uniqueFolderName) 
    170172                uploadPropertyFile(destFileName, fileContent); 
    171173                 
     
    250252            String destination = gssimInput + "/" + uniqueFolderName + "/"; 
    251253            copyFile(gssimInput + "/" + destFileName, destination); 
     254            if (workload != null && !workload.isEmpty()) { 
     255                copyFile(gssimInput + "/workloads/" + workload, destination); 
     256            } 
     257            if (resources != null && !resources.isEmpty()) { 
     258                copyFile(gssimInput + "/resources/" + resources, destination); 
     259            } 
     260            if (topology != null && !topology.isEmpty()) { 
     261                copyFile(gssimInput + "/topologies/" + topology, destination); 
     262            } 
    252263                         
    253264                } catch (SQLException e) { 
Note: See TracChangeset for help on using the changeset viewer.