diff --git a/tools/ExperimentSynchronizer/src/gov/anl/dm/esafsync/serviceconn/DaqServiceConnection.java b/tools/ExperimentSynchronizer/src/gov/anl/dm/esafsync/serviceconn/DaqServiceConnection.java index 9107628bf0fd1f0f988eb4a63f023c80aa36ded4..6ea9afd24d422d001dcc1f39ff87ae10384ace6a 100644 --- a/tools/ExperimentSynchronizer/src/gov/anl/dm/esafsync/serviceconn/DaqServiceConnection.java +++ b/tools/ExperimentSynchronizer/src/gov/anl/dm/esafsync/serviceconn/DaqServiceConnection.java @@ -45,23 +45,7 @@ public class DaqServiceConnection extends ServiceConnection{ data.put(Keyword.DAQ_EXPERIMENT_NAME, encode(experimentName)); data.put(Keyword.DAQ_DATA_DIRECTORY, encode(directory)); - if ((new File(directory)).exists()) { - invokeSessionPostRequest(StorageServUrl.START_DAQ, data); - } else if ((new File(dateDirectory)).exists()) { - if (new File(directory).mkdir()) { - invokeSessionPostRequest(StorageServUrl.START_DAQ, data); - } else { - JOptionPane.showMessageDialog(null,"Can't start experiment " + experimentName + " in DAQ service. The experiment directory can't be created.", - "Warning",JOptionPane.WARNING_MESSAGE); - } - } else { - if ((new File(dateDirectory).mkdir()) && (new File(directory).mkdir())) { - invokeSessionPostRequest(StorageServUrl.START_DAQ, data); - } else { - JOptionPane.showMessageDialog(null,"Can't start experiment " + experimentName + " in DAQ service. The experiment directory can't be created.", - "Warning",JOptionPane.WARNING_MESSAGE); - } - } + invokeSessionPostRequest(StorageServUrl.START_DAQ, data); } public void stopDaq(String experimentName) {