[kepler-dev] simple question with rebuilding kepler from sources

Dan Higgins higgins at nceas.ucsb.edu
Tue Apr 24 11:43:33 PDT 2007


Hi Unni,
    The Kepler nightly build zip file was put together mainly for people 
who wanted to run the latest version of Kepler without having to learn 
how to build it from source (or set env variables). It does contain all 
the Kepler source code in the /src directory, however. The Ptolemy 
directory was not preserved in the nightly zip; Ptolemy source, along 
with *.class compiled code is moved to the inside of the kepler.jar file.
    If you just want to change some Kepler source code, you can use the 
nightly zip. Just use the KEPLER env variable to point to the 
Kepler2007nnn directory (ie the nightly build), and use the ant build 
script. For example, if you change some code in one of the SRB actor, 
simply running "ant run-dev" will recompile and run code in the nightly 
build.
    However, I think almost all developers get access to CVS and 
checkout the latest versions of Ptolemy and Kepler. The Kepler CVS 
checkout will look almost identical to the nightly build, but it does 
allow for the latest version changes in both Kepler and Ptolemy and for 
submitting changes back into CVS (if you have write permission).

Dan Higgins

----

Unni Pillai wrote:
> Hi Dan
>
> So to work with nightly build we only need to set the KEPLER 
> environment variable.  I just need some clarification with how we go 
> about rebuilding kepler if we touch any kepler java srcs from the 
> nightly build or should I be working with kepler sources obtained from 
> the cvs repository?
>
> I've requested pmc at ecoinformatics.org <mailto:pmc at ecoinformatics.org> 
> for read access to the cvs repository.
>
> Thanks
> Unni
>
> On Apr 23, 2007, at 4:29 PM, Dan Higgins wrote:
>
>> Hi,
>>     If you are starting with the nightly zipped version of Kepler, 
>> all of the needed Ptolemy code has been precompiled and is in the 
>> kepler.jar file (both the source and the *.class compiled files). You 
>> actually do not need the PTII env variable for running kepler since 
>> the kepler.jar is in the class path. Kepler source code is in the 
>> 'src/ subdirectory of the nightly build.  As Ilkay suggested, you 
>> probably should checkout fresh CVS versions and start from there if 
>> you plan extensive changes.
>>
>> Ilkay Altintas wrote:
>>> Unni,
>>>
>>> The problem seems to be your PTII variable. To be able to build the 
>>> nightly build from scratch, you need a version of Ptolemy in your 
>>> home directory (it probably already installs a version) and point 
>>> the PTII variable to that directory. 
>>>
>>> You can also request a read-only kepler cvs account from 
>>> "pmc at ecoinformatics.org <mailto:pmc at ecoinformatics.org>" and check 
>>> out both kepler and ptolemy to build everything from scratch.
>>>
>>> -ilkay
>>>
>>> On Apr 23, 2007, at 12:13 PM, Unni Pillai wrote:
>>>
>>>> Hi
>>>>
>>>> Following Lucas suggestion, I had downloaded the nightly build 
>>>> (April 18th) and got it up and running using kepler.sh, but I've 
>>>> run into some silly problems.
>>>>
>>>> Since I plan on doing some hacks locally I decided to be a bit wild 
>>>> and did the following from a shell 
>>>> ant full-clean ptolemy.
>>>>
>>>> I'm testing on Mac OSX v 10.4.9
>>>> My environment variables are set as follows:
>>>> asterix:~/Documents/projects/ndiipp-ptv/kepler unni$ echo $KEPLER
>>>> /Users/unni/Documents/projects/ndiipp-ptv/kepler
>>>> *asterix:~/Documents/projects/ndiipp-ptv/kepler unni$ echo $PTII*
>>>> */Users/unni/Documents/projects/ndiipp-ptv/kepler/build*
>>>> asterix:~/Documents/projects/ndiipp-ptv/kepler unni$ echo $JAVA_HOME
>>>> /Library/Java/Home
>>>>
>>>> My concern is did the nightly build bring in the appropriate 
>>>> Ptolemy sources or am I missing some step since not sure if Ptolemy 
>>>> came through or most likely I set my PTII environment variable 
>>>> incorrectly.
>>>>
>>>> I'm getting whole slew of errors when I attempt to build
>>>> BUILD FAILED
>>>> /Users/unni/Documents/projects/ndiipp-ptv/kepler/build.xml:748: The 
>>>> following error occurred while executing this line:
>>>> /Users/unni/Documents/projects/ndiipp-ptv/kepler/build-ptolemy.xml:106: 
>>>> /Users/unni/Documents/projects/ndiipp-ptv/kepler/build/ptolemy/distributed/config 
>>>> not found.
>>>>
>>>> Something is fishy with my PTII variable
>>>> Can someone point me to the correct environment variable setup for 
>>>> working with nightly builds.
>>>>
>>>> Thanks
>>>>
>>>> Unni
>>>>
>>>> P.S.  My previous postings to kepler dev list never show up, hence 
>>>> decided to contact you folks who do development with the nightly 
>>>> builds or build from source.
>>>>
>>>> Also as reference this is how my kepler directory looks after ant clean
>>>>
>>>> asterix:~/Documents/projects/ndiipp-ptv/kepler unni$ ls -l
>>>> total 656
>>>> -rw-r--r--    1 unni  unni    6802 Apr 23 13:59 INSTALL
>>>> -rw-r--r--    1 unni  unni    7005 Apr 23 13:59 README.txt
>>>> -rw-r--r--    1 unni  unni     991 Apr 23 13:59 UDF_skolem.class
>>>> -rw-r--r--    1 unni  unni     736 Apr 23 13:59 UDF_split.class
>>>> -rw-r--r--    1 unni  unni    3497 Apr 23 13:59 build-doc.xml
>>>> -rw-r--r--    1 unni  unni   20897 Apr 23 13:59 build-ptolemy.xml
>>>> -rw-r--r--    1 unni  unni    5146 Apr 23 13:59 build-scia.xml
>>>> -rw-r--r--    1 unni  unni   66921 Apr 23 13:59 build.xml
>>>> drwxr-xr-x    6 unni  unni     204 Apr 23 13:59 cog
>>>> drwxr-xr-x    4 unni  unni     136 Apr 23 13:58 configs
>>>> -rw-r--r--    1 unni  unni    1230 Apr 23 13:59 copyright.txt
>>>> drwxr-xr-x    7 unni  unni     238 Apr 23 13:58 demos
>>>> drwxr-xr-x    4 unni  unni     136 Apr 23 13:59 dev
>>>> drwxr-xr-x    4 unni  unni     136 Apr 23 13:58 doc
>>>> -rw-r--r--    1 unni  unni    3583 Apr 23 13:59 hsql-license.txt
>>>> -rw-r--r--    1 unni  unni      59 Apr 23 13:59 hsqlTool.bat
>>>> -rw-r--r--    1 unni  unni    4418 Apr 23 13:59 kepler.bat
>>>> -rw-r--r--    1 unni  unni    4394 Apr 23 13:59 kepler.sh
>>>> -rw-r--r--    1 unni  unni     121 Apr 23 13:59 keplerLog4J.log
>>>> drwxr-xr-x   50 unni  unni    1700 Apr 23 13:58 lib
>>>> -rw-r--r--    1 unni  unni  143360 Apr 23 13:59 libexpat.dll
>>>> -rw-r--r--    1 unni  unni    2012 Apr 23 13:59 log4j.properties
>>>> -rw-r--r--    1 unni  unni    4397 Apr 23 13:59 momlexecute.sh
>>>> drwxr-xr-x    5 unni  unni     170 Apr 23 13:57 plugins
>>>> drwxr-xr-x   11 unni  unni     374 Apr 23 13:58 src
>>>> -rw-r--r--    1 unni  unni   14379 Apr 23 13:59 start.html
>>>> drwxr-xr-x   12 unni  unni     408 Apr 23 13:58 webservice
>>>> drwxr-xr-x    4 unni  unni     136 Apr 23 13:58 website
>>>> drwxr-xr-x   24 unni  unni     816 Apr 23 13:58 workflows
>>>> drwxr-xr-x    3 unni  unni     102 Apr 23 13:58 zipdir
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> *Unni Pillai* *|* Software Engineer / Analyst | Digital Library 
>>>> <http://library.nyu.edu/diglib/> | NDIIPP-PDPTV 
>>>> <http://www.ptvdigitalarchive.org/purpose/> 
>>>>unni.pillai at nyu.edu <mailto:unni.pillai at nyu.edu> | ✆ (212) 
>>>> 992-9741 | AIM: upillai at mac.com <mailto:upillai at mac.com> | Jabber: 
>>>> unni.pillainyc at gmail.com <mailto:unni.pillainyc at gmail.com>
>>>>
>>>>
>>>
>>> -- 
>>> Ilkay ALTINTAS
>>> Lab Director, Scientific Workflow Automation Technologies (SWAT)
>>> San Diego Supercomputer Center(SDSC), UCSD
>>> 9500 Gilman Drive, MC: 0505  La Jolla, CA  92093-0505
>>> phone: (858) 822-5453                        fax: (858) 534-8303
>>> web: http://users.sdsc.edu/~altintas <http://users.sdsc.edu/%7Ealtintas>
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> Kepler-dev mailing list
>>> Kepler-dev at ecoinformatics.org
>>> http://mercury.nceas.ucsb.edu/ecoinformatics/mailman/listinfo/kepler-dev
>>>   
>>
>>
>> -- 
>> *******************************************************************
>> 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
>> *******************************************************************
>


-- 
*******************************************************************
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
*******************************************************************

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mercury.nceas.ucsb.edu/ecoinformatics/pipermail/kepler-dev/attachments/20070424/677e0e95/attachment.htm


More information about the Kepler-dev mailing list