[ome-users] How to make importer-cli not to use the full path as the image name

Chris Allan callan at lifesci.dundee.ac.uk
Tue Dec 15 16:48:24 GMT 2009


On 15 Dec 2009, at 13:48, Konstantin Kozlov wrote:

> On Tue, 15 Dec 2009 13:37:50 +0000
> Chris Allan <callan at lifesci.dundee.ac.uk> wrote:
>
> Hello Chris,
>
> Thanks for your help.

No problem.

>
>>
>> On 15 Dec 2009, at 13:33, Konstantin Kozlov wrote:
>>
>>> On Tue, 15 Dec 2009 13:21:47 +0000
>>> Chris Allan <callan at lifesci.dundee.ac.uk> wrote:
>>>
>>>>
>>>> On 15 Dec 2009, at 13:12, Konstantin Kozlov wrote:
>>>>
>>>>> On Tue, 15 Dec 2009 12:56:26 +0000
>>>>> Chris Allan <callan at blackcat.ca> wrote:
>>>>>
>>>>>>
>>>>>> On 15 Dec 2009, at 10:56, Konstantin Kozlov wrote:
>>>>>>
>>>>>>> Dear Colleagues,
>>>>>>
>>>>>> Hi Konstantin.
>>>>>>
>>>>>>>
>>>>>>> How to make the importer_cli version 4.1.1 not to use the full
>>>>>>> path as the name of the image?
>>>>>>
>>>>>> Have you tried using the "-n" flag?
>>>>>
>>>>> Yes, without success. Should this flag force the name of the image
>>>>> on the server?
>>>>
>>>> Yes.
>>>>
>>>>>
>>>>> can the problem be due to the fact that the server version is
>>>>> 4.1.0?
>>>>
>>>> Unlikely. This is the job of the Importer, not the server. Are you
>>>> using the importer from 4.1.1?
>>>>
>>>
>>> Yes, 4.1.0 importer put everything to Orphaned branch on the server,
>>> 4.1.1 put images to the right dataset but does not respect -n
>>> option. By the way, can you give me the successfull example of -n
>>> option? Can it be foo.tif, or mydataset/foo.tif, or something else?
>>
>> It should take whatever string you give it and set that as the Image
>> name. So yes, any of the above.
>
> I want to try another way to make it work. In ImportConfig.java there
> are functions to save/load values like useFullPath and
> overrideImageName. I suspect these control the program behavior but I
> can't figure out from where the values are loaded and where saved. I
> tried $HOME/omero/importer.ini and set useFullPath=false but it didn't
> work. Can you help me with that?

They're Java preferences. You can read more about them here:

http://java.sun.com/j2se/1.5.0/docs/guide/preferences/index.html

-Chris




More information about the ome-users mailing list