Initial add of defaria.com
[clearscm.git] / defaria.com / blogs / Status / archives / 000547.html
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">
4 <head>
5    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6    <meta name="generator" content="Movable Type 5.2.3" />
7
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" />
11
12    <title>Status for Andrew DeFaria: XAM Build</title>
13
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" />
17
18    
19
20    
21
22    <script type="text/javascript" src="http://defaria.com/blogs/Status/mt-site.js"></script>
23 </head>
24 <body class="layout-one-column" onload="individualArchivesOnLoad(commenter_name)">
25    <div id="container">
26       <div id="container-inner" class="pkg">
27
28          <div id="banner">
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>
32             </div>
33          </div>
34
35          <div id="pagebody">
36             <div id="pagebody-inner" class="pkg">
37                <div id="alpha">
38                   <div id="alpha-inner" class="pkg">
39
40                      <p class="content-nav">
41                         <a href="http://defaria.com/blogs/Status/archives/000546.html">&laquo; 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 &raquo;</a>
44                      </p>
45
46                      <a id="a000547"></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">
51                               <ul>
52   <li>Got XAM ant build to work. Test build almost working</li>
53
54   <li>Ported Build.pl for use in XAM</li>
55 </ul>
56                            </div>
57                            <div id="more" class="entry-more">
58                               <p>I assume you mean the state of XAM. Here's what I've done:</p>
59
60 <ul>
61   <li>Moved .../platform/L3/platform/src/com/hp/platform/fcas -> .../platform/XAM/server/src/com/hp/platform/fcas</li>
62
63   <li>Moved .../platform/L3/platform/src/test/com/hp/platform/fcas -> .../platform/XAM/server/src/test/com/hp/platform/fcas</li>
64
65   <li>Moved .../riss/W2/xam/client -> .../platform/XAM/client/c</li>
66 </ul>
67
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>
69
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>
71
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>
73
74 <p>Here's how you can build XAM:</p>
75
76 <ul>
77   <li>If necessary rebase your RISS15_xam substream or create view from RISS15_xam</li>
78
79   <li>Change directory to .../platform/XAM/server/src/com/hp/platform/fcas</li>
80
81   <li>type "ant -Dbase_dir=/vobs/platform/XAM -DviewBase=/vobs"</li>
82 </ul>
83
84 <p>Note: viewBase would be different if you are using a snapshot view.</p>
85
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>
87
88 <div class="code"><pre>
89 &lt;pathelement path="${viewBase}/platform/L3/code"/&gt;
90 </pre></div>
91
92 <p>to the ext.classpath in build_common.xml even though the comment for this states:</p>
93
94 <div class="code"><pre>
95 &lt;!--
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
99 --&gt;
100 </pre></div>
101
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>
103
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>
105
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>
107
108 <ul>
109   <li>Do we need a Build.pl to sit in /vobs/platform/XAM to build everything underneath it?</li>
110
111   <li>Can't ant do recursive ants like make does recursive makes?</li>
112 </ul>
113                            </div>
114                         </div>
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>
117                         </p>
118                      </div>
119
120                      
121
122                      
123                   </div>
124                </div>
125             </div>
126          </div>
127       </div>
128    </div>
129 </body>
130 </html>