<html><head><title>Workaround for HEAD 1.5 build.xml script bugs</title></head>
<body bgcolor="white">

<h1>Workaround for broken Cougaar top-level "build.xml"</h1>

<ol>
<li>Download the latest
<a href="http://build.cougaar.org/auto/HEAD/latest_success/cougaar-src.zip">cougaar-src.zip</a> and 
<a href="http://build.cougaar.org/auto/HEAD/latest_success/cougaar-support.zip">cougaar-support.zip</a><p>

</p></li><li>Unzip:<pre>
  unzip -q cougaar-src.zip
  unzip -q cougaar-support.zip
</pre></li>

<li>Move sys jars to jars/lib:<pre>
  mkdir jars
  mv sys jars/lib
</pre></li>

<li>Optionally replace subdirectories with checked-out CVS modules</li><p>

</p><li><b>BUG</b>: The build Perl script puts the (broken)
auto-generated Ant scripts in the cougaar-src.zip instead of the Ant
scripts that are in CVS. To fix, replace */build.xml with versions in
CVS. Here's a script to download the latest scripts:
<hr><pre>
#!/bin/bash

download () {
  cvsroot=$1
  module=$2
  dir=$3
  if [ -z $dir ]; then
    dir=$module
  fi
  file=$dir/build.xml
  echo downloading $file
  url='http://cougaar.org/cgi-bin/viewcvs.cgi/*checkout*/'$module'/build.xml?rev=HEAD&amp;cvsroot='$cvsroot'&amp;content-type=test/xml'
  wget -q $url -O $file || echo "  Failed: $url"
}

download aggagent aggagent
download logistics bbn albbn
download util base
download util bootstrap
download build build
download community community
download util contract
download core core
download csmart csmart
download glm glm
download core javaiopatch
download mts mtsstd
download qos ping
download tutorials pizza
download planning planning
download qos qos
download qos quo
download util server
download servicediscovery servicediscovery
download glm toolkit
download util util
download vishnu vishnuClient vishnu
download cws webaxis
download webserver webserver
download webserver webtomcat
download yp yp
</pre><hr></li>

<li><b>BUG</b>: The javaiopatch module's build script specifies a 1.4 source target.
Modify javaiopatch/build.xml line 457 to remove:<pre>
      source="1.4"
</pre></li>

<li><b>BUG</b>: The webaxis module's build script refers to a "local.lib" jar that is not included in the source.
Modify ./build.xml on line 693 to specify this parameter:<pre>
      &lt;ant dir="${SOURCEBASE}/webaxis" target="install"
           inheritAll="true"&gt;
           &lt;property name="local.lib" value="../jars/lib"/&gt;
      &lt;/ant&gt;
</pre></li>

<li><b>BUG</b>: The cougaar-support.zip lacks the vishnu module's
"vishnuServer.jar". Get this jar from the module and put it in
jars/lib. Here's a link to the latest HEAD version: <a href="http://cougaar.org/cgi-bin/viewcvs.cgi/*checkout*/jars/lib/vishnuServer.jar?rev=HEAD&amp;cvsroot=core&amp;content-type=text/plain">vishnuServer.jar</a>.</li><p>

</p><li>Compile and create "lib/*.jar" by running:<pre>
  ant install
</pre></li>

</ol>

</p></body></html>