Changeset 1547 for trunk


Ignore:
Timestamp:
06/18/12 23:21:00 (12 years ago)
Author:
wschamai
Message:

BUG FIX: copy of the code-sync folder for verification sessions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/modelicaml/org.openmodelica.modelicaml.simulation/src/org/openmodelica/modelicaml/simulation/handlers/GenerateTestSiMDataAction.java

    r1543 r1547  
    360360
    361361            /*
    362              * copy also the code-sync folder
     362             * copy also the code-sync folder if it exists
    363363             */
    364364            IFileStore codeSyncDir = fileSystem.getStore(URI.create(VerificationExecutionServices.projectAbsolutePath + "/" + Constants.folderName_code_sync));
    365365            IFileStore testSessionCodeSyncDir = fileSystem.getStore(URI.create(VerificationExecutionServices.verificationSessionFolderAbsolutePath + "/" + Constants.folderName_code_sync));
    366             codeSyncDir.copy(testSessionCodeSyncDir, EFS.NONE, null);
     366            if (codeSyncDir.fetchInfo().exists()) {
     367                codeSyncDir.copy(testSessionCodeSyncDir, EFS.NONE, null);
     368            }
    367369           
    368370            // refresh the project browser
Note: See TracChangeset for help on using the changeset viewer.