~ubuntu-branches/ubuntu/quantal/netbeans/quantal

« back to all changes in this revision

Viewing changes to nbbuild/newbuild/build-all-components.sh

  • Committer: Bazaar Package Importer
  • Author(s): Marek Slama
  • Date: 2008-01-29 14:11:22 UTC
  • Revision ID: james.westby@ubuntu.com-20080129141122-fnzjbo11ntghxfu7
Tags: upstream-6.0.1
ImportĀ upstreamĀ versionĀ 6.0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
set -x
 
2
 
 
3
DIRNAME=`dirname $0`
 
4
cd ${DIRNAME}
 
5
source init.sh
 
6
 
 
7
cd  $NB_ALL
 
8
 
 
9
###################################################################
 
10
#
 
11
# Build all the components
 
12
#
 
13
###################################################################
 
14
 
 
15
#Build source packages
 
16
ant -Dbuildnum=$BUILDNUM -Dbuildnumber=$BUILDNUMBER -f nbbuild/build.xml -Dmerge.dependent.modules=false -Dcluster.config=full build-source-config
 
17
ERROR_CODE=$?
 
18
 
 
19
if [ $ERROR_CODE != 0 ]; then
 
20
    echo "ERROR: $ERROR_CODE - Can't build all source package"
 
21
#    exit $ERROR_CODE;
 
22
else
 
23
    mv nbbuild/build/*-src-* $DIST/zip/$BASENAME-src.zip
 
24
fi
 
25
 
 
26
ant -Dbuildnum=$BUILDNUM -Dbuildnumber=$BUILDNUMBER -f nbbuild/build.xml -Dmerge.dependent.modules=false -Dcluster.name=nb.cluster.platform build-source
 
27
ERROR_CODE=$?
 
28
 
 
29
if [ $ERROR_CODE != 0 ]; then
 
30
    echo "ERROR: $ERROR_CODE - Can't build basic platform source package"
 
31
#    exit $ERROR_CODE;
 
32
else
 
33
    mv nbbuild/build/*-src-* $DIST/zip/$BASENAME-platform-src.zip
 
34
fi
 
35
 
 
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
 
38
ERROR_CODE=$?
 
39
 
 
40
if [ $ERROR_CODE != 0 ]; then
 
41
    echo "ERROR: $ERROR_CODE - Can't build basic IDE"
 
42
    exit $ERROR_CODE;
 
43
fi
 
44
 
 
45
#Build JNLP
 
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
 
47
ERROR_CODE=$?
 
48
 
 
49
if [ $ERROR_CODE != 0 ]; then
 
50
    echo "ERROR: $ERROR_CODE - Can't build JNLP"
 
51
#    exit $ERROR_CODE;
 
52
fi
 
53
 
 
54
 
 
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
 
57
ERROR_CODE=$?
 
58
 
 
59
if [ $ERROR_CODE != 0 ]; then
 
60
    echo "ERROR: $ERROR_CODE - Can't build NBMs"
 
61
    exit $ERROR_CODE;
 
62
fi
 
63
 
 
64
cd nbbuild
 
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="."
 
67
ERROR_CODE=$?
 
68
 
 
69
if [ $ERROR_CODE != 0 ]; then
 
70
    echo "ERROR: $ERROR_CODE - Can't build catalog FU for NBMs"
 
71
#    exit $ERROR_CODE;
 
72
fi
 
73
cd ..
 
74
 
 
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
 
77
ERROR_CODE=$?
 
78
 
 
79
if [ $ERROR_CODE != 0 ]; then
 
80
    echo "ERROR: $ERROR_CODE - Can't build stable UC NBMs"
 
81
    exit $ERROR_CODE;
 
82
fi
 
83
 
 
84
cd nbbuild
 
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="."
 
87
ERROR_CODE=$?
 
88
 
 
89
if [ $ERROR_CODE != 0 ]; then
 
90
    echo "ERROR: $ERROR_CODE - Can't build stable UC catalog for NBMs"
 
91
#    exit $ERROR_CODE;
 
92
fi
 
93
cd ..
 
94
 
 
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 
 
96
ERROR_CODE=$?
 
97
 
 
98
if [ $ERROR_CODE != 0 ]; then
 
99
    echo "ERROR: $ERROR_CODE - Building of Test Distrubution failed"
 
100
#    exit $ERROR_CODE;
 
101
else
 
102
    mv nbbuild/build/testdist.zip $DIST/zip/testdist-${BUILDNUMBER}.zip
 
103
fi
 
104
 
 
105
ant -Dbuildnum=$BUILDNUM -Dbuildnumber=$BUILDNUMBER -f nbbuild/build.xml build-javadoc
 
106
ERROR_CODE=$?
 
107
 
 
108
if [ $ERROR_CODE != 0 ]; then
 
109
    echo "ERROR: $ERROR_CODE - Building of Javadoc Distrubution failed"
 
110
#    exit $ERROR_CODE;
 
111
else
 
112
    mv nbbuild/NetBeans-*-javadoc.zip $DIST/zip/$BASENAME-javadoc.zip
 
113
    cp -r nbbuild/build/javadoc $DIST/
 
114
fi
 
115
 
 
116
#ML_BUILD
 
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
 
120
ERROR_CODE=$?
 
121
 
 
122
    if [ $ERROR_CODE != 0 ]; then
 
123
        echo "ERROR: $ERROR_CODE - Can't build ML IDE"
 
124
        exit $ERROR_CODE;
 
125
    fi
 
126
 
 
127
    #Build JNLP
 
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
 
129
    ERROR_CODE=$?
 
130
 
 
131
    if [ $ERROR_CODE != 0 ]; then
 
132
        echo "ERROR: $ERROR_CODE - Can't build ML JNLP"
 
133
   #    exit $ERROR_CODE;
 
134
    fi
 
135
 
 
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
 
138
    ERROR_CODE=$?
 
139
 
 
140
    if [ $ERROR_CODE != 0 ]; then
 
141
        echo "ERROR: $ERROR_CODE - Can't build ML NBMs"
 
142
        exit $ERROR_CODE;
 
143
    fi
 
144
 
 
145
    cd nbbuild
 
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="."
 
148
    ERROR_CODE=$?
 
149
 
 
150
    if [ $ERROR_CODE != 0 ]; then
 
151
        echo "ERROR: $ERROR_CODE - Can't build catalog FU for ML NBMs"
 
152
    #    exit $ERROR_CODE;
 
153
    fi
 
154
    cd ..
 
155
 
 
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
 
158
    ERROR_CODE=$?
 
159
 
 
160
    if [ $ERROR_CODE != 0 ]; then
 
161
        echo "ERROR: $ERROR_CODE - Can't build stable UC ML NBMs"
 
162
        exit $ERROR_CODE;
 
163
    fi
 
164
 
 
165
    cd nbbuild
 
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="."
 
168
    ERROR_CODE=$?
 
169
 
 
170
    if [ $ERROR_CODE != 0 ]; then
 
171
        echo "ERROR: $ERROR_CODE - Can't build stable UC catalog for ML NBMs"
 
172
    #    exit $ERROR_CODE;
 
173
    fi
 
174
    cd $NB_ALL/nbbuild
 
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
 
180
fi
 
181
 
 
182
cd $NB_ALL/nbbuild
 
183
 
 
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
 
189