[kepler-dev] Loading documentation

Nandita Mangal nmangal at sdsc.edu
Thu Apr 13 15:33:43 PDT 2006


Dan wrote:
Yup - I forgot that Java can no longer access system environment 
variable UNLESS they are set on the command line at launch! So it is a 
matter of adding to the command that launches java.

See
http://www.javaworld.com/javaworld/javaqa/2001-07/01-qa-0706-env.html

Ilkay Altintas wrote:

>Hey Dan,
>
>Maybe the code can't get keplerDocsHome in OS/environment as it does in
>Nandita's. That might cause a problem.
>
>-ilkay
>
>On Thu, April 13, 2006 12:07 pm, Dan Higgins wrote:
>  
>
>>Nandita,
>>    Hmm - the code should take care of the problem, but when I remove
>>the file, the docs don't show up!  And since I have a KEPLER_DOCS env
>>variable, it should never get called! I'll dig into it.
>>
>>Thanks for the info.
>>
>>Dan
>>
>>Nandita Mangal wrote:
>>
>>    
>>
>>>Hi Dan,
>>>The docsInfo.txt  is used when reading the documentation from the
>>>canvas via 'GetDocumentation', as a backup test  , in the case that
>>>KEPLER_DOCS env. variable retrieved nothing ....It was just a backup
>>>way of checking the path is set to which location for testing purposes
>>>and isn't really used otherwise.
>>>
>>>I can definitely do away with using it, if its causing troubles in
>>>building installers.
>>>
>>>Here is the code using it from "getdocumentation"
>>>
>>>//Javadocs located under a new location in Kepler
>>>String keplerDocsHome = System.getProperty("KEPLER_DOCS");
>>>if(keplerDocsHome == null)
>>>{
>>>           //try other way to access environment variable value.
>>>           BufferedReader inDocsInfo= new BufferedReader(new
>>>FileReader("./doc/docsInfo.txt"));
>>>          ....
>>>
>>>
>>>thanks,
>>>nandita.
>>>
>>>
>>>Dan Higgins wrote:
>>>
>>>      
>>>
>>>>Hi Nandita,
>>>>
>>>>   I was trying to understand why I needed to regenerate the
>>>>documentation every time I checkout a new version of Kepler. I
>>>>haven't looked at your code but it appears that 'ant generateDoc'
>>>>creates a file called 'docsInfo.txt ' in the $kepler/doc/ directory
>>>>and that that file contains the path to the directory that contains
>>>>the documentation xml files. It appears that Kepler actually reads
>>>>the file to find the documentation. Is that correct?
>>>>
>>>>   If so, I would like to suggest a change. We use an environment
>>>>variable KEPLER_DOCS to create the baseline documentation. Why don't
>>>>we continue to use it inside Kepler for opening a documentation
>>>>window? [The problem with using a file is that it is only correct for
>>>>the machine where the docs were generated and this creates
>>>>difficulties when we build installers or someone moves Kepler or the
>>>>kepler-docs directory]. If the code used the KEPLER_DOCS env
>>>>variable, I can set that on the command line that starts Kepler.
>>>>Otherwise I need to rewrite the file in installers and, in any case,
>>>>we need to make the path relative rather than absolute so that the
>>>>user can put Kepler anywhere they wish.
>>>>
>>>>Dan
>>>>
>>>>        
>>>>
>>--
>>*******************************************************************
>>Dan Higgins                                  higgins at nceas.ucsb.edu
>>http://www.nceas.ucsb.edu/    Ph: 805-893-5127
>>National Center for Ecological Analysis and Synthesis (NCEAS) Marine
>>Science Building - Room 3405
>>Santa Barbara, CA 93195
>>*******************************************************************
>>
>>
>>_______________________________________________
>>Kepler-dev mailing list
>>Kepler-dev at ecoinformatics.org
>>http://mercury.nceas.ucsb.edu/ecoinformatics/mailman/listinfo/kepler-dev
>>
>>    
>>
>
>  
>



More information about the Kepler-dev mailing list