1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" id="sixapart-standard">
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6 <meta name="generator" content="Movable Type 5.2.3" />
8 <link rel="stylesheet" href="http://defaria.com/blogs/Status/styles-site.css" type="text/css" />
9 <link rel="alternate" type="application/atom+xml" title="Atom" href="http://defaria.com/blogs/Status/atom.xml" />
10 <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="http://defaria.com/blogs/Status/index.xml" />
12 <title>Status for Andrew DeFaria: XAM Build</title>
14 <link rel="start" href="http://defaria.com/blogs/Status/" title="Home" />
15 <link rel="prev" href="http://defaria.com/blogs/Status/archives/000546.html" title="Successful Build on sons-sc-cc" />
16 <link rel="next" href="http://defaria.com/blogs/Status/archives/000548.html" title="Building salira2" />
22 <script type="text/javascript" src="http://defaria.com/blogs/Status/mt-site.js"></script>
24 <body class="layout-one-column" onload="individualArchivesOnLoad(commenter_name)">
26 <div id="container-inner" class="pkg">
29 <div id="banner-inner" class="pkg">
30 <h1 id="banner-header"><a href="http://defaria.com/blogs/Status/" accesskey="1">Status for Andrew DeFaria</a></h1>
31 <h2 id="banner-description">Searchable status reports and work log</h2>
36 <div id="pagebody-inner" class="pkg">
38 <div id="alpha-inner" class="pkg">
40 <p class="content-nav">
41 <a href="http://defaria.com/blogs/Status/archives/000546.html">« Successful Build on sons-sc-cc</a> |
42 <a href="http://defaria.com/blogs/Status/">Main</a>
43 | <a href="http://defaria.com/blogs/Status/archives/000548.html">Building salira2 »</a>
47 <div class="entry" id="entry-547">
48 <h3 class="entry-header">XAM Build</h3>
49 <div class="entry-content">
50 <div class="entry-body">
52 <li>Got XAM ant build to work. Test build almost working</li>
54 <li>Ported Build.pl for use in XAM</li>
57 <div id="more" class="entry-more">
58 <p>I assume you mean the state of XAM. Here's what I've done:</p>
61 <li>Moved .../platform/L3/platform/src/com/hp/platform/fcas -> .../platform/XAM/server/src/com/hp/platform/fcas</li>
63 <li>Moved .../platform/L3/platform/src/test/com/hp/platform/fcas -> .../platform/XAM/server/src/test/com/hp/platform/fcas</li>
65 <li>Moved .../riss/W2/xam/client -> .../platform/XAM/client/c</li>
68 <p>By "moved" I mean that I copied those areas from the old place to the new place, added them to source control and rmnamed the old areas. This is as per Rational's recommendation for moving things in a UCM environment.</p>
70 <p>Next I attempted to build fcas in the new area. It became quickly apparent that we need to port over the buildTools directory with its build_common.xml if we wish to replicate the build environment of L3.</p>
72 <p>With Rahul's help I managed to build the server component in XAM. I have not tackled the client component nor test at this time. I've checked in the buildTools/build_common.xml and the build.xml under the server area.</p>
74 <p>Here's how you can build XAM:</p>
77 <li>If necessary rebase your RISS15_xam substream or create view from RISS15_xam</li>
79 <li>Change directory to .../platform/XAM/server/src/com/hp/platform/fcas</li>
81 <li>type "ant -Dbase_dir=/vobs/platform/XAM -DviewBase=/vobs"</li>
84 <p>Note: viewBase would be different if you are using a snapshot view.</p>
86 <p>Since XAM will be separated from L3 the question is: How are dependencies handled? For example, this XAM "depends on" or "imports" code from L3's core and csfr. To address this we added:</p>
88 <div class="code"><pre>
89 <pathelement path="${viewBase}/platform/L3/code"/>
92 <p>to the ext.classpath in build_common.xml even though the comment for this states:</p>
94 <div class="code"><pre>
96 Class path element for Build. Don't add libraries here Libraries
97 should go under devenv/buildenv/lib those libs will be
98 automatically picked up by the following element
102 <p>You see we now have two different types of libraries, ext.classpath libraries that are built elsewhere and just deposited into devenv/buildenv/lib and our own libraries that are built in another component (in this case the L3 component).</p>
104 <p>Also, the above ${viewBase}/platform/L3/code assumes that that directory exists and contains compiled class files. It assume that L3 was built before XAM is built. This introduces the notion of dependencies between components.</p>
106 <p>Finally you'll note that we don't build from the /vobs/platform/XAM level, rather we descend down into the /vobs/platform/XAM/server/src/com/hp/platform/fcas level to do our ant build. Questions:</p>
109 <li>Do we need a Build.pl to sit in /vobs/platform/XAM to build everything underneath it?</li>
111 <li>Can't ant do recursive ants like make does recursive makes?</li>
115 <p class="entry-footer">
116 <span class="post-footers">Posted by on April 24, 2006 7:15 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000547.html">Permalink</a>