[kepler-dev] In the kepler-2.0 configuration, ant compile does not compile ptolemy-2.0

Christopher Brooks cxh at eecs.berkeley.edu
Mon Mar 15 11:57:05 PDT 2010


I found this confusing, I spent a few minutes tracking down why
my changes were not appearing in the tree.  The behavior makes it more
difficult to verify that a Ptolemy bug is actually fixed in the Kepler
tree.

It would be nice if
  ant compile
printed a message that ptolemy was not being compiled and that to compile
ptolemy, one must use "ant force-ptolemy"

Maybe it would be better if force-ptolemy was force-ptolemy-compile or something
With force-ptolemy, it is not clear what ptolemy is being forced to do.

When I run "ant compile", I expect that all the sources will be compiled.
There does seem to be some oddness here though since it appears that
sometimes ptolemy is compiled and sometimes it is not.  I'm not sure
about the details though.  It could be "ant compile" vs. "ant run"
or something.

_Christopher



On 3/15/10 11:48 AM, Chad Berkley wrote:
> I don't think I did.  If I did, it was a mistake.
>
> David Welker wrote:
>> I should add another point.
>>
>> Previously, I mentioned that you should type "ant force-ptolemy"
>> instead of compiling. Well, it turns out that you should do this
>> BEFORE compiling. "ant force-ptolemy" use to compile for you as well,
>> but someone commented that out for some reason.
>>
>> So, instead of just:
>>
>> ant compile
>>
>> You need to:
>>
>> ant force-ptolemy
>> ant compile
>>
>>
>> Chad, did you comment out the compilation functionality in 'ant
>> force-ptolemy'? If so, was there a reason?
>>
>> -David
>>
>>
>> On Mar 11, 2010, at 4:00 PM, Christopher Brooks wrote:
>>
>>> I started with
>>>
>>> mkdir kepler-2.0
>>> cd kepler-2.0
>>> svn co
>>> https://code.kepler-project.org/code/kepler/branches/releases/release-branches/build-area-2.0
>>> build-area
>>> cd build-area
>>> ant change-to
>>> -Dbranch=https://code.kepler-project.org/code/kepler/branches/releases/release-branches/
>>> -Dsuite=kepler-2.0
>>>
>>>
>>> I then did a build and then updated ptolemyII
>>> kepler-2.0/ptolemy-8.0/module-info/revision.txt
>>> to 57481
>>> so that I could try out a bug fix.
>>>
>>> I then did
>>> ant update run
>>>
>>> My changes were not reflected in the binary, so I did
>>>
>>> rm
>>> ./ptolemy-8.0/target/classes/ptolemy/vergil/basic/GetDocumentationAction.class
>>>
>>>
>>> When I ran
>>> ant run
>>> Then I got a message about GetDocumentationAction.class not being
>>> present.
>>> Indeed, it is not there.
>>>
>>> Running ant compile does not list ptolemy-8.0 as one of the things
>>> that are compiled:
>>>
>>> bash-3.2$ ant compile
>>> Buildfile: build.xml
>>>
>>> compile:
>>> [compile] Compiling configuration-manager-2.0...
>>> [compile] Compiling module-manager-2.0...
>>> [compile] Compiling core-2.0...
>>> [compile] Compiling event-state-2.0...
>>> [compile] Compiling util-2.0...
>>> [compile] Compiling component-library-2.0...
>>> [compile] Compiling sms-2.0...
>>> [compile] Compiling data-handling-2.0...
>>> [compile] Compiling ssh-2.0...
>>> [compile] Compiling io-2.0...
>>> [compile] Compiling job-2.0...
>>> [compile] Compiling repository-2.0...
>>> [compile] Compiling authentication-2.0...
>>> [compile] Compiling gui-2.0...
>>> [compile] Compiling module-manager-gui-2.0...
>>> [compile] Compiling authentication-gui-2.0...
>>> [compile] Compiling ecogrid-2.0...
>>> [compile] Compiling opendap-2.0...
>>> [compile] Compiling actors-2.0...
>>> [compile] Compiling loader-2.0...
>>> [compile] Compiling r-2.0...
>>> [compile] Compiling apple-extensions-2.0...
>>>
>>> BUILD SUCCESSFUL
>>> Total time: 1 second
>>> bash-3.2$
>>>
>>> However, running
>>> ant clean-all
>>> and then
>>> ant compile
>>> seems to work.
>>>
>>> _Christopher
>>> --
>>> Christopher Brooks, PMP University of California
>>> CHESS Executive Director US Mail: 337 Cory Hall
>>> Programmer/Analyst CHESS/Ptolemy/Trust Berkeley, CA 94720-1774
>>> ph: 510.643.9841 fax:510.642.2718 (Office: 545Q Cory)
>>> home: (F-Tu) 707.665.0131 cell: 707.332.0670
>>> _______________________________________________
>>> Kepler-dev mailing list
>>> Kepler-dev at kepler-project.org
>>> http://mercury.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-dev
>>
>> _______________________________________________
>> Kepler-dev mailing list
>> Kepler-dev at kepler-project.org
>> http://mercury.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-dev

-- 
Christopher Brooks, PMP                       University of California
CHESS Executive Director                      US Mail: 337 Cory Hall
Programmer/Analyst CHESS/Ptolemy/Trust        Berkeley, CA 94720-1774
ph: 510.643.9841 fax:510.642.2718	      (Office: 545Q Cory)
home: (F-Tu) 707.665.0131 cell: 707.332.0670


More information about the Kepler-dev mailing list