Changeset 411 for gssim_ui/branches


Ignore:
Timestamp:
08/18/12 00:46:11 (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

    r408 r411  
    6060         * Properties input data location 
    6161         */ 
    62         protected String pInputLocation = "$INPUT"; 
     62        protected String pInputLocation = "$input"; 
    6363} 
  • gssim_ui/branches/vine/gssimstudio/src/web/ui/flex/java/gssim/gssimstudio/flex/app/editor/GSSimStudio.java

    r410 r411  
    251251            copyFile(gssimInput + "/" + destFileName, destination); 
    252252            if (workload != null && !workload.isEmpty()) { 
    253                 copyFile(gssimInput + "/workloads/" + workload, destination); 
     253                copyFile(fileManager, gssimInput + "/workloads/" + workload, destination); 
    254254            } 
    255255            if (resources != null && !resources.isEmpty()) { 
    256                 copyFile(gssimInput + "/resources/" + resources, destination); 
     256                copyFile(fileManager, gssimInput + "/resources/" + resources, destination); 
    257257            } 
    258258            if (topology != null && !topology.isEmpty()) { 
    259                 copyFile(gssimInput + "/topologies/" + topology, destination); 
     259                copyFile(fileManager, gssimInput + "/topologies/" + topology, destination); 
    260260            } 
    261261                         
     
    297297        } 
    298298     
    299     private void copyFile(String src, String dest) throws MalformedURLException { 
    300         ServiceContext serviceContext = VineFlexUtilClass.getServiceContext(); 
    301         FileResourceManager fileResourceManager = getFileResourceManager(serviceContext); 
     299    private void copyFile(FileManager fileManager, String src, String dest) throws MalformedURLException { 
    302300        FileLocation sourceLocation = new FileLocation(src); 
    303301        FileLocation destinationLocation = new FileLocation(dest); 
    304         FileManager fileManager = fileResourceManager.createFileManager(sourceLocation); 
    305302        TaskMonitor taskMonitor = fileManager.copy(sourceLocation, destinationLocation, TaskOptions.block()); 
    306303        if (taskMonitor.completed()) { 
Note: See TracChangeset for help on using the changeset viewer.