9
###################################################################
11
# Build all the components
13
###################################################################
15
#Build source packages
16
ant -Dbuildnum=$BUILDNUM -Dbuildnumber=$BUILDNUMBER -f nbbuild/build.xml -Dmerge.dependent.modules=false -Dcluster.config=full build-source-config
19
if [ $ERROR_CODE != 0 ]; then
20
echo "ERROR: $ERROR_CODE - Can't build all source package"
23
mv nbbuild/build/*-src-* $DIST/zip/$BASENAME-src.zip
26
ant -Dbuildnum=$BUILDNUM -Dbuildnumber=$BUILDNUMBER -f nbbuild/build.xml -Dmerge.dependent.modules=false -Dcluster.name=nb.cluster.platform build-source
29
if [ $ERROR_CODE != 0 ]; then
30
echo "ERROR: $ERROR_CODE - Can't build basic platform source package"
33
mv nbbuild/build/*-src-* $DIST/zip/$BASENAME-platform-src.zip
36
#Build the NB IDE first - no validation tests!
37
ant -Dbuildnum=$BUILDNUM -Dbuildnumber=$BUILDNUMBER -f nbbuild/build.xml build-nozip -Dcluster.config=stableuc -Dbuild.compiler.debuglevel=source,lines
40
if [ $ERROR_CODE != 0 ]; then
41
echo "ERROR: $ERROR_CODE - Can't build basic IDE"
46
ant -Djnlp.codebase=http://bits.netbeans.org/6.0.1/jnlp/ -Djnlp.signjar.keystore=$KEYSTORE -Djnlp.signjar.alias=nb_ide -Djnlp.signjar.password=$STOREPASS -Djnlp.dest.dir=${DIST}/jnlp build-jnlp
49
if [ $ERROR_CODE != 0 ]; then
50
echo "ERROR: $ERROR_CODE - Can't build JNLP"
55
#Build all FU the NBMs
56
ant -Dbuildnum=$BUILDNUM -Dbuildnumber=$BUILDNUMBER -f nbbuild/build.xml build-nbms -Dmoduleconfig=all -Dbase.nbm.target.dir=${DIST}/uc -Dkeystore=$KEYSTORE -Dstorepass=$STOREPASS -Dbuild.compiler.debuglevel=source,lines
59
if [ $ERROR_CODE != 0 ]; then
60
echo "ERROR: $ERROR_CODE - Can't build NBMs"
65
#Build catalog for FU NBMs
66
ant -Dbuildnum=$BUILDNUM -Dbuildnumber=$BUILDNUMBER -f build.xml generate-uc-catalog -Dnbms.location=${DIST}/uc -Dcatalog.file=${DIST}/uc/catalog.xml -Dcatalog.base.url="."
69
if [ $ERROR_CODE != 0 ]; then
70
echo "ERROR: $ERROR_CODE - Can't build catalog FU for NBMs"
75
#Build all NBMs for stable UC
76
ant -Dbuildnum=$BUILDNUM -Dbuildnumber=$BUILDNUMBER -f nbbuild/build.xml build-nbms -Dmoduleconfig=stableuc -Dbase.nbm.target.dir=${DIST}/uc2 -Dkeystore=$KEYSTORE -Dstorepass=$STOREPASS -Dbuild.compiler.debuglevel=source,lines
79
if [ $ERROR_CODE != 0 ]; then
80
echo "ERROR: $ERROR_CODE - Can't build stable UC NBMs"
85
#Build catalog for stable UC NBMs
86
ant -Dbuildnum=$BUILDNUM -Dbuildnumber=$BUILDNUMBER -f build.xml generate-uc-catalog -Dnbms.location=${DIST}/uc2 -Dcatalog.file=${DIST}/uc2/catalog.xml -Dcatalog.base.url="."
89
if [ $ERROR_CODE != 0 ]; then
90
echo "ERROR: $ERROR_CODE - Can't build stable UC catalog for NBMs"
95
ant -Dbuildnum=$BUILDNUM -Dbuildnumber=$BUILDNUMBER -f nbbuild/build.xml all-xtest build-test-dist -Dtest.fail.on.error=false -Dbuild.compiler.debuglevel=source,lines
98
if [ $ERROR_CODE != 0 ]; then
99
echo "ERROR: $ERROR_CODE - Building of Test Distrubution failed"
102
mv nbbuild/build/testdist.zip $DIST/zip/testdist-${BUILDNUMBER}.zip
105
ant -Dbuildnum=$BUILDNUM -Dbuildnumber=$BUILDNUMBER -f nbbuild/build.xml build-javadoc
108
if [ $ERROR_CODE != 0 ]; then
109
echo "ERROR: $ERROR_CODE - Building of Javadoc Distrubution failed"
112
mv nbbuild/NetBeans-*-javadoc.zip $DIST/zip/$BASENAME-javadoc.zip
113
cp -r nbbuild/build/javadoc $DIST/
117
if [ $ML_BUILD == 1 ]; then
118
cp -rp nbbuild/netbeans nbbuild/netbeans-ml
119
ant -Dbuildnum=$BUILDNUM -Dbuildnumber=$BUILDNUMBER -f nbbuild/build.xml -Dlocales=$LOCALES -Dnetbeans.dest.dir=$NB_ALL/nbbuild/netbeans-ml build-nozip-ml -Dcluster.config=stableuc -Dbuild.compiler.debuglevel=source,lines
122
if [ $ERROR_CODE != 0 ]; then
123
echo "ERROR: $ERROR_CODE - Can't build ML IDE"
128
ant -Djnlp.codebase=http://bits.netbeans.org/6.0.1/jnlp/ -Djnlp.signjar.keystore=$KEYSTORE -Djnlp.signjar.alias=nb_ide -Djnlp.signjar.password=$STOREPASS -Djnlp.dest.dir=${DIST}/ml/jnlp -Dlocales=$LOCALES build-jnlp
131
if [ $ERROR_CODE != 0 ]; then
132
echo "ERROR: $ERROR_CODE - Can't build ML JNLP"
136
#Build all FU the NBMs
137
ant -Dbuildnum=$BUILDNUM -Dbuildnumber=$BUILDNUMBER -f nbbuild/build.xml -Dlocales=$LOCALES -Dnetbeans.dest.dir=$NB_ALL/nbbuild/netbeans-ml build-nbms -Dmoduleconfig=all -Dbase.nbm.target.dir=${DIST}/ml/uc -Dkeystore=$KEYSTORE -Dstorepass=$STOREPASS -Dbuild.compiler.debuglevel=source,lines
140
if [ $ERROR_CODE != 0 ]; then
141
echo "ERROR: $ERROR_CODE - Can't build ML NBMs"
146
#Build catalog for FU NBMs
147
ant -Dbuildnum=$BUILDNUM -Dbuildnumber=$BUILDNUMBER -f build.xml generate-uc-catalog -Dnbms.location=${DIST}/ml/uc -Dcatalog.file=${DIST}/ml/uc/catalog.xml -Dcatalog.base.url="."
150
if [ $ERROR_CODE != 0 ]; then
151
echo "ERROR: $ERROR_CODE - Can't build catalog FU for ML NBMs"
156
#Build all NBMs for stable UC
157
ant -Dbuildnum=$BUILDNUM -Dbuildnumber=$BUILDNUMBER -f nbbuild/build.xml -Dlocales=$LOCALES -Dnetbeans.dest.dir=$NB_ALL/nbbuild/netbeans-ml build-nbms -Dmoduleconfig=stableuc -Dbase.nbm.target.dir=${DIST}/ml/uc2 -Dkeystore=$KEYSTORE -Dstorepass=$STOREPASS -Dbuild.compiler.debuglevel=source,lines
160
if [ $ERROR_CODE != 0 ]; then
161
echo "ERROR: $ERROR_CODE - Can't build stable UC ML NBMs"
166
#Build catalog for stable UC NBMs
167
ant -Dbuildnum=$BUILDNUM -Dbuildnumber=$BUILDNUMBER -f build.xml generate-uc-catalog -Dnbms.location=${DIST}/uml/c2 -Dcatalog.file=${DIST}/ml/uc2/catalog.xml -Dcatalog.base.url="."
170
if [ $ERROR_CODE != 0 ]; then
171
echo "ERROR: $ERROR_CODE - Can't build stable UC catalog for ML NBMs"
175
#Remove the build helper files
176
rm -f netbeans-ml/nb.cluster.*
177
rm -f netbeans-ml/build_info
178
rm -rf netbeans-ml/extra
179
rm -rf netbeans-ml/testtools
184
#Remove the build helper files
185
rm -f netbeans/nb.cluster.*
186
rm -f netbeans/build_info
187
rm -rf netbeans/extra
188
rm -rf netbeans/testtools