This page has been out of date, please go to WorkingWithNetBeansSources wiki page instead.
Building NetBeans Trunk
Table of content:
Basic environment
Notes:
- CVS server cvs.netbeans.org is not compatible with some versions of WinCVS or TortoiseCVS clients on Microsoft Windows Platform (issue 57402). Thus the only supported clients are either NetBeans' CVS client or command line GNU CVS client
- you need CVS 1.11.20 when you plan to use VCS Generic's profile for CVS version control system on Windows
Back to top
Getting sources
By CVS checkout
- Create new directory on your disk
- login to CVS i.e. execute command '
cvs -d :pserver:anoncvs@cvs.netbeans.org:/cvs login' and press Enter when prompted for password
- checkout modules
- Checkout main build module called 'nbbuild'
'cvs -d :pserver:anoncvs@cvs.netbeans.org:/cvs checkout -AP nbbuild'
- Checkout rest of the modules (you must have Ant 1.7.0 already available)
'ant -f nbbuild/build.xml checkout'
More details about getting source by using CVS is available
here.
Back to top
Building NetBeans
NetBeans IDE
$ cd nbbuild
$ ant
The result NetBeans IDE build will be in two forms:
- zipfile
nbbuild/NetBeans-dev-YYMMDD.zip
- directory
nbbuild/netbeans
NetBeans Platform
$ cd nbbuild
$ ant build-platform
The result NetBeans Platform build will be in directory
nbbuild/netbeans.
NetBeans Javadoc
$ cd nbbuild
$ ant build-javadoc
The result NetBeans Javadocs build will be in directory
nbbuild/build/javadoc
Back to top
Building Custom NetBeans configurations
Custom NetBeans configurations could be i.e. formerly known Enterprise Pack, VisualWeb Pack etc.
If your custom configuration is actually a cluster of module, then you can use two targets
for cleaning and building specific cluster. You just need to tell the build system which
cluster you would like to get rebuilt or cleaned. For building a cluster use target
rebuild-cluster, for cleaning use target
clean-cluster.
Cluster can be identified by property
rebuild.cluster.name.
Typical cluster names start with
nb.cluster. followed actual cluster name
like
ide,
soa,
visualweb etc..
SOA Pack
Build
$ cd nbbuild
$ ant rebuild-cluster -D"rebuild.cluster.name=nb.cluster.soa"
Clean
$ cd nbbuild
$ ant clean-cluster -D"clean.cluster.name=nb.cluster.soa"
VisualWeb Pack
$ cd nbbuild
$ ant rebuild-cluster -D"rebuild.cluster.name=nb.cluster.visualweb"
Clean
$ cd nbbuild
$ ant clean-cluster -D"clean.cluster.name=nb.cluster.visualweb"
UML modeling
$ cd nbbuild
$ ant rebuild-cluster -D"rebuild.cluster.name=nb.cluster.uml"
Clean
$ cd nbbuild
$ ant clean-cluster -D"clean.cluster.name=nb.cluster.uml"
Note
If any files are left after the cluster's clean, it means that there are errors in
the definition of the content of the NBMs - some files (which are left uncleaned) are not in any NBM
Back to top