Re: Bug report: File.directory () builtin function fails in -batch
Posted by
Carnë Draug on
Mar 14, 2014; 8:00pm
URL: http://imagej.273.s1.nabble.com/Bug-report-File-directory-builtin-function-fails-in-batch-tp5006917p5006931.html
On 14 March 2014 18:01, Rasband, Wayne (NIH/NIMH) [E]
<
[hidden email]> wrote:
> This bug should be fixed in the latest ImageJ daily build. With the daily build (1.48t12), this test macro ("test_macro.ijm")
>
> arg = getArgument();
> print("arg: "+arg);
> open(arg);
> print ("dir: "+File.directory ());
> print ("name: "+File.name ());
>
> works as expected when called on OS X using
>
> java -jar ij.jar -batch test_macro.ijm path_to_image
Hi Wayne
I have updated to 1.48t12 and using your example I can confirm that
the fix also works in Linux 32 bit.
> If it does not work as expected when called using the Fiji launcher then submit a bug report using Fiji's Help>Submit a Bug command.
I have also checked this and can confirm that the bug is fixed with
the 32 bit Linux FIJI launcher.
Kudos to dscho (I'm guessing that is Johannes Schindelin) who helped
on fixing this. I certainly don't deserve much recognition, I only
reported the bug and never even tried to read Java [1].
Thank you,
Carnë
[1]
https://github.com/imagej/imagej1/commit/68bfafe09233c84618876b8f7b8308913b0c9cba#commitcomment-5682840--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html