1. Requirements
a. Software: Glassfish V2, Python 2.2.4 or later version and Mercurial 0.9.5
Note: for Mercurial if you need to build it, please click here
b. Netbean account (userID/password)
2. Getting a Copy of Netbean Repository
a. Create a template working directory (nb_all)
$mkdir nb_all
$cd nb_all
b. Run the mercurial command below to check out all netbean modules
$hg clone http://hg.netbeans-DOT-org/main
c. Configure your user name and write access to configuration files
Edit ../main/.hg/hgrc and add lines
[ui]
username = jhacker-AT-netbeans.org
host = webcache.sfbay.sun.com:8080
[paths]
default = http://hg.netbeans.org/main
default-push = https://jhacker:secretpass-AT-hg.netbeans.org/main
(Replace jhacker with your netbeans.org username. Replace secretpass with your password and wecache.sfbay.sun.com with your proxy server if you have one)
For full mercurial instruction please visit http://wiki.netbeans.org/HgHowTos
3. Build Netbean j2ee and xtest Modules
To build j2ee module
$cd main
$ant -f nbbuild/build.xml -Dcluster.config=j2ee
$cd xtest
$ant
Note: to fix the outOfMemory problem, for bash/ksh shell set (export ANT_OPTS="-Xms256m -Xmx256m"blogs.sun.com/images/smileys/wink.gif" class="smiley" alt=";)" title=";)" />
fix PermGen OutOfMemory problem (export ANT_OPTS="-Xmx512m -XX:MaxPermSize=128m"
4. Execute Test (resources, webapp and ejb/jfs) Module
$cd /opt/SUNWappserver/bin (assume you installed Glassfish server at that directory)
$./asadmin start-domain domain1
$copy cfg-qa-functional.xml.cfg-res to cfg-qa-functional.xml (to run only resources and configuration test suite)
$cd ../main/j2ee.sun.appsrv81/test
$ant -Dsjsas.server.path=/opt/SUNWappserver