Changeset 7049


Ignore:
Timestamp:
10/08/10 09:01:49 (9 years ago)
Author:
hinerm
Message:

Improvement: The BF-ITK plug-in now detects where its libraries live, vita ITK_AUTOLOAD_PATH. Modules using BF-ITK can now be invoked from any working directory.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/components/native/bf-itk/itkBioFormatsImageIO.cxx

    r7035 r7049  
    8686      jace::StaticVmLoader loader(JNI_VERSION_1_4); 
    8787      jace::OptionList list; 
     88 
     89      const char name[] = "ITK_AUTOLOAD_PATH"; 
     90      const char* namePtr; 
     91      namePtr = name; 
     92      char* path; 
     93      path = getenv(name); 
     94      std::string dir(path); 
     95 
    8896      list.push_back(jace::ClassPath( 
    8997 
     
    96104 // Then, can pass classpath elements with that prefix. 
    97105 //        dir+"jace-runtime.jar:"+dir+"bio-formats.jar:"+dir+"loci_tools.jar" 
    98        "jace-runtime.jar:bio-formats.jar:loci_tools.jar" 
     106      dir+"jace-runtime.jar:"+dir+"bio-formats.jar:"+dir+"loci_tools.jar" 
    99107      )); 
    100108      list.push_back(jace::CustomOption("-Xcheck:jni")); 
Note: See TracChangeset for help on using the changeset viewer.