I am running the workbench from the nightly build, and have a weird "file not found problem". here is what I do: I have two versions of a very simple beanshell script. The first looks like this (I have simplified for debugging) :
==== File RootDirInfo = new File(CSVRootPath); if (!RootDirInfo.exists()) fileExists = "false"; else fileExists = "true"; out0 = CSVRootPath; ==== here CSVRootPath is an input port, with value "/Users/paolo/Documents/myGRID/OPM/PC3/SampleData/J062941/". The value can be checked by reading out0 as expected. Although the directory does exist in my file system, the result is fileExists = "false" now if I change the script to use a /constant/ with the same string value as the original input: ==== String s = "/Users/paolo/Documents/myGRID/OPM/PC3/SampleData/J062941/"; out0 = CSVRootPath; File RootDirInfo = new File(s); if (!RootDirInfo.exists()) fileExists = "false"; else fileExists = "true"; === I now get fileExists = "true", as expected. Any ideas??? this is definitely a show-stopper for me because I am wrapping existing Java code using a number of Beanshells, and they all pretty much read files from the local file system Thank you for any insight, -Paolo ------------------------------------------------------------------------------ _______________________________________________ taverna-hackers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/taverna-hackers Developers Guide: http://www.mygrid.org.uk/usermanual1.7/dev_guide.html FAQ: http://www.mygrid.org.uk/wiki/Mygrid/TavernaFaq
