Chad Matsalla wrote:
> 
> Nicklas Nordborg wrote:
>>> Can you tell me how to create the appropriate file objects when the files
>>> are here and not connected to the base datbaase?
>> This is not possible. The plugin expects net.sf.basedb.core.File objects
>> not java.io.File object. And you can't work with XxxxData (FileData,
>> SpotImagesData) objects. These are only used internally in BASE. You
>> must use the corresponding objects from the net.sf.basedb.core package
>> (File, SpotImages, etc.)
>  
> Can you please tell me the best way to do that? I've been looking through
> the plugin and test code and I'm mystified.
 >
> I've uploaded the files into the BASE2 directory Root/chad/13298608_532.tif
> and Root/chad/images/13298608_635.tif.
>  
> Somehow, I need to build a connection to the BASE2 server running on the
> host base2server' using the base2 username 'chad' and some password. Then I
> need to get a reference to those files and pass it to the spot finder.
>  
> Is there some documentation I can read or can you give me some example code?
> 
> I tried to mimic the 'ExampleAnalyzer.java' class but I think it's designed
> to work in the gui. I'm now trying to mimic the migrator because it runs on
> the commandline. I see that it reads a base.config so I started by copying
> the base.config from the server named base2server.
> 
> I think I'm on the wrong track because I need to connect to a running base2
> server to ask for the files. Is this the case?
> 

You can check the src/test/TestSpotImages.java file. It contains 
everything that is needed to create the spot images using our test data. 
It shouldn't be to hard to modify this code to use your files instead. 
You will of course have to download the source distribution or check it 
out from the subversion repository. How to do that is described on the 
download page. Another useful document is: 
http://base.thep.lu.se/chrome/site/doc/development/build.html

You can also check the code for the SpotImageCreator plugin.

The ExampleAnalyzer is a plugin and must run on the server.

If you are going to run it from the command line it is best to use the 
same server as your BASE is running on. Otherwise you will need to open 
up MySQL and the file system so it becomes accessible from the other 
computer. This is how job agents works (used for running plugins on 
external computers). How to set this up is rather complex and is 
documented at http://base.thep.lu.se/chrome/site/doc/admin/jobagent.html

/Nicklas

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
The BASE general discussion mailing list
[EMAIL PROTECTED]
unsubscribe: send a mail with subject "unsubscribe" to
[EMAIL PROTECTED]

Reply via email to