File copy bug in mccaskey/joblauncherRefactor
Steps to replicate:
- Create Existing Moose Workflow Item
- Launch (succeeds)
- Invalidate the Tree
- Launch to get appropriate tree validation error
- Fix tree and relaunch (expected successful execution)
The JobLaunchAction fails to copy files to the local iceLaunch_* directory. Specifically, we get
17:33:52.325 [Thread-175] INFO o.e.ice.item.action.JobLaunchAction - JobLaunchAction copying launchJob_20151214053326.sh to local job launch folder: /Users/aqw/iceworkspace/moose_test_project/jobs/iceLaunch_20151214053352. 17:33:52.329 [Thread-175] ERROR o.e.ice.item.action.JobLaunchAction - JobLaunchAction Error - Could not copy files from the project space to the job folder. org.eclipse.core.internal.resources.ResourceException: Resource '/moose_test_project/launchJob_20151214053326.sh' does not exist. at org.eclipse.core.internal.resources.Resource.checkExists(Resource.java:334) ~[na:na] at org.eclipse.core.internal.resources.Resource.checkAccessible(Resource.java:208) ~[na:na] at org.eclipse.core.internal.resources.File.getContents(File.java:267) ~[na:na] at org.eclipse.core.internal.resources.File.getContents(File.java:260) ~[na:na] at org.eclipse.ice.item.action.JobLaunchAction.run(JobLaunchAction.java:1464) ~[na:na] at java.lang.Thread.run(Thread.java:745) [na:1.8.0_65]
I've only seen this in the new joblauncherRefactor branch, so I probably introduced it somehow. Starting this tracker mainly as a reminder to fix this.