Changeset 411 for gssim_ui/branches
- Timestamp:
- 08/18/12 00:46:11 (13 years ago)
- 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 60 60 * Properties input data location 61 61 */ 62 protected String pInputLocation = "$ INPUT";62 protected String pInputLocation = "$input"; 63 63 } -
gssim_ui/branches/vine/gssimstudio/src/web/ui/flex/java/gssim/gssimstudio/flex/app/editor/GSSimStudio.java
r410 r411 251 251 copyFile(gssimInput + "/" + destFileName, destination); 252 252 if (workload != null && !workload.isEmpty()) { 253 copyFile( gssimInput + "/workloads/" + workload, destination);253 copyFile(fileManager, gssimInput + "/workloads/" + workload, destination); 254 254 } 255 255 if (resources != null && !resources.isEmpty()) { 256 copyFile( gssimInput + "/resources/" + resources, destination);256 copyFile(fileManager, gssimInput + "/resources/" + resources, destination); 257 257 } 258 258 if (topology != null && !topology.isEmpty()) { 259 copyFile( gssimInput + "/topologies/" + topology, destination);259 copyFile(fileManager, gssimInput + "/topologies/" + topology, destination); 260 260 } 261 261 … … 297 297 } 298 298 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 { 302 300 FileLocation sourceLocation = new FileLocation(src); 303 301 FileLocation destinationLocation = new FileLocation(dest); 304 FileManager fileManager = fileResourceManager.createFileManager(sourceLocation);305 302 TaskMonitor taskMonitor = fileManager.copy(sourceLocation, destinationLocation, TaskOptions.block()); 306 303 if (taskMonitor.completed()) {
Note: See TracChangeset
for help on using the changeset viewer.