diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index a7b5eeaad60c..546eeb8cd402 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -347,7 +347,7 @@ jobs:
- name: Check line endings and verify RAT report
if: ${{ !cancelled() }}
run: |
- nbbuild/travis/check-line-endings.sh
+ nbbuild/ci/check-line-endings.sh
ant $OPTS -quiet build-source-config
mkdir scratch && cd scratch
unzip -qq ../nbbuild/build/release-src*
diff --git a/nbbuild/travis/check-line-endings.sh b/nbbuild/ci/check-line-endings.sh
similarity index 100%
rename from nbbuild/travis/check-line-endings.sh
rename to nbbuild/ci/check-line-endings.sh
diff --git a/nbbuild/hudson/.hgmail-profiler b/nbbuild/hudson/.hgmail-profiler
deleted file mode 100644
index afe937a5273a..000000000000
--- a/nbbuild/hudson/.hgmail-profiler
+++ /dev/null
@@ -1,2 +0,0 @@
-[reposubs]
-* = cvs@profiler.netbeans.org
diff --git a/nbbuild/hudson/core-main b/nbbuild/hudson/core-main
deleted file mode 100644
index eac1ca5210f5..000000000000
--- a/nbbuild/hudson/core-main
+++ /dev/null
@@ -1,136 +0,0 @@
-#!/bin/sh
-
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-set -x
-
-ANT_OPTS="$ANT_OPTS -Xmx1G"
-
-if [ ! -z $NB_PROXY_HOST ] && [ ! -z $NB_PROXY_PORT ]; then
- ANT_OPTS="$ANT_OPTS -Dhttp.proxyHost=$NB_PROXY_HOST -Dhttp.proxyPort=$NB_PROXY_PORT"
-fi
-export ANT_OPTS
-
-ant build-nozip || exit
-ant commit-validation -Dcontinue.after.failing.tests=true || exit
-ant check-sigtests-release -Dfail.on.error=false || exit
-ant check-sigtests-version -Dsigtest.fail.on.error=true || exit
-ant -Dtest-unit-sys-prop.ignore.random.failures=true localtest || exit
-ant -Dtest-unit-sys-prop.ignore.random.failures=true -Dtest.type=test-unit -Dtest.modules=\
-ant.freeform,\
-ant.htmlui,\
-api.java,\
-api.java.classpath,\
-api.progress,\
-api.progress.nb,\
-api.templates,\
-api.visual,\
-apisupport.ant,\
-apisupport.harness,\
-apisupport.project,\
-apisupport.refactoring,\
-apisupport.wizards,\
-autoupdate.services,\
-autoupdate.ui,\
-core.execution,\
-core.ide,\
-core.kit,\
-core.multiview,\
-core.netigso,\
-core.osgi,\
-core.output2,\
-core.startup,\
-core.ui,\
-core.windows,\
-debugger.jpda.js,\
-editor.mimelookup,\
-editor.mimelookup.impl,\
-extexecution,\
-favorites,\
-hudson,\
-hudson.git,\
-hudson.maven,\
-hudson.mercurial,\
-hudson.subversion,\
-hudson.tasklist,\
-ide.branding,\
-java.api.common,\
-java.freeform,\
-java.j2seplatform,\
-java.j2seproject,\
-java.platform,\
-java.project,\
-javahelp,\
-keyring.impl,\
-masterfs,\
-maven,\
-maven.apisupport,\
-maven.embedder,\
-maven.hints,\
-maven.indexer,\
-maven.junit,\
-maven.model,\
-maven.osgi,\
-nbjunit,\
-nbbrwsr,\
-netbinox,\
-o.apache.tools.ant.module,\
-o.n.bootstrap,\
-o.n.core,\
-o.n.insane,\
-o.n.swing.tabcontrol,\
-openide.actions,\
-openide.awt,\
-openide.compat,\
-openide.dialogs,\
-openide.execution,\
-openide.explorer,\
-openide.filesystems,\
-openide.filesystems.compat8,\
-openide.filesystems.nb,\
-openide.loaders,\
-openide.modules,\
-openide.nodes,\
-openide.options,\
-openide.text,\
-openide.util,\
-openide.util.lookup,\
-openide.util.ui,\
-openide.windows,\
-options.api,\
-options.keymap,\
-progress.ui,\
-project.ant,\
-project.libraries,\
-projectapi,\
-projectimport.eclipse.core,\
-projectui,\
-projectuiapi,\
-queries,\
-sendopts,\
-settings,\
-spi.navigator,\
-spi.quicksearch,\
-tasklist.todo,\
-tasklist.ui,\
-templates,\
-templatesui,\
-uihandler,\
-versioning,\
-versioning.masterfs test || exit
-ant build-test-dist || exit
diff --git a/nbbuild/hudson/initAppserver.sh b/nbbuild/hudson/initAppserver.sh
deleted file mode 100644
index a8afdb5307bc..000000000000
--- a/nbbuild/hudson/initAppserver.sh
+++ /dev/null
@@ -1,131 +0,0 @@
-#!/bin/bash
-
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-## Script to init GlassFish application server for automated tests.
-## If not installed or newer binary is available, it uninstalls GlassFish,
-## and installs it. Then it always stops domain if running, kills all
-## related processes, deletes domain and creates new domain.
-
-set -x
-
-###################################################################
-
-# Initialization
-
-AS_ROOT=/hudson/workdir/jobs/trunk/testappsrv
-AS_BINARY=/hudson/glassfish-installer-v2ur1-b09d-linux.jar
-AS_HOME=${AS_ROOT}/glassfish
-AS_DOMAIN=domain1
-AS_PORT=8080
-
-mkdir -p $AS_ROOT
-
-###################################################################
-
-cleanup() {
- # check status all domains, stop running domains
- for domain in `$AS_HOME/bin/asadmin list-domains | grep running | grep -v not` ; do
- if [ $domain != "running" ]; then
- echo "Stopping domain $domain."
- $AS_HOME/bin/asadmin stop-domain $domain
- fi
- done
-
- # kill all App server processes
- for pid in `ps -ef | grep $AS_HOME | grep -v grep | awk {'print $2'}` ; do
- kill -9 $pid
- done
-
- # delete and create new domain
- COUNT=`$AS_HOME/bin/asadmin list-domains | grep $AS_DOMAIN | wc -l`
- if [ "$COUNT" -eq 1 ]; then
- echo "Deleting domain $AS_DOMAIN."
- $AS_HOME/bin/asadmin delete-domain $AS_DOMAIN
- ERROR_CODE=$?
- if [ $ERROR_CODE != 0 ]; then
- echo "ERROR: $ERROR_CODE - Can't delete domain $AS_DOMAIN - trying to uninstall and install Glassfish."
- uninstall
- install
- $AS_HOME/bin/asadmin delete-domain domain1
- fi
- fi
- echo "Creating domain $AS_DOMAIN."
- echo AS_ADMIN_PASSWORD=adminadmin > $AS_HOME/passwd
- echo AS_ADMIN_ADMINPASSWORD=adminadmin >> $AS_HOME/passwd
- echo AS_ADMIN_USERPASSWORD=adminadmin >> $AS_HOME/passwd
- echo AS_ADMIN_MASTERPASSWORD=adminadmin >> $AS_HOME/passwd
- $AS_HOME/bin/asadmin create-domain --adminport 4848 --user admin --savemasterpassword=true --passwordfile $AS_HOME/passwd $AS_DOMAIN
-}
-
-###################################################################
-
-uninstall() {
- if [ -x $AS_HOME/bin/uninstall ]; then
- $AS_HOME/bin/uninstall -silent
- fi
-
- # This is a temp hack as the "uninstall" command is broken
- if [ -d ${AS_HOME} ]; then
- rm -rf ${AS_HOME}
- fi
-}
-
-###################################################################
-
-install() {
- # install only if new binary is available
- if [ -f ${AS_HOME}/version ]; then
- AS_VERSION=`cat ${AS_HOME}/version`
- if [ "${AS_BINARY}" = "${AS_VERSION}" ]; then
- return
- fi
- fi
-
- uninstall
-
- cd ${AS_ROOT}
-
- TEMP_DISPLAY="${DISPLAY}"
- unset DISPLAY
-
- # Creating statefile
- echo "A" > ${AS_ROOT}/sunappserver_statefile
- java -Xmx256m -jar ${AS_BINARY} < ${AS_ROOT}/sunappserver_statefile
- ERROR_CODE=$?
- rm -f ${AS_ROOT}/sunappserver_statefile
- DISPLAY="${TEMP_DISPLAY}"
- export DISPLAY
-
- if [ $ERROR_CODE != 0 ]; then
- echo "ERROR: $ERROR_CODE - Can't install Glassfish"
- exit $ERROR_CODE;
- fi
-
- # Setup Application Server
- ant -f ${AS_HOME}/setup.xml -Dinstance.port=${AS_PORT} -Ddomain.name=${AS_DOMAIN}
-
- echo ${AS_BINARY} > ${AS_HOME}/version
-}
-
-############################# MAIN ################################
-
-install
-cleanup
-
-############################## END ################################
diff --git a/nbbuild/hudson/javascript-tests b/nbbuild/hudson/javascript-tests
deleted file mode 100644
index 58844b25a182..000000000000
--- a/nbbuild/hudson/javascript-tests
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/bin/sh
-
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-ant || exit 2
-ant -f javascript.editing/build-javascript.xml runtests || exit 3
diff --git a/nbbuild/hudson/nbms-and-javadoc b/nbbuild/hudson/nbms-and-javadoc
deleted file mode 100755
index eabe0bc1c1f4..000000000000
--- a/nbbuild/hudson/nbms-and-javadoc
+++ /dev/null
@@ -1,72 +0,0 @@
-#!/bin/sh
-
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-set -x
-
-keystore=$SECRET/NBstore
-storepass=`cat $SECRET/storepass`
-ant verify-libs-and-licenses || exit
-ant -f autoupdate.services/build.xml # build first to ensure DTD validation works
-ant -Dcluster.config=experimental \
- -Dkeystore=$keystore -Dstorepass=$storepass -Djavadoc.fail.on.error=false -Dnbms.fail.on.error=false \
- build-nonsigned-nbms || exit
-ant -Dcluster.config=stableuc create-license-summary || exit
-ant -Dcluster.config=experimental create-netbeans-import finish-build || exit
-
-rm -rv nbbuild/netbeans/ergonomics nbbuild/nbms/ergonomics # not going to have been built reasonably anyway
-ant -Dcluster.config=minimal -Dzip.dir=`pwd`/nbbuild/dist zip-cluster-config || exit
-ant -Dcluster.config=full -Dzip.dir=`pwd`/nbbuild/dist zip-cluster-config || exit
-(cd nbbuild/netbeans; for cluster in *; do if [ -d $cluster/update_tracking ]; then zip -rq ../dist/$BUILD_TAG-$cluster.zip $cluster; fi; done)
-
-ant -Dtest.fail.on.error=false build-test-dist
-
-ant -Dtest.config=commit -Dcontinue.after.failing.tests=true -f o.n.core/build.xml test
-ant -Dold.updates=file:${WORKSPACE}/nbbuild/build/prior-nbms/updates.xml generate-uc-catalog verify-update-descriptor || exit
-
-ant clean-untracked-files
-
-sh -x nbbuild/hudson/sigtests || exit 1
-
-set +x
-
-for r in . contrib
-do
- output="`hg -R $r st`"
- if [ -n "$output" ]
- then
- echo "Forbidden local modifications found -> The build will fail."
- echo "(Needed to fix a job which modified files in the repository)"
- echo "Modified files are:"
- echo "$output"
- hg -R $r diff
- exit 1
- fi
-done
-
-ant generate-golden-files generate-files-layout index-layer-paths summarize-hgmail || exit
-generated=nbbuild/build/generated
-cp -v nbbuild/netbeans/THIRDPARTYLICENSE-generated.txt $generated/external-libraries.txt || exit
-prev_generated=nbbuild/build/prior-generated
-if [ -d $prev_generated ]; then
- # kits.txt is too verbose and changes too frequently to include in diff
- diff -r -u --minimal --show-function-line='^[A-Z][A-Z]' --ignore-matching-lines=' [(]merged[)]$' -x kits.txt $prev_generated $generated > $generated.diff
- if [ -s $generated.diff ]; then
- (echo "${BUILD_URL}changes"; echo "${BUILD_URL}artifact/$generated/"; echo; cat $generated.diff) | mail -s "Golden file changes in $JOB_NAME build #$BUILD_NUMBER" api-changes@netbeans.org
- fi
-fi
diff --git a/nbbuild/hudson/round-robin-build b/nbbuild/hudson/round-robin-build
deleted file mode 100644
index 07cfa2ed886f..000000000000
--- a/nbbuild/hudson/round-robin-build
+++ /dev/null
@@ -1,54 +0,0 @@
-#!/bin/sh
-
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-dobuild() {
- RESULT=`pwd`/nbbuild/build/test-results.txt
- export RESULT
- rm -f $RESULT
-
- ant build-nozip $ANT_PARAM || exit 2
- ant commit-validation $ANT_PARAM || exit 3
- ant check-sigtests-release $ANT_PARAM || exit 35
-# ant build-test-dist $ANT_PARAM || exit 4
- # At least check that there are no cycles in the dep list, as e.g. in 2ca8e9e6fb71:
- ant init-test-dist $ANT_PARAM || exit 4
-
- testmodule openide.awt || exit 5
-
- if ant check-sigtests-version $ANT_PARAM -Dsigtest.fail.on.error=true; then
- echo Sigtest version check OK
- else
- echo ***************************************************
- echo
- echo More info at http://wiki.netbeans.org/SignatureTest
- echo
- echo ***************************************************
- exit 6
- fi
-
- FAILED=`cat $RESULT | wc -l`
- if [ "$FAILED" -gt 0 ]; then
- echo "No push. Failed tests in following modules:"
- cat $RESULT
- exit 5
- fi
-
- # Clean up some to save on disk space:
- rm -rf */build/classes */build/javahelp nbbuild/netbeans nbbuild/build/public-package-jars
-}
diff --git a/nbbuild/hudson/round-robin-push b/nbbuild/hudson/round-robin-push
deleted file mode 100644
index 7b1ca92ff50f..000000000000
--- a/nbbuild/hudson/round-robin-push
+++ /dev/null
@@ -1,158 +0,0 @@
-#!/bin/sh
-
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-[ -n "$pop_url" ] || exit 101
-if [ -z "$pop_build_info" ]; then
- pop_build_info="nbbuild/build/build_info"
-fi
-[ -n "$pop_job" ] || exit 103
-
-[ -n "$push_url" ] || exit 113
-[ -n "$push_username" ] || exit 114
-
-
-testresult() {
- if [ -z "$4" ]; then
- FAILURES="0"
- else
- FAILURES="$4"
- fi
-
- FILE="$1/TEST-hg.$2.xml"
- echo '' >$FILE
- echo '' >>$FILE
- echo ' ' >>$FILE
- echo ' ' >>$FILE
- echo ' ' >>$FILE
- if [ "$FAILURES" -gt "0" ]; then
- echo ' ' >>$FILE
- fi
- echo ' ' >>$FILE
- echo ' >$FILE
- echo "$3" >>$FILE
- echo ']]>' >>$FILE
- echo ' ' >>$FILE
- echo '' >>$FILE
-}
-
-testmodule() {
- if ant $ANT_PARAM -f $1/build.xml test-unit -Dtest-unit-sys-prop.ignore.random.failures=true; then
- echo Test OK: $1
- else
- echo $1 >>$RESULT
- exit 5
- fi
-}
-
-rollback() {
- EXIT="$?"
- if [ -n "$BASETIP" ]; then
- echo "Script failed with exitcode $EXIT rolling back to $BASETIP"
- hg update -C
- hg --config extensions.mq= strip -n "$BASETIP"
- hg pull -r "$BASETIP"
- else
- echo "No rollback, exitcode $EXIT"
- fi
-}
-
-if [ -z "$TMP" ]; then
- TMP="/tmp"
-fi
-
-ANT_OPTS="-Xmx512m"
-export ANT_OPTS
-
-BASETIP=`hg log -r . --template '{node}'`
-trap rollback EXIT
-
-hg up -C tip
-hg --config extensions.purge= clean --all
-
-TESTDIR="nbbuild/build/test/results/"
-mkdir -p $TESTDIR
-
-mkdir -p "nbbuild/build"
-STATUS="nbbuild/build/build-info"
-curl -H "Cache-Control: no-cache" $pop_job/buildStatus -D "$STATUS"
-cat "$STATUS"
-
-echo Getting Build Info
-HGINFO=`curl -vvvv -H "Cache-Control: no-cache" $pop_job/lastStableBuild/artifact/$pop_build_info`
-echo Build info: $HGINFO
-testresult "$TESTDIR" "build.info" "$HGINFO"
-[ -n "$HGINFO" ] || exit 1
-
-HGID=`echo "$HGINFO" | grep "Hg ID"`
-echo Last build_info line: "$HGID"
-HGTIP=`echo "$HGID" | cut -f 2 -d ":" | while read X; do echo $X; done`
-echo Last OK revision: "$HGTIP"
-
-hg pull -r "$HGTIP" "$pop_url" || exit 5
-echo 'hg parent:'
-hg parent
-if [ `hg heads --template '{node|short}\n' | wc -l` = 1 ]
-then
- hg up || exit 6
-else
- if hg --config ui.merge=internal:merge --config ui.interactive=1 merge "$HGTIP" < /dev/null; then
- echo Merge OK.
- else
- echo Merge failed.
- hg heads
- exit 7
- fi
- hg ci -u "$push_username"@netbeans.org -m "Merge of $pop_url" || exit 8
-fi
-HGOUT=`hg out $push_url`
-testresult "$TESTDIR" "outgoing.changes" "$HGOUT"
-
-OUT_COUNT=`hg out --no-merges --template 'change: {node|short}\n' $push_url | grep '^change: ' | wc -l`
-if [ "$OUT_COUNT" -gt 0 ]; then
- echo "Let the build start. There are $OUT_COUNT outgoing changes."
-else
- echo "No outgoing changes. No reason to do build."
- echo >"nbbuild/no-outgoing-changes-no-build.zip"
- if egrep "Location:.*/blue(_anime)?[.]" "$STATUS"; then
- echo Build seems to be stable
- testresult "$TESTDIR" "check.build.stable" "`cat $STATUS`"
- else
- echo Build is not stable
- testresult "$TESTDIR" "check.build.stable" "`cat $STATUS`" "1"
- echo >"nbbuild/downstream-builder-not-stable-no-push.zip"
- fi
- exit 0
-fi
-
-. `dirname $0`/round-robin-build
-
-if dobuild; then
- for i in 1 2 3 4 5 6 7 8 9 10; do
- if hg push -f "$push_url"; then
- echo "Build and push successful"
- unset BASETIP
- exit 0
- fi
- done
- echo "Push failed"
- exit 1
-else
- echo "Failure, rolling back own commits to $BASETIP"
- exit 1
-fi
diff --git a/nbbuild/hudson/round-sync b/nbbuild/hudson/round-sync
deleted file mode 100644
index 9b5fbabde7f7..000000000000
--- a/nbbuild/hudson/round-sync
+++ /dev/null
@@ -1,67 +0,0 @@
-#!/bin/sh
-
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-[ -n "$push_username" ] || exit 102
-[ -n "$push_password" ] || exit 103
-[ -n "$push_repo" ] || exit 104
-
-rollback() {
- EXIT="$?"
- if [ -n "$BASETIP" ]; then
- echo "Script failed for these heads"
- hg heads
- echo "Script failed with exitcode $EXIT rolling back to $BASETIP"
- hg update -C
- hg --config extensions.mq= strip -n "$BASETIP"
- hg pull -r "$BASETIP"
- else
- echo "No rollback, exitcode $EXIT"
- fi
-}
-
-BASETIP=`hg log -r . --template '{node}'`
-trap rollback EXIT
-
-hg pull -r default -u http://hg.netbeans.org/"$push_repo"
-
-hg heads
-HEADS=`hg heads --template "{branches}\n" | grep "^$" | wc -l`
-if [ $HEADS = 2 ]; then
- echo "2 heads, Need to merge"
- hg --config ui.merge=internal:merge --config ui.interactive=1 merge < /dev/null || exit 8
- hg ci -u "$push_username"@netbeans.org -m "Automated merge with main-silver"
-else
- if [ $HEADS -gt 2 ]; then
- echo "$HEADS heads, here is some diagnostic"
- hg heads
- fi
-fi
-
-TIP=`hg log -r . --template '{node}'`
-
-if hg push -f -r $TIP https://"$push_username":"$push_password"@hg.netbeans.org/"$push_repo"; then
- echo Push OK.
-else
- hg heads
- hg incoming -r default http://hg.netbeans.org/"$push_repo"
- echo Too many heads in default branch or there are some incoming changesets
- exit 9
-fi
-unset BASETIP
-exit 0
diff --git a/nbbuild/hudson/sigtests b/nbbuild/hudson/sigtests
deleted file mode 100644
index 867a549aec9b..000000000000
--- a/nbbuild/hudson/sigtests
+++ /dev/null
@@ -1,61 +0,0 @@
-#!/bin/sh
-
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-if [ -z "$JOB_URL" ]; then
- JOB_URL=http://deadlock.netbeans.org/job/nbms-and-javadoc/
-fi
-
-sigtest_prev=$WORKSPACE/nbbuild/build/prior-sigtest
-if [ -d $sigtest_prev ]
-then
- echo SigTest: Previous Snapshots
- ls $sigtest_prev
- echo SigTest: Checking All Changes
- ANT_OPTS='-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp/ant-check-sigtests.hprof' ant -Dsigtest.basedir=$sigtest_prev check-sigtests
- for report in `pwd`/nbbuild/build/sigtest/check-snapshot/*; do
- if ! expr "$report" : ".*/TESTS-.*" && grep 'failures="1"' $report >/dev/null; then
- sigtest_email=`cat $report | grep "^email:" | grep -v commit.mail | cut -c 8-`
- if [ -z "$sigtest_email" ]; then
- sigtest_email="api-changes@netbeans.org"
- fi
- content=`cat $report`
- (
- echo "Code changes:";
- echo "${BUILD_URL}changes";
- echo "API changes:";
- echo "${BUILD_URL}artifact/nbbuild/build/sigtest/check-snapshot/html/index.html";
- echo "Failure output is available as StdErr output of sigtest test for appropriate module.";
- # echo "${BUILD_URL}artifact/$sigtest_out/`basename $report`";
- echo;
- expr "$content" : ".*CDATA\[\(.*\)\]\].*"
- ) | mail -s "`basename $report` - sigchanges in $JOB_NAME build #$BUILD_NUMBER" $sigtest_email
- fi
- done
- echo SigTest: Checking All Changes Done
-else
- echo SigTest: Did not find previous Snapshot
-fi
-
-echo SigTest: Generating Golden Files
-ant gen-sigtests || exit 1
-echo SigTest: Golden Files generated successfully
-
-echo SigTest: Finding Incompatible Changes
-ant check-sigtests-release -Dfail.on.error=false || exit 1
-echo SigTest: Finding Incompatible Changes finished successfully
diff --git a/nbbuild/hudson/team-private-repo b/nbbuild/hudson/team-private-repo
deleted file mode 100644
index 9059a1899881..000000000000
--- a/nbbuild/hudson/team-private-repo
+++ /dev/null
@@ -1,134 +0,0 @@
-#!/bin/bash
-
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-set -x
-if [ "$1" != "" ] ; then
- repository=$1
- echo $repository
-fi
-
-if [ "$2" != "" ]; then
- action=$2
-fi
-
-if [ "$3" != "" ]; then
- push_username=$3
-fi
-
-if [ "$4" != "" ]; then
- push_password=$4
-fi
-
-if [ "$action" = "build" -a "$action" = "sync" ] ; then
- exit 101
-fi
-
-if [ "$push_username" = "" ] ; then
- exit 102
-fi
-
-if [ "$push_password" = "" ] ; then
- exit 103
-fi
-
-if [ "$repository" = "" ] ; then
- exit 104
-fi
-
-ANT_OPTS="-Xmx512m"
-export ANT_OPTS
-HGMERGE=merge
-export HGMERGE
-/bin/pwd
-rm -rf real.workspace
-hg clone . real.workspace || exit 1
-cd real.workspace
-
-/bin/pwd
-
-testmodule() {
- ant -f $1/build.xml test -Dtest-unit-sys-prop.ignore.random.failures=true
-}
-
-if [ "$action" = "build" ]; then
- hg pull http://hg.netbeans.org/$repository || exit 1
- hg up -C http://hg.netbeans.org/$repository || exit 1
-
- ant build || exit 2
- ant commit-validation # || exit 3
-# testmodule openide.util || exit 4
-# testmodule openide.modules || exit 4
-# testmodule openide.filesystems || exit 4
-# masterfs is currently broken, Radek wants me to disable it until 6.1M2:
-# ant -f masterfs|| exit 4
-# testmodule openide.nodes|| exit 4
-# testmodule openide.options || exit 4
-# testmodule openide.dialogs || exit 4
-# testmodule openide.awt || exit 4
-# testmodule openide.windows || exit 4
-# testmodule core.startup # || exit 4
-# testmodule openide.io || exit 4
-# if [ `hg out --template '{node|short}\n' http://hg.netbeans.org/$repository | wc -l` > 0 ]; then
-# echo No outgoing changes
-# exit 0
-# fi
-
-# for i in 1 2 3; do
-# hg pull http://hg.netbeans.org/$repository || exit 5
-# if [ `hg heads --template '{node|short}\n' | wc -l` = 1 ]
-# then
-# hg up || exit 6
-# else
-# hg merge || exit 7
-# hg ci -m 'Automated merge' || exit 8
-# fi
-# hg out http://hg.netbeans.org/main
-# hg in http://hg.netbeans.org/main
-# hg push https://"$push_username":"$push_password"@hg.netbeans.org/main && exit 0
-# done
-# exit 5
- exit 0
-fi
-
-if [ "$action" = "sync" ]; then
- # update the latest tip of the private repository
- hg fetch http://hg.netbeans.org/$repository
-
- # pulling new changes from main-golden
- # not needed because the real.workspace is the latest main-golden
- # hg fetch http://hg.netbeans.org/main-golden
-
- # Now build and run tests before push
- ant build || exit 2
- ant commit-validation # || exit 3
-
- # Just make sure that there are no new changes before push
- hg out http://hg.netbeans.org/$repository
- hg fetch http://hg.netbeans.org/$repository
-
- hg push https://"$push_username":"$push_password"@hg.netbeans.org/$repository
-
- # Now push to the test repo
- # echo "Also for now push to testpush-repo:"
- # hg fetch ../../testpush-repo
- # hg push ../../testpush-repo
- exit 0
-fi
-# Something wrong here
-exit 1
diff --git a/nbbuild/hudson/team-repo b/nbbuild/hudson/team-repo
deleted file mode 100644
index 6103f41248a3..000000000000
--- a/nbbuild/hudson/team-repo
+++ /dev/null
@@ -1,116 +0,0 @@
-#!/bin/sh
-
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-if [ -z $repository && -n $1 ]; then
- repository = $1
-fi
-
-if [ -z $action && -n $2]; then
- action = $2
-fi
-
-if [ -z $push_username && -n $3 ]; then
- push_username = $3
-fi
-
-if [ -z $push_password && -n $4 ]; then
- push_password = $4
-fi
-
-[ "$action" = "build" ] || [ "$action" = "sync" ] || exit 101
-
-[ -n "$push_username" ] || exit 102
-[ -n "$push_password" ] || exit 103
-
-[ -n "$repository" ] || exit 104
-
-ANT_OPTS="-Xmx512m"
-export ANT_OPTS
-HGMERGE=merge
-export HGMERGE
-
-rm -rf real.workspace
-hg clone . real.workspace || exit 1
-cd real.workspace
-
-testmodule() {
- ant -f $1/build.xml test -Dtest-unit-sys-prop.ignore.random.failures=true
-}
-
-if [ "$action" = "build" ]; then
-# hg fetch http://hg.netbeans.org/main || exit 1
-# hg pull http://hg.netbeans.org/main || exit 1
-# if [ `hg heads --template '{node|short}\n' | wc -l` = 1 ]
-# then
-# hg up || exit 6
-# else
-# hg merge || exit 7
-# hg ci -m 'Automated merge' || exit 8
-# fi
-
- ant build || exit 2
- ant commit-validation # || exit 3
- testmodule openide.util || exit 4
- testmodule openide.modules || exit 4
- testmodule openide.filesystems || exit 4
-# masterfs is currently broken, Radek wants me to disable it until 6.1M2:
-# ant -f masterfs|| exit 4
- testmodule openide.nodes|| exit 4
- testmodule openide.options || exit 4
- testmodule openide.dialogs || exit 4
- testmodule openide.awt || exit 4
- testmodule openide.windows || exit 4
- testmodule core.startup # || exit 4
-# testmodule openide.io || exit 4
- if [ `hg out --template '{node|short}\n' http://hg.netbeans.org/main | wc -l` > 0 ]; then
- echo No outgoing changes
-# exit 0
- fi
-
- for i in 1 2 3; do
- hg pull http://hg.netbeans.org/main || exit 5
- if [ `hg heads --template '{node|short}\n' | wc -l` = 1 ]
- then
- hg up || exit 6
- else
- hg merge || exit 7
- hg ci -m 'Automated merge' || exit 8
- fi
- hg out http://hg.netbeans.org/main
- hg in http://hg.netbeans.org/main
- hg push https://"$push_username":"$push_password"@hg.netbeans.org/main && exit 0
- done
- exit 5
-fi
-
-if [ "$action" = "sync" ]; then
- HEADS=`hg heads --template "{node}\n" | wc -l`
- if [ $HEADS = 2 ]; then
- hg merge
- hg ci -m "Automated merge"
- hg up -C
- fi
- hg fetch http://hg.netbeans.org/$repository
- hg push https://"$push_username":"$push_password"@hg.netbeans.org/$repository
- exit 0
-fi
-
-
-
-
diff --git a/nbbuild/hudson/test-platform b/nbbuild/hudson/test-platform
deleted file mode 100644
index e536b06e6bce..000000000000
--- a/nbbuild/hudson/test-platform
+++ /dev/null
@@ -1,46 +0,0 @@
-#!/bin/sh
-
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-# XXX consider using lastStableBuild
-BUILD=`wget http://deadlock.nbextras.org/hudson/job/trunk/lastSuccessfulBuild/buildNumber -O -`
-
-TESTDIST="http://deadlock.netbeans.org/job/test-compilation/lastSuccessfulBuild/artifact/nbbuild/build/testdist.zip"
-PLATFORM="http://deadlock.netbeans.org/job/trunk/lastSuccessfulBuild/artifact/nbbuild/dist/zip/netbeans-hudson-trunk-$BUILD-platform.zip"
-
-[ -f `basename $TESTDIST` ] || wget $TESTDIST
-[ -f `basename $PLATFORM` ] || wget $PLATFORM
-
-
-rm -rf testdist
-mkdir testdist
-unzip testdist.zip -d testdist
-
-rm -rf netbeans
-mkdir netbeans
-unzip netbeans*platform*.zip -d netbeans
-mkdir netbeans/etc
-echo >netbeans/etc/netbeans.conf
-
-#-ant -f testdist/build.xml unit -Dnetbeans.dest.dir=`pwd`/netbeans
-ant -f testdist/unit/unit-all-unit.xml runtests -Dnetbeans.dest.dir=`pwd`/netbeans $*
-
-
-
-
-
diff --git a/nbbuild/hudson/trunk b/nbbuild/hudson/trunk
deleted file mode 100644
index 708c2e9aef38..000000000000
--- a/nbbuild/hudson/trunk
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/bin/sh
-
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-ant -Dcontinue.after.failing.tests=true -Dtest.fail.on.error=false build-nozip commit-validation build-test-dist
diff --git a/nbbuild/newbuild/JavaFXNBPlugin_checkout.sh b/nbbuild/newbuild/JavaFXNBPlugin_checkout.sh
deleted file mode 100644
index be97cbec5281..000000000000
--- a/nbbuild/newbuild/JavaFXNBPlugin_checkout.sh
+++ /dev/null
@@ -1,58 +0,0 @@
-#!/bin/sh
-
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-# This script is purposed
-#to getting all needed sources
-# to start Java FX Netbeans Plugin builds
-
-
-#Check if there is the main repo
-cd $WORKSPACE
-if [ ! -d main ] ;
-then
-hg clone http://hg.netbeans.org/main
-else
- cd $WORKSPACE/main
- if [ -d .hg ]
- then
- hg pull http://hg.netbeans.org/main
- hg update -C
- else
- cd $WORKSPACE
- hg clone http://hg.netbeans.org/main
- fi
-fi
-
-#Check if there is the repo main/contrib
-cd $WORKSPACE/main
-
-if [ ! -d contrib ] ;
-then
-hg clone http://hg.netbeans.org/main/contrib
-else
- cd $WORKSPACE/main/contrib
- if [ -d .hg ]
- then
- hg pull http://hg.netbeans.org/main/contrib
- hg update -C
- else
- cd $WORKSPACE
- hg clone http://hg.netbeans.org/maincontrib
- fi
-fi
diff --git a/nbbuild/newbuild/build-all-components.sh b/nbbuild/newbuild/build-all-components.sh
deleted file mode 100644
index f3f3dcb905ef..000000000000
--- a/nbbuild/newbuild/build-all-components.sh
+++ /dev/null
@@ -1,224 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-set -x
-
-DIRNAME=`dirname $0`
-cd ${DIRNAME}
-SCRIPT_DIR=`pwd`
-source init.sh
-
-#Clean old tests results
-if [ -n $WORKSPACE ]; then
- rm -rf $WORKSPACE/results
-fi
-
-cd $NB_ALL
-
-###################################################################
-#
-# Build all the components
-#
-###################################################################
-
-mkdir -p nbbuild/netbeans
-
-#Build source packages
-ant ${CLUSTER_CONFIG:--Dcluster.config=full} -Dbuildnum=$BUILDNUM -Dbuildnumber=$BUILDNUMBER -Dlocales=$LOCALES -f nbbuild/build.xml -Dmerge.dependent.modules=false build-source-config
-ERROR_CODE=$?
-
-create_test_result "build.source.package" "Build Source package" $ERROR_CODE
-if [ $ERROR_CODE != 0 ]; then
- echo "ERROR: $ERROR_CODE - Cannot build all source package"
-# exit $ERROR_CODE;
-else
- mv nbbuild/build/*-src-* $DIST/zip/$BASENAME-src.zip
-fi
-
-ant -Dbuildnum=$BUILDNUM -Dbuildnumber=$BUILDNUMBER -Dlocales=$LOCALES -f nbbuild/build.xml -Dmerge.dependent.modules=false -Dcluster.config=platform build-source-config
-ERROR_CODE=$?
-
-create_test_result "build.source.platform" "Build Platform Source package" $ERROR_CODE
-if [ $ERROR_CODE != 0 ]; then
- echo "ERROR: $ERROR_CODE - Cannot build basic platform source package"
-# exit $ERROR_CODE;
-else
- mv nbbuild/build/*-src-* $DIST/zip/$BASENAME-platform-src.zip
-fi
-
-#Build the NB IDE first - no validation tests!
-ant $CLUSTER_CONFIG -Dbuildnum=$BUILDNUM -Dbuildnumber=$BUILDNUMBER -Dlocales=$LOCALES -f nbbuild/build.xml build-nozip -Dbuild.compiler.debuglevel=${DEBUGLEVEL}
-ERROR_CODE=$?
-
-create_test_result "build.IDE" "Build IDE" $ERROR_CODE
-if [ $ERROR_CODE != 0 ]; then
- echo "ERROR: $ERROR_CODE - Cannot build IDE"
- exit $ERROR_CODE;
-fi
-
-############### Commit validation tests ##########################
-cp -rp $NB_ALL/nbbuild/netbeans $NB_ALL/nbbuild/netbeans-vanilla
-
-TESTS_STARTED=`date`
-# Different JDK for tests because JVM crashes often (see 6598709, 6607038)
-JDK_TESTS=$JDK_HOME
-# standard NetBeans unit and UI validation tests
-ant -v -f nbbuild/build.xml -Dlocales=$LOCALES -Dbuildnum=$BUILDNUM -Dbuildnumber=$BUILDNUMBER commit-validation
-ERROR_CODE=$?
-
-create_test_result "test.commit-validation" "Commit Validation" $ERROR_CODE
-if [ $ERROR_CODE != 0 ]; then
- echo "ERROR: $ERROR_CODE - Commit validation failed"
- #TEST_CODE=1;
-fi
-
-if [ -n $WORKSPACE ]; then
- cp -r $NB_ALL/nbbuild/build/test/results $WORKSPACE
-fi
-
-echo TESTS STARTED: $TESTS_STARTED
-echo TESTS FINISHED: `date`
-if [ "${TEST_CODE}" = 1 ]; then
- echo "ERROR: At least one of validation tests failed"
- exit 1;
-fi
-
-#Remove file created during commit validation
-rm -rf $NB_ALL/nbbuild/netbeans/nb/servicetag
-rm -rf $NB_ALL/nbbuild/netbeans/enterprise/config/GlassFishEE6
-
-ant $CLUSTER_CONFIG -Dbuildnum=$BUILDNUM -Dbuildnumber=$BUILDNUMBER -Dlocales=$LOCALES -f nbbuild/build.xml build-test-dist -Dtest.fail.on.error=false
-ERROR_CODE=$?
-
-create_test_result "build.test.dist" "Build Test Distribution" $ERROR_CODE
-if [ $ERROR_CODE != 0 ]; then
- echo "ERROR: $ERROR_CODE - Building of Test Distrubution failed"
- exit $ERROR_CODE;
-else
- mv nbbuild/build/testdist.zip $DIST/zip/testdist-${BUILDNUMBER}.zip
-fi
-
-rm -rf $NB_ALL/nbbuild/netbeans
-cp -rp $NB_ALL/nbbuild/netbeans-vanilla $NB_ALL/nbbuild/netbeans
-cd $NB_ALL
-
-#Build all NBMs for stable UC - IDE + UC-only
-ant ${CLUSTER_CONFIG:--Dcluster.config=stableuc} -Dbuildnum=$BUILDNUM -Dbuildnumber=$BUILDNUMBER -Dlocales=$LOCALES -f nbbuild/build.xml build-nonsigned-nbms -Dbase.nbm.target.dir=${DIST}/uc2 -Dkeystore=$KEYSTORE -Dstorepass=$STOREPASS -Dbuild.compiler.debuglevel=${DEBUGLEVEL}
-ERROR_CODE=$?
-
-create_test_result "build.NBMs" "Build all NBMs" $ERROR_CODE
-if [ $ERROR_CODE != 0 ]; then
- echo "ERROR: $ERROR_CODE - Cannot build all stable UC NBMs"
- exit $ERROR_CODE;
-fi
-
-cd $NB_ALL
-
-#Rebuild ODCS NBMs for stable UC with all available locales
-ant ${CLUSTER_CONFIG:--Dcluster.config=odcs} -Dbuildnum=$BUILDNUM -Dbuildnumber=$BUILDNUMBER -Dlocales=$LOCALES,de,es,fr,it,ko,zh_TW -f nbbuild/build.xml build-nonsigned-nbms -Dbase.nbm.target.dir=${DIST}/odcs -Dkeystore=$KEYSTORE -Dstorepass=$STOREPASS -Dbuild.compiler.debuglevel=${DEBUGLEVEL}
-ERROR_CODE=$?
-
-create_test_result "build.NBMs" "Build ODCS NBMs" $ERROR_CODE
-if [ $ERROR_CODE != 0 ]; then
- echo "ERROR: $ERROR_CODE - Cannot build ODCS NBMs"
- exit $ERROR_CODE;
-fi
-
-mv ${DIST}/odcs/extra/org-netbeans-modules-odcs* ${DIST}/uc2/extra/
-mv ${DIST}/odcs/extra/org-netbeans-modules-team-server* ${DIST}/uc2/extra/
-rm -rf ${DIST}/odcs
-
-rm -rf $NB_ALL/nbbuild/netbeans
-mv $NB_ALL/nbbuild/netbeans-vanilla $NB_ALL/nbbuild/netbeans
-
-cd $NB_ALL
-
-# Separate IDE nbms from stableuc nbms.
-ant $CLUSTER_CONFIG -f nbbuild/build.xml move-ide-nbms -Dnbms.source.location=${DIST}/uc2 -Dnbms.target.location=${DIST}/uc
-ERROR_CODE=$?
-
-create_test_result "get.ide.NBMs" "Extract IDE NBMs from all the built NBMs" $ERROR_CODE
-if [ $ERROR_CODE != 0 ]; then
- echo "ERROR: $ERROR_CODE - Cannot extract IDE NBMs"
- exit $ERROR_CODE;
-fi
-
-
-#Build 110n kit for HG files
-ant $CLUSTER_CONFIG -Dbuildnum=$BUILDNUM -Dbuildnumber=$BUILDNUMBER -Dlocales=$LOCALES -f build.xml hg-l10n-kit -Dl10n.kit=${DIST}/zip/hg-l10n-$BUILDNUMBER.zip
-ERROR_CODE=$?
-
-create_test_result "build.hg.l10n" "Build 110n kit for HG files" $ERROR_CODE
-if [ $ERROR_CODE != 0 ]; then
- echo "ERROR: $ERROR_CODE - Cannot build l10n kits for HG files"
-# exit $ERROR_CODE;
-fi
-
-#Build l10n kit for IDE modules
-ant $CLUSTER_CONFIG -Dbuildnum=$BUILDNUM -Dbuildnumber=$BUILDNUMBER -Dlocales=$LOCALES -f build.xml l10n-kit -Dnbms.location=${DIST}/uc -Dl10n.kit=${DIST}/zip/ide-l10n-$BUILDNUMBER.zip
-ERROR_CODE=$?
-
-create_test_result "build.modules.l10n" "Build l10n kit for IDE modules" $ERROR_CODE
-if [ $ERROR_CODE != 0 ]; then
- echo "ERROR: $ERROR_CODE - Cannot build l10n kits for IDE modules"
-# exit $ERROR_CODE;
-fi
-
-#Build l10n kit for stable uc modules
-ant $CLUSTER_CONFIG -Dbuildnum=$BUILDNUM -Dbuildnumber=$BUILDNUMBER -Dlocales=$LOCALES -f build.xml l10n-kit -Dnbms.location=${DIST}/uc2 -Dl10n.kit=${DIST}/zip/stableuc-l10n-$BUILDNUMBER.zip
-ERROR_CODE=$?
-
-create_test_result "build.modules.l10n" "Build l10n kit for stable uc modules" $ERROR_CODE
-if [ $ERROR_CODE != 0 ]; then
- echo "ERROR: $ERROR_CODE - Cannot build l10n kits for stable uc modules"
-# exit $ERROR_CODE;
-fi
-
-cd nbbuild
-#Build catalog for IDE NBMs
-ant $CLUSTER_CONFIG -Dbuildnum=$BUILDNUM -Dbuildnumber=$BUILDNUMBER -f build.xml generate-uc-catalog -Dnbms.location=${DIST}/uc -Dcatalog.file=${DIST}/uc/catalog.xml
-ERROR_CODE=$?
-
-create_test_result "build.ide.catalog" "Build UC catalog for IDE modules" $ERROR_CODE
-if [ $ERROR_CODE != 0 ]; then
- echo "ERROR: $ERROR_CODE - Cannot build UC catalog for IDE module"
- exit $ERROR_CODE;
-fi
-
-#Build catalog for Stable UC NBMs
-ant $CLUSTER_CONFIG -Dbuildnum=$BUILDNUM -Dbuildnumber=$BUILDNUMBER -f build.xml generate-uc-catalog -Dnbms.location=${DIST}/uc2 -Dcatalog.file=${DIST}/uc2/catalog.xml
-ERROR_CODE=$?
-
-create_test_result "build.stableuc.catalog" "Build UC catalog for stable UC modules" $ERROR_CODE
-if [ $ERROR_CODE != 0 ]; then
- echo "ERROR: $ERROR_CODE - Cannot build UC catalog for stable UC modules"
- exit $ERROR_CODE;
-fi
-cd ..
-
-cd $NB_ALL/nbbuild
-
-if [ ! -z $UC_NBMS_DIR ]; then
- for UC_CLUSTER in $UC_EXTRA_CLUSTERS; do
- cp -r ${UC_NBMS_DIR}/${UC_CLUSTER} ${DIST}/uc
- done
-fi
-
-#Remove the build helper files
-rm -f netbeans/nb.cluster.*
-#rm -f netbeans/build_info
-#rm -rf netbeans/extra
diff --git a/nbbuild/newbuild/build-mac-nbi.sh b/nbbuild/newbuild/build-mac-nbi.sh
deleted file mode 100644
index f0f203fd59fa..000000000000
--- a/nbbuild/newbuild/build-mac-nbi.sh
+++ /dev/null
@@ -1,80 +0,0 @@
-#!/bin/bash
-
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-set -x
-
-if [ ! -z $TIP ] ; then
- echo Update to $TIP
- hg up --rev $TIP
-fi
-
-DIRNAME=`dirname $0`
-cd ${DIRNAME}
-SCRIPTS_DIR=`pwd`
-source init.sh
-
-if [ -z $BUILD_NBJDK7 ]; then
- BUILD_NBJDK7=0
-fi
-
-if [ -z "$SIGNING_IDENTITY" ]; then
- SIGNING_IDENTITY=0
-fi
-
-if [ ! -z $SIGNING_PASSWORD ] ; then
- security unlock-keychain -p $SIGNING_PASSWORD
-fi
-
- if [ 1 -eq $ML_BUILD ] ; then
- cd $NB_ALL/l10n
- tar c src/*/other/installer/mac/* | ( cd $NB_ALL; tar x )
- cd $NB_ALL
- fi
-
-
-# Run new builds
-sh $NB_ALL/installer/mac/newbuild/init.sh
-sh $NB_ALL/installer/mac/newbuild/build.sh $MAC_PATH $BASENAME_PREFIX $BUILDNUMBER $BUILD_NBJDK7 "$SIGNING_IDENTITY" $LOCALES
-ERROR_CODE=$?
-
-if [ $ERROR_CODE != 0 ]; then
- echo "ERROR: $ERROR_CODE - NBI installers build failed"
- exit $ERROR_CODE;
-fi
-
-mkdir -p $DIST/bundles
-cp -r $WORKSPACE/installer/mac/newbuild/dist_en/* $DIST/bundles
-ERROR_CODE=$?
-if [ $ERROR_CODE != 0 ]; then
- echo "ERROR: $ERROR_CODE - Cannot copy installers"
- exit $ERROR_CODE;
-fi
-
-cd $DIST
-
-bash ${SCRIPTS_DIR}/files-info.sh bundles bundles/jdk
-ERROR_CODE=$?
-
-if [ $ERROR_CODE != 0 ]; then
- echo "ERROR: $ERROR_CODE - Counting of MD5 sums and size failed"
-fi
-
-if [ ! -z $SIGNING_PASSWORD ] ; then
- security lock-keychain
-fi
diff --git a/nbbuild/newbuild/build-nbi.sh b/nbbuild/newbuild/build-nbi.sh
deleted file mode 100644
index 681b87ffc317..000000000000
--- a/nbbuild/newbuild/build-nbi.sh
+++ /dev/null
@@ -1,192 +0,0 @@
-#!/bin/bash
-
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-set -x
-
-DIRNAME=`dirname $0`
-cd ${DIRNAME}
-SCRIPTS_DIR=`pwd`
-source init.sh
-
-if [ -z $BUILD_NBJDK7 ]; then
- BUILD_NBJDK7=0
-fi
-
-if [ -z $BUILD_NBJDK8 ]; then
- BUILD_NBJDK8=0
-fi
-
-if [ -z $BUILD_NBJDK11 ]; then
- BUILD_NBJDK11=0
-fi
-
-OUTPUT_DIR="$DIST/installers"
-export OUTPUT_DIR
-
-if [ ! -z $NATIVE_MAC_MACHINE ] && [ ! -z $MAC_PATH ]; then
- ssh $NATIVE_MAC_MACHINE rm -rf $MAC_PATH/installer
- ERROR_CODE=$?
- if [ $ERROR_CODE != 0 ]; then
- echo "ERROR: $ERROR_CODE - Connection to MAC machine $NATIVE_MAC_MACHINE failed, can't remove old scripts"
- exit $ERROR_CODE;
- fi
- ssh $NATIVE_MAC_MACHINE mkdir -p $MAC_PATH/installer
- cd $NB_ALL
- gtar c nbbuild/installer/mac | ssh $NATIVE_MAC_MACHINE "( cd $MAC_PATH; tar x )"
-
- cd $NB_ALL/l10n
- gtar c src/*/other/installer/mac/* | ssh $NATIVE_MAC_MACHINE "( cd $MAC_PATH; tar x)"
- cd $NB_ALL
-
- ssh $NATIVE_MAC_MACHINE rm -rf $MAC_PATH/zip/*
- ERROR_CODE=$?
- if [ $ERROR_CODE != 0 ]; then
- echo "ERROR: $ERROR_CODE - Connection to MAC machine $NATIVE_MAC_MACHINE failed, can't remove old bits"
- exit $ERROR_CODE;
- fi
- ssh $NATIVE_MAC_MACHINE mkdir -p $MAC_PATH/zip/moduleclusters
- ls $DIST/zip/moduleclusters | xargs -I {} scp -q -v $DIST/zip/moduleclusters/{} $NATIVE_MAC_MACHINE:$MAC_PATH/zip/moduleclusters/
-
- ERROR_CODE=$?
- if [ $ERROR_CODE != 0 ]; then
- echo "ERROR: $ERROR_CODE - Connection to MAC machine $NATIVE_MAC_MACHINE failed, can't put the zips"
- exit $ERROR_CODE;
- fi
-
-
- # Run new builds
- sh $NB_ALL/nbbuild/installer/mac/newbuild/init.sh | ssh $NATIVE_MAC_MACHINE "cat > $MAC_PATH/nbbuild/installer/mac/newbuild/build-private.sh"
- ssh $NATIVE_MAC_MACHINE chmod a+x $MAC_PATH/nbbuild/installer/mac/newbuild/build.sh
-
- BASE_COMMAND="$MAC_PATH/nbbuild/installer/mac/newbuild/build.sh $DIST $BASENAME_PREFIX $BUILDNUMBER $BINARY_NAME $INSTALLER_SIGN_IDENTITY_NAME $APPLICATION_SIGN_IDENTITY_NAME $NB_VER_NUMBER $LOCALES"
-
- ssh $NATIVE_MAC_MACHINE "$UNLOCK_COMMAND $BASE_COMMAND" > $MAC_LOG_NEW 2>&1 &
- REMOTE_MAC_PID=$!
-
-fi
-if [ ! -z $BUILD_MAC ]; then
- # Run new builds
- sh $NB_ALL/nbbuild/installer/mac/newbuild/init.sh | cat > $NB_ALL/nbbuild/installer/mac/newbuild/build-private.sh
- chmod a+x $NB_ALL/nbbuild/installer/mac/newbuild/build.sh
-
- BASE_COMMAND="$NB_ALL/nbbuild/installer/mac/newbuild/build.sh $DIST $BASENAME_PREFIX $BUILDNUMBER $BINARY_NAME $INSTALLER_SIGN_IDENTITY_NAME $APPLICATION_SIGN_IDENTITY_NAME $NB_VER_NUMBER $LOCALES"
- $BASE_COMMAND
-fi
-cd $NB_ALL/nbbuild/installer/infra/build
-
-bash build.sh
-ERROR_CODE=$?
-
-if [ $ERROR_CODE != 0 ]; then
- echo "ERROR: $ERROR_CODE - NBI installers build failed"
- exit $ERROR_CODE;
-fi
-
-if [ ! -z $NATIVE_MAC_MACHINE ] && [ ! -z $MAC_PATH ]; then
- tail -f $MAC_LOG_NEW &
- TAIL_PID=$!
-
- set +x
- RUNNING_JOBS_COUNT=`ps --pid $REMOTE_MAC_PID | wc -l | tr " " "\n" | grep -v '^$'`
- echo "Entering loop with count of running jobs: " $RUNNING_JOBS_COUNT
- #Wait for the end of native mac build
- while [ $RUNNING_JOBS_COUNT -ge 2 ]; do
- #1 or more jobs
- sleep 10
- RUNNING_JOBS_COUNT=`ps --pid $REMOTE_MAC_PID | wc -l | tr " " "\n" | grep -v '^$'`
- echo "----> count of running jobs: " $RUNNING_JOBS_COUNT
- done
- set -x
- echo "Will kill " $TAIL_PID
- kill -s 9 $TAIL_PID
-fi
-
-mv $OUTPUT_DIR/* $DIST
-rmdir $OUTPUT_DIR
-
-#Check if Mac installer was OK, 10 "BUILD SUCCESSFUL" messages should be in Mac log
-if [ ! -z $NATIVE_MAC_MACHINE ] && [ ! -z $MAC_PATH ]; then
-
- IS_NEW_MAC_FAILED=`cat $MAC_LOG_NEW | grep "BUILD FAILED" | wc -l | tr " " "\n" | grep -v '^$'`
- IS_NEW_MAC_CONNECT=`cat $MAC_LOG_NEW | grep "Connection timed out" | wc -l | tr " " "\n" | grep -v '^$'`
-
- if [ $IS_NEW_MAC_FAILED -eq 0 ] && [ $IS_NEW_MAC_CONNECT -eq 0 ]; then
- #copy the bits back
- mkdir -p $DIST/bundles
-
- rsync -avz -e ssh $NATIVE_MAC_MACHINE:$MAC_PATH/nbbuild/installer/mac/newbuild/dist_en/* $DIST/bundles
- ERROR_CODE=$?
- if [ $ERROR_CODE != 0 ]; then
- echo "ERROR: $ERROR_CODE - Connection to MAC machine $NATIVE_MAC_MACHINE failed, can't get installers"
- exit $ERROR_CODE;
- fi
- else
- tail -100 $MAC_LOG_NEW
- echo "ERROR: - Native Mac Installers build failed"
- exit 1;
- fi
-fi
-
-if [ ! -z $BUILD_MAC ]; then
- rsync -avz $NB_ALL/nbbuild/installer/mac/newbuild/dist_en/*.dmg $DIST/bundles
- ERROR_CODE=$?
- if [ $ERROR_CODE != 0 ]; then
- exit $ERROR_CODE;
- fi
-fi
-###################################################################
-#
-# Sign Windows ML installers
-#
-###################################################################
-
-if [ -z $DONT_SIGN_INSTALLER ]; then
-
- if [ -z $SIGN_CLIENT ]; then
- echo "ERROR: SIGN_CLIENT not defined - Signing failed"
- exit 1;
- fi
-
- if [ -z $SIGN_USR ]; then
- echo "ERROR: SIGN_USR not defined - Signing failed"
- exit 1;
- fi
-
- if [ -z $SIGN_PASS ]; then
- echo "ERROR: SIGN_PASS not defined - Signing failed"
- exit 1;
- fi
-
- find $DIST/bundles -name "netbeans-*-windows.exe" | xargs -t -I [] java -Xmx2048m -jar $SIGN_CLIENT/Client.jar -file_to_sign [] -user $SIGN_USR -pass $SIGN_PASS -signed_location $DIST/bundles -sign_method microsoft
- ERROR_CODE=$?
-
- if [ $ERROR_CODE != 0 ]; then
- echo "ERROR: $ERROR_CODE - Signing failed"
- exit $ERROR_CODE;
- fi
-
-fi
-
-cd $DIST
-
-bash ${SCRIPTS_DIR}/files-info.sh bundles zip zip/moduleclusters
-ERROR_CODE=$?
-if [ $ERROR_CODE != 0 ]; then
- echo "ERROR: $ERROR_CODE - Counting of MD5 sums and size failed"
-fi
diff --git a/nbbuild/newbuild/build-source-zips.sh b/nbbuild/newbuild/build-source-zips.sh
deleted file mode 100644
index 05f8e083495f..000000000000
--- a/nbbuild/newbuild/build-source-zips.sh
+++ /dev/null
@@ -1,47 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-set -x
-
-DIRNAME=`dirname $0`
-cd ${DIRNAME}
-source init.sh
-
-cd $NB_ALL
-
-#build source zip files for particular modules
-ant -Dbuildnum=$BUILDNUM -Dbuildnumber=$BUILDNUMBER -f nbbuild/build.xml build-source-zips
-ERROR_CODE=$?
-
-if [ $ERROR_CODE != 0 ]; then
- echo "ERROR: $ERROR_CODE - Can't build source zips"
- exit $ERROR_CODE;
-fi
-
-###################################################################
-#
-# Deploy sources to the storage server
-#
-###################################################################
-
-if [ -n $BUILD_ID ]; then
- mkdir -p $DIST_SERVER2/source-zips/${BUILD_ID}
- cp -rp $NB_ALL/nbbuild/build/source-zips/* $DIST_SERVER2/source-zips/${BUILD_ID}
- rm $DIST_SERVER2/source-zips/latest.old
- mv $DIST_SERVER2/source-zips/latest $DIST_SERVER2/source-zips/latest.old
- ln -s $DIST_SERVER2/source-zips/${BUILD_ID} $DIST_SERVER2/source-zips/latest
-fi
diff --git a/nbbuild/newbuild/build-unpacked-nbms.sh b/nbbuild/newbuild/build-unpacked-nbms.sh
deleted file mode 100644
index 5b85d5f38853..000000000000
--- a/nbbuild/newbuild/build-unpacked-nbms.sh
+++ /dev/null
@@ -1,55 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-set -x
-
-DIRNAME=`dirname $0`
-cd ${DIRNAME}
-source init.sh
-
-cd ${DIST}/zip
-
-nbsrc_file=`ls netbeans*platform-src.zip`
-zip_file=`basename $nbsrc_file -platform-src.zip`.zip
-
-cd $NB_ALL
-
-cd nbbuild
-cp ${DIST}/zip/${zip_file} .
-unzip -oq ${zip_file}
-cd ..
-
-#Build napackaged NBMs for stable UC - IDE + UC-only
-ant -Dbuildnum=$BUILDNUM -Dbuildnumber=$BUILDNUMBER -f nbbuild/build.xml build-nbms -Dcluster.config=stableuc -Duse.pack200=false -Dbase.nbm.target.dir=${DIST}/uc-unpackaged -Dkeystore=$KEYSTORE -Dstorepass=$STOREPASS -Dbuild.compiler.debuglevel=source,lines
-ERROR_CODE=$?
-
-if [ $ERROR_CODE != 0 ]; then
- echo "ERROR: $ERROR_CODE - Can't build unpackaged all stable UC NBMs"
- exit $ERROR_CODE;
-fi
-
-cd nbbuild
-Build catalog for unpackaged NBMs
-ant -Dbuildnum=$BUILDNUM -Dbuildnumber=$BUILDNUMBER -f build.xml generate-uc-catalog -Dnbms.location=${DIST}/uc-unpackaged -Dcatalog.file=${DIST}/uc-unpackaged/catalog.xml
-ERROR_CODE=$?
-
-if [ $ERROR_CODE != 0 ]; then
- echo "ERROR: $ERROR_CODE - Can't build stable UC catalog for unpackaged NBMs"
- exit $ERROR_CODE;
-fi
-cd ..
-
diff --git a/nbbuild/newbuild/clean-all.sh b/nbbuild/newbuild/clean-all.sh
deleted file mode 100644
index 28e91ab8ac73..000000000000
--- a/nbbuild/newbuild/clean-all.sh
+++ /dev/null
@@ -1,31 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-set -x
-
-DIRNAME=`dirname $0`
-cd ${DIRNAME}
-source init.sh
-
-#Clean destination dirs
-if [ -d $DIST ]; then
- rm -rf $DIST
-fi
-
-if [ -d $NB_ALL ]; then
- rm -rf $NB_ALL
-fi
diff --git a/nbbuild/newbuild/files-info.sh b/nbbuild/newbuild/files-info.sh
deleted file mode 100644
index 2794949873ad..000000000000
--- a/nbbuild/newbuild/files-info.sh
+++ /dev/null
@@ -1,79 +0,0 @@
-#!/bin/sh
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-counter=0;
-output_file=./js/files.js
-type digest >> /dev/null 2>&1
-if [ 0 -eq $? ] ; then
- alg=`type -p digest`
- alg="$alg -a md5"
-else
- type sha256sum >> /dev/null 2>&1
- if [ 0 -eq $? ] ; then
- alg=`type -p sha256sum`
- else
- type gmd5sum >> /dev/null 2>&1
- if [ 0 -eq $? ] ; then
- alg=`type -p gmd5sum`
- else
- type md5 >> /dev/null 2>&1
- if [ 0 -eq $? ] ; then
- alg=`type -p md5`
- alg="$alg -q"
- fi
- fi
- fi
-fi
-if [ -z "$alg" ] ; then
- echo "Cannot find MD5 calculating programm"
- exit 1
-else
- echo "...getting MD5 with the help of $alg"
-fi
-
-
-while [ $# != 0 ] ; do
- echo "Target directory : $1"
- for nextfile in `ls -1 "$1"` ; do
- nextfile="$1"/"$nextfile"
- if [ -f "$nextfile" ] ; then
- if [ 0 -eq $counter ] ; then
- mkdir -p `dirname "$output_file"`
- rm -f "$output_file"
- #echo "file_names = new Array();" >> "$output_file"
- #echo "file_sizes = new Array();" >> "$output_file"
- #echo "file_md5s = new Array();" >> "$output_file"
- fi
- name=`basename "$nextfile"`
- echo
- echo "... file : `basename $nextfile`"
- size=`stat -Lc %s $nextfile 2>/dev/null`
- echo "... size : $size"
- md5=`$alg "$nextfile" | sed "s/ .*//g"`
- echo "... md5 : $md5"
- #echo "file_names["$counter"]=\"$1/$name\";" >> "$output_file"
- #echo "file_sizes["$counter"]=$size;" >> "$output_file"
- #echo "file_md5s["$counter"]=\"$md5\";" >> "$output_file"
- echo "add_file(\"$1/$name\", $size, \"$md5\", \"en,$LOCALES\");" >> "$output_file"
- counter=`expr $counter + 1`
- fi
- done
- shift
-done
diff --git a/nbbuild/newbuild/generate_updatetracking_from_nbm.sh b/nbbuild/newbuild/generate_updatetracking_from_nbm.sh
deleted file mode 100644
index 993bde8274c0..000000000000
--- a/nbbuild/newbuild/generate_updatetracking_from_nbm.sh
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/bin/bash
-
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-unzip $1 -d tmp
-find tmp/netbeans -name "*.jar.pack.gz" | xargs -I [] unpack200 -r [] [].jar
-find tmp/netbeans -name "*.pack.gz.jar" | grep .pack.gz.jar | sed 's/\(.*\).pack.gz.jar/mv & \1/' | sh
-ant -Dnbm.filename=$1 -f $BASE_DIR/main/nbbuild/build.xml refresh-update_tracking-ml
-rm -rf tmp
diff --git a/nbbuild/newbuild/init.sh b/nbbuild/newbuild/init.sh
deleted file mode 100644
index 5817bd3a8780..000000000000
--- a/nbbuild/newbuild/init.sh
+++ /dev/null
@@ -1,189 +0,0 @@
-#!/bin/bash
-
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-set -x
-
-#Initialize all the environment
-
-#Create test result xml file - call:
-#create_test_result( testname, message, failures=0 )
-create_test_result() {
- if [ -z "$3" ]; then
- FAILURES="0"
- else
- FAILURES="$3"
- fi
-
- mkdir -p $WORKSPACE/results
-
- FILE="$WORKSPACE/results/TEST-$1.xml"
- echo '' >$FILE
- echo '' >>$FILE
- echo ' ' >>$FILE
- echo ' ' >>$FILE
- echo ' ' >>$FILE
- if [ "$FAILURES" -gt "0" ]; then
- echo ' ' >>$FILE
- fi
- echo ' ' >>$FILE
- echo ' >$FILE
- echo "$2" >>$FILE
- echo ']]>' >>$FILE
- echo ' ' >>$FILE
- echo '' >>$FILE
-}
-
-#NB_BRANCH default
-if [ -z ${NB_BRANCH} ]; then
- export NB_BRANCH=default
-fi
-
-#L10N_BRANCH default
-if [ -z ${L10N_BRANCH} ]; then
- export L10N_BRANCH=default
-fi
-
-#OTHER_LICENCES_BRANCH default
-if [ -z ${OTHER_LICENCES_BRANCH} ]; then
- export OTHER_LICENCES_BRANCH=default
-fi
-
-#JAVAFX build 1/0
-if [ -z ${RUNJAVAFX} ]; then
- export RUNJAVAFX=0
-fi
-
-#ML_BUILD yes/no 1/0
-if [ -z ${ML_BUILD} ]; then
- export ML_BUILD=0
-fi
-#EN_BUILD yes/no 1/0
-if [ -z ${EN_BUILD} ]; then
- export EN_BUILD=1
-fi
-if [ -z ${LOCALES} ]; then
- export LOCALES=ja,zh_CN,pt_BR,ru
-fi
-if [ -z ${NB_VER_NUMBER} ]; then
- export NB_VER_NUMBER=11
-fi
-if [ -z ${UPLOAD_ML} ]; then
- export UPLOAD_ML=0
-fi
-
-#GLASSFISH_BUILDS_HOST=http://jre.us.oracle.com
-if [ -z ${GLASSFISH_BUILDS_HOST} ]; then
- GLASSFISH_BUILDS_HOST=http://jre.us.oracle.com
- export GLASSFISH_BUILDS_HOST
-fi
-
-#JRE_BUILDS_HOST=http://jre.us.oracle.com
-if [ -z ${JRE_BUILDS_HOST} ]; then
- JRE_BUILDS_HOST=http://jre.us.oracle.com
- export JRE_BUILDS_HOST
-fi
-
-#JRE_BUILDS_PATH=http://jre.us.oracle.com
-if [ -z ${JRE_BUILDS_PATH} ]; then
- JRE_BUILDS_PATH=java/re/jdk/8u101/promoted/
- export JRE_BUILDS_PATH
-fi
-
-#JDK_BUILDS_HOST=http://jre.us.oracle.com
-if [ -z ${JDK_BUILDS_HOST} ]; then
- JDK_BUILDS_HOST=https://java.se.oracle.com/
- export JDK_BUILDS_HOST
-fi
-
-#JDK7_BUILDS_PATH=http://jre.us.oracle.com/java/re/jdk/7u75/promoted/all
-if [ -z ${JDK7_BUILDS_PATH} ]; then
- JDK7_BUILDS_PATH=java/re/jdk/7u75/promoted/
- export JDK7_BUILDS_PATH
-fi
-
-#JDK8_BUILDS_PATH=http://jre.us.oracle.com/java/re/jdk/8u141/promoted/all/
-if [ -z ${JDK8_BUILDS_PATH} ]; then
-# JDK8_BUILDS_PATH=java/re/jdk/8u141/promoted/ #for builds before 8u141
- JDK8_BUILDS_PATH=artifactory/re-release-local/jdk/8u171/b11/bundles/
- export JDK8_BUILDS_PATH
-fi
-
-if [ -z ${JDK11_BUILDS_PATH} ]; then
- JDK11_BUILDS_PATH=artifactory/re-release-local/jdk/11.0.1/13/bundles/
- export JDK11_BUILDS_PATH
-fi
-
-if [ -z ${DEBUGLEVEL} ]; then
- DEBUGLEVEL=source,lines,vars
- export DEBUGLEVEL
-fi
-
-if [ -z ${DONT_PACK_LOCALIZATION_JARS_ON_MAC} ]; then
- DONT_PACK_LOCALIZATION_JARS_ON_MAC=y
- export DONT_PACK_LOCALIZATION_JARS_ON_MAC
-fi
-
-export ANT_OPTS=$ANT_OPTS" -Xmx2G"
-
-if [ -n ${JDK_HOME} ] && [ -z ${JAVA_HOME} ] ; then
- export JAVA_HOME=$JDK_HOME
-elif [ -n ${JAVA_HOME} ] && [ -z ${JDK_HOME} ]; then
- export JDK_HOME=$JAVA_HOME
-fi
-
-if [ -z ${DATESTAMP} ]; then
- if [ -z ${BUILD_ID} ]; then
- export DATESTAMP=`date -u +%Y%m%d%H%M`
- else
- #Use BUILD_ID from hudson, remove all "-" and "_" and cut it to 12 chars
- export DATESTAMP=`echo ${BUILD_ID} | sed -e "s/[-_]//g" | cut -c 1-12`
- fi
-fi
-
-BUILDNUM=$BUILD_DESC
-BUILDNUMBER=$DATESTAMP
-
-if [ -z $BASE_DIR ]; then
- echo BASE_DIR variable not defined, using the default one: /space/NB-IDE
- echo if you want to use another base dir for the whole build feel free
- echo to define a BASE_DIR variable in your environment
-
- export BASE_DIR=/space/NB-IDE
-fi
-
-if [ -z $NB_ALL ]; then
- NB_ALL=$BASE_DIR/main
-fi
-
-DIST=$BASE_DIR/dist
-LOGS=$DIST/logs
-BASENAME=$BUILDNUM
-export BASENAME_PREFIX=$BUILD_DESC
-
-mkdir -p $DIST/zip
-mkdir -p $LOGS
-
-#LOGS
-IDE_BUILD_LOG=$LOGS/$BASENAME-build-ide.log
-MOBILITY_BUILD_LOG=$LOGS/$BASENAME-build-mobility.log
-NBMS_BUILD_LOC=$LOGS/$BASENAME-build-nbms.log
-SCP_LOG=$LOGS/$BASENAME-scp.log
-MAC_LOG=$LOGS/$BASENAME-native_mac.log
-MAC_LOG_NEW=$LOGS/$BASENAME-native_mac_new.log
-INSTALLER_LOG=$LOGS/$BASENAME-installers.log
diff --git a/nbbuild/newbuild/pack-all-components.sh b/nbbuild/newbuild/pack-all-components.sh
deleted file mode 100644
index d0e304034027..000000000000
--- a/nbbuild/newbuild/pack-all-components.sh
+++ /dev/null
@@ -1,145 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-set -x
-
-DIRNAME=`dirname $0`
-cd ${DIRNAME}
-source init.sh
-
-pack_component()
-{
- dist=$1
- base_name=$2
- component=$3
- filter=$4
-
- if [ -z "$5" ]; then
- options="-q -r"
- else
- options=$5
- fi
-
- zip $options $dist/$base_name-$component.zip $filter
-}
-
-###################################################################
-#
-# Pack all the components
-#
-###################################################################
-
-pack_all_components()
-{
- DIST_DIR=${1}
- NAME=${2}
-
- mkdir $DIST_DIR/zip/moduleclusters
-
- cd $NB_ALL/nbbuild
-
- #Pack the distributions
- ant zip-cluster-config -Dcluster.config=full -Dzip.name=$DIST_DIR/zip/$NAME.zip || exit 1
- #ant zip-cluster-config -Dcluster.config=platform -Dzip.name=$DIST_DIR/zip/$NAME-platform.zip || exit 1
- ant zip-cluster-config -Dcluster.config=basic -Dzip.name=$DIST_DIR/zip/$NAME-javase.zip || exit 1
- ant zip-cluster-config -Dcluster.config=standard -Dzip.name=$DIST_DIR/zip/$NAME-javaee.zip || exit 1
- ant zip-cluster-config -Dcluster.config=php -Dzip.name=$DIST_DIR/zip/$NAME-php.zip || exit 1
- ant zip-cluster-config -Dcluster.config=cnd -Dzip.name=$DIST_DIR/zip/$NAME-cpp.zip || exit 1
-
- ln -s $NAME-php.zip $DIST_DIR/zip/$NAME-html.zip
-
- cd $NB_ALL/nbbuild/netbeans
-
- rm -rf extra
-
- pack_component $DIST_DIR/zip/moduleclusters $NAME xml "xml*"
- rm -rf xml*
-
- pack_component $DIST_DIR/zip/moduleclusters $NAME javacard "javacard*"
- rm -rf javacard*
-
- cd $NB_ALL/nbbuild
-
- #Pack all the NetBeans
- pack_component $DIST_DIR/zip/moduleclusters $NAME all-in-one netbeans
-
- cd $NB_ALL/nbbuild/netbeans
-
- #Continue with individual component
- pack_component $DIST_DIR/zip/moduleclusters $NAME dlight "dlight*"
- rm -rf dlight*
-
- pack_component $DIST_DIR/zip/moduleclusters $NAME webcommon "webcommon*"
- rm -rf webcommon*
-
- pack_component $DIST_DIR/zip/moduleclusters $NAME websvccommon "websvccommon*"
- rm -rf websvccommon*
-
- pack_component $DIST_DIR/zip/moduleclusters $NAME groovy "groovy*"
- rm -rf groovy*
-
- pack_component $DIST_DIR/zip/moduleclusters $NAME php "php*"
- rm -rf php*
-
- pack_component $DIST_DIR/zip/moduleclusters $NAME profiler "profiler*"
- rm -rf profiler*
-
- pack_component $DIST_DIR/zip/moduleclusters $NAME platform "platform*"
- rm -rf platform*
-
- pack_component $DIST_DIR/zip/moduleclusters $NAME mobility "mobility*"
- rm -rf mobility*
-
- pack_component $DIST_DIR/zip/moduleclusters $NAME identity "identity*"
- rm -rf identity*
-
- pack_component $DIST_DIR/zip/moduleclusters $NAME ide "ide*"
- rm -rf ide*
-
- pack_component $DIST_DIR/zip/moduleclusters $NAME extide "extide*"
- rm -rf extide*
-
- pack_component $DIST_DIR/zip/moduleclusters $NAME harness "harness*"
- rm -rf harness*
-
- pack_component $DIST_DIR/zip/moduleclusters $NAME enterprise "enterprise*"
- rm -rf enterprise*
-
- pack_component $DIST_DIR/zip/moduleclusters $NAME ergonomics "ergonomics*"
- rm -rf ergonomics*
-
- pack_component $DIST_DIR/zip/moduleclusters $NAME apisupport "apisupport*"
- rm -rf apisupport*
-
- pack_component $DIST_DIR/zip/moduleclusters $NAME java "java*"
- rm -rf java*
-
- pack_component $DIST_DIR/zip/moduleclusters $NAME cndext "cndext*"
- rm -rf cndext*
-
- pack_component $DIST_DIR/zip/moduleclusters $NAME cnd "cnd*"
- rm -rf cnd*
-
- pack_component $DIST_DIR/zip/moduleclusters $NAME python "python*"
- rm -rf python*
- rm -rf ruby*
-
- pack_component $DIST_DIR/zip/moduleclusters $NAME nb-etc "bin* etc* nb*"
- pack_component $DIST_DIR/zip/moduleclusters $NAME nb-etc "*" "-q -u"
-}
-
-pack_all_components $DIST $BASENAME
diff --git a/nbbuild/newbuild/pack-base.sh b/nbbuild/newbuild/pack-base.sh
deleted file mode 100644
index 239b7cbe2027..000000000000
--- a/nbbuild/newbuild/pack-base.sh
+++ /dev/null
@@ -1,43 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-set -x
-
-DIRNAME=`dirname $0`
-cd ${DIRNAME}
-source init.sh
-
-
-pack_component()
-{
- dist=$1
- base_name=$2
- component=$3
- filter=$4
- zip -q -r $dist/$base_name-$component.zip $filter
-}
-
-mkdir $DIST/zip/moduleclusters
-
-cd $NB_ALL/nbbuild
-ant zip-cluster-config -Dcluster.config=basic -Dzip.name=$DIST/zip/$BASENAME-javase.zip || exit 1
-cd $NB_ALL/nbbuild/netbeans
-pack_component $DIST/zip/moduleclusters $BASENAME ergonomics "ergonomics*"
-
-cp -r $DIST/zip /net/smetiste.czech/space/${BASE_FOR_JAVAFX}
-touch /net/smetiste.czech/space/${BASE_FOR_JAVAFX}/ready
-
diff --git a/nbbuild/newbuild/push-remote-java-help.sh b/nbbuild/newbuild/push-remote-java-help.sh
deleted file mode 100644
index f5174bcc5c1d..000000000000
--- a/nbbuild/newbuild/push-remote-java-help.sh
+++ /dev/null
@@ -1,75 +0,0 @@
-#!/bin/sh
-
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-hg pull -b $push_branch
-hg up $push_branch -C
-rm -rf usersguide/javahelp
-
-# mkdir -p usersguide/javahelp/org/netbeans/modules/usersguide
-# cp -r -v $pull_path/org/netbeans/modules/usersguide/* usersguide/javahelp/org/netbeans/modules/usersguide/
-mkdir -p usersguide/javahelp
-
-cp -r -v $pull_path/* usersguide/javahelp/
-
-hg add usersguide/javahelp
-hg st usersguide/javahelp
-
-DELETED_FILES_COUNT=`hg st -d usersguide/javahelp | wc -l`
-echo DELETED_FILES_COUNT: $DELETED_FILES_COUNT
-if [ "$DELETED_FILES_COUNT" -gt 0 ]; then
- hg st -d usersguide/javahelp | cut -c 3- | xargs hg rm -A
-fi
-
-CHANGED_FILES_COUNT=`hg st -mar usersguide/javahelp | wc -l`
-echo CHANGED_FILES_COUNT: $CHANGED_FILES_COUNT
-if [ "$CHANGED_FILES_COUNT" -gt 0 ]; then
- echo $CHANGED_FILES_COUNT changes found, let start the build and push.
- ant clean build || exit 2
- echo Build succeed.
-
- # update to latest tip
- hg pull -u
-
- # encode windows-like line-endings to unix-like
- hg ci -m "new help files" -u "$commit_username" --config 'extensions.win32text=' --config 'encode.**=cleverencode:'
-
- # check count of really modified files for push
- OUT_COUNT=`hg parent -v --template 'files: {files}'| grep '^files:' | wc -w`
- echo OUT_COUNT: $OUT_COUNT
- if [ "$OUT_COUNT" -gt 1 ]; then
- echo "There are $OUT_COUNT outgoing changes, start pushing..."
- hg push -b $push_branch -f $push_url
- HG_RESULT=$?
- if [ $HG_RESULT == 0 ]; then
- echo Push succeed.
- else
- echo "Hg push failed: $HG_RESULT, rolling back the commit"
- hg rollback
- hg up -C
- exit $HG_RESULT;
- fi
- else
- echo "There are no outgoing changes, rolling back the commit"
- hg rollback
- hg up -C
- fi
-else
- echo No changes found, no reason to push.
- hg up -C
-fi
diff --git a/nbbuild/newbuild/trunk-cb.sh b/nbbuild/newbuild/trunk-cb.sh
deleted file mode 100644
index b259bc7a2062..000000000000
--- a/nbbuild/newbuild/trunk-cb.sh
+++ /dev/null
@@ -1,67 +0,0 @@
-#!/bin/bash
-
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-set -x
-
-#Initialize basic scructure
-DIRNAME=`dirname $0`
-cd ${DIRNAME}
-TRUNK_CB_DIRNAME=`pwd`
-export BUILD_DESC=trunk-cb
-source init.sh
-
-###################################################################
-#
-# Clean remains from last build
-#
-###################################################################
-
-cd $BASE_DIR
-rm -rf dist
-ant clean
-
-###################################################################
-#
-# Build all the components
-#
-###################################################################
-
-cd $TRUNK_CB_DIRNAME
-bash build-all-components.sh
-ERROR_CODE=$?
-
-if [ $ERROR_CODE != 0 ]; then
- echo "ERROR: $ERROR_CODE - Build failed"
- exit $ERROR_CODE;
-fi
-
-###################################################################
-#
-# Pack all the components
-#
-###################################################################
-
-cd $TRUNK_CB_DIRNAME
-bash pack-all-components.sh
-ERROR_CODE=$?
-
-if [ $ERROR_CODE != 0 ]; then
- echo "ERROR: $ERROR_CODE - Packaging failed"
- exit $ERROR_CODE;
-fi
diff --git a/nbbuild/newbuild/trunk-nightly.sh b/nbbuild/newbuild/trunk-nightly.sh
deleted file mode 100644
index daac176d29aa..000000000000
--- a/nbbuild/newbuild/trunk-nightly.sh
+++ /dev/null
@@ -1,146 +0,0 @@
-#!/bin/bash
-
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-set -x
-
-#Initialize basic structure
-DIRNAME=`dirname $0`
-cd ${DIRNAME}
-TRUNK_NIGHTLY_DIRNAME=`pwd`
-
-if [ -z ${BUILD_DESC} ]; then
- export BUILD_DESC=trunk-nightly
-fi
-
-source init.sh
-
-rm -rf $DIST
-
-if [ ! -z $WORKSPACE ]; then
- #I'm under hudson and have sources here, I need to clone them
- #Clean obsolete sources first
- rm -rf $NB_ALL
- hg clone -U $WORKSPACE $NB_ALL
- hg -R $NB_ALL update $NB_BRANCH
-fi
-TIP=`hg tip --template '{rev}'`
-export TIP
-
-cd $NB_ALL
-# clone and update l10n - hg clone -r $L10N_BRANCH $ML_REPO $NB_ALL/l10n
-
-hg clone -U $ML_REPO $NB_ALL/l10n
-HG_ERROR_CODE=$?
-if [ $HG_ERROR_CODE != 0 ]; then
- echo "ERROR: $HG_ERROR_CODE - hg clone l10n failed"
- exit $HG_ERROR_CODE;
-fi
-
-hg -R $NB_ALL/l10n update $L10N_BRANCH
-
-# clone and update otherlicenses - hg clone -r $OTHER_LICENCES_BRANCH $OTHER_LICENCES_REPO $NB_ALL/otherlicenses
-hg clone -U $OTHER_LICENCES_REPO $NB_ALL/otherlicenses
-HG_ERROR_CODE=$?
-if [ $HG_ERROR_CODE != 0 ]; then
- echo "ERROR: $HG_ERROR_CODE - hg clone otherlicenses failed"
- exit $HG_ERROR_CODE;
-fi
-
-hg -R $NB_ALL/otherlicenses update $OTHER_LICENCES_BRANCH
-
-###################################################################
-#
-# Build all the components
-#
-###################################################################
-
-cd $TRUNK_NIGHTLY_DIRNAME
-bash build-all-components.sh
-ERROR_CODE=$?
-
-if [ $ERROR_CODE != 0 ]; then
- echo "ERROR: $ERROR_CODE - Build failed"
- exit $ERROR_CODE;
-fi
-
-###################################################################
-#
-# Pack all the components
-#
-###################################################################
-
-cd $TRUNK_NIGHTLY_DIRNAME
-bash pack-all-components.sh
-ERROR_CODE=$?
-
-if [ $ERROR_CODE != 0 ]; then
- echo "ERROR: $ERROR_CODE - Packaging failed"
- exit $ERROR_CODE;
-fi
-
-###################################################################
-#
-# Deploy bits to the storage server
-#
-###################################################################
-
-if [ -n $BUILD_ID ]; then
- mkdir -p $DIST_SERVER2/${BUILD_ID}/zip
- cp -rp $DIST/* $DIST_SERVER2/${BUILD_ID}
- if [ -n "${TESTING_SCRIPT}" ]; then
- cd $NB_ALL
- TIP_REV=`hg tip --template "{node}"`
- ssh $TESTING_SCRIPT $TIP_REV
- cd $DIRNAME
- fi
-fi
-
-if [ $UPLOAD_ML == 1 ]; then
- cp $DIST/zip/$BASENAME-platform-src.zip $DIST/ml/zip/
- cp $DIST/zip/$BASENAME-src.zip $DIST/ml/zip/
- cp $DIST/zip/hg-l10n-$BUILDNUMBER.zip $DIST/ml/zip/
- cp $DIST/zip/ide-l10n-$BUILDNUMBER.zip $DIST/ml/zip/
- cp $DIST/zip/stable-UC-l10n-$BUILDNUMBER.zip $DIST/ml/zip/
- cp $DIST/zip/testdist-$BUILDNUMBER.zip $DIST/ml/zip/
-fi
-
-cd $TRUNK_NIGHTLY_DIRNAME
-
-bash build-nbi.sh
-ERROR_CODE=$?
-
-if [ $ERROR_CODE != 0 ]; then
- echo "ERROR: $ERROR_CODE - NBI installers build failed"
- exit $ERROR_CODE;
-fi
-
-if [ -n $BUILD_ID ]; then
- mkdir -p $DIST_SERVER2/${BUILD_ID}/zip
- cp -rp $DIST/* $DIST_SERVER2/${BUILD_ID}
- rm $DIST_SERVER2/latest.old
- mv $DIST_SERVER2/latest $DIST_SERVER2/latest.old
- ln -s $DIST_SERVER2/${BUILD_ID} $DIST_SERVER2/latest
- if [ $UPLOAD_ML == 0 -a $ML_BUILD != 0 ]; then
- rm -r $DIST/ml
- fi
-fi
-
-if [ -z $DIST_SERVER ]; then
- exit 0;
-fi
diff --git a/nbbuild/newbuild/upload-bits.sh b/nbbuild/newbuild/upload-bits.sh
deleted file mode 100644
index 9bbdd22becc0..000000000000
--- a/nbbuild/newbuild/upload-bits.sh
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/bin/bash
-
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-set -x
-
-#Initialize basic scructure
-DIRNAME=`dirname $0`
-cd ${DIRNAME}
-TRUNK_NIGHTLY_DIRNAME=`pwd`
-export BUILD_DESC=trunk-nightly
-source init.sh
-
-ssh -p 222 $DIST_SERVER mkdir -p $DIST_SERVER_PATH/.$DATESTAMP
-scp -P 222 -q -r -v $DIST/* $DIST_SERVER:$DIST_SERVER_PATH/.$DATESTAMP > $SCP_LOG 2>&1
-
-ssh -p 222 $DIST_SERVER mv $DIST_SERVER_PATH/.$DATESTAMP $DIST_SERVER_PATH/$DATESTAMP
-
-ssh -p 222 $DIST_SERVER rm $DIST_SERVER_PATH/latest.old
-ssh -p 222 $DIST_SERVER mv $DIST_SERVER_PATH/latest $DIST_SERVER_PATH/latest.old
-ssh -p 222 $DIST_SERVER ln -s $DIST_SERVER_PATH/$DATESTAMP $DIST_SERVER_PATH/latest
diff --git a/nbbuild/production/instrumented-installer.sh b/nbbuild/production/instrumented-installer.sh
deleted file mode 100644
index 96a5b87b068c..000000000000
--- a/nbbuild/production/instrumented-installer.sh
+++ /dev/null
@@ -1,81 +0,0 @@
-#!/bin/bash
-
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-set -x
-cd ${WORKSPACE}
-rm -rf installer nbi nbextracted zipdist dist
-hg up
-
-cd $LAST_BITS
-
-BUILD_NUMBER=`ls | grep netbeans | cut -f 4 -d "-" | uniq`
-
-cd ${WORKSPACE}
-#ssh $NATIVE_MAC_MACHINE rm -rf $MAC_PATH/installer
-#ssh $NATIVE_MAC_MACHINE mkdir -p $MAC_PATH/installer
-#gtar c installer/mac | ssh $NATIVE_MAC_MACHINE "( cd $MAC_PATH; tar x )"
-#ssh $NATIVE_MAC_MACHINE rm -rf $MAC_PATH/zip/*
-
-EMMA_DIR=${WORKSPACE}/../emma
-EMMA_SH="$EMMA_DIR/emma.sh"
-EMMA_TXT="$EMMA_DIR/emma.txt"
-EMMA_JAR="$EMMA_DIR/emma.jar"
-
-EXTRACTED_DIR=$BASE_DIR/nbextracted
-
-mkdir -p ${EXTRACTED_DIR}
-NB_EXTRACTED=${EXTRACTED_DIR}/netbeans
-
-unzip -d ${EXTRACTED_DIR} ${LAST_BITS}/${BUILD_DESC}-${BUILD_NUMBER}-all-in-one.zip
-mkdir ${NB_EXTRACTED}/emma-lib
-chmod a+w ${NB_EXTRACTED}/emma-lib
-cp ${EMMA_JAR} ${NB_EXTRACTED}/emma-lib/
-cp ${EMMA_TXT} ${NB_EXTRACTED}/emma-lib/netbeans_coverage.em
-
-cd ${BASE_DIR}
-bash ${EMMA_SH} ${NB_EXTRACTED} ${NB_EXTRACTED}/emma-lib/netbeans_coverage.em ${EMMA_JAR}
-
-sed -i -e "s/^netbeans_default_options=\"/netbeans_default_options=\"--cp:p \"\\\\\"\"$\{NETBEANS_HOME\}\/emma-lib\/emma.jar\"\\\\\"\" -J-Demma.coverage.file=\"\\\\\"\"$\{NETBEANS_HOME\}\/emma-lib\/netbeans_coverage.ec\"\\\\\"\" -J-Dnetbeans.security.nocheck=true /" ${NB_EXTRACTED}/etc/netbeans.conf
-
-cp ${EMMA_JAR} ${NB_EXTRACTED}/platform?/lib/
-BASENAME=${BUILD_DESC}-${BUILD_NUMBER}
-export DIST=${WORKSPACE}/dist/zip
-mkdir -p ${DIST}
-#cd ${NB_EXTRACTED}
-#expat='extra'
-#for c in platform ide java apisupport harness enterprise profiler mobility cnd identity gsf php groovy webcommon websvccommon; do
-# find * | egrep "^$c[0-9]*/" | zip -q $DIST/$BASENAME-$c.zip -@ || exit
-# expat="$expat|$c[0-9]*"
-#done
-#find * | egrep -v "^($expat)(/|$)" | zip -q $DIST/$BASENAME-nb7.0-etc.zip -@ || exit
-cd ${EXTRACTED_DIR}
-zip -q -r $DIST/$BASENAME-all-in-one.zip netbeans/*
-cd ${WORKSPACE}
-
-rm -rf ${EXTRACTED_DIR}
-
-#ssh $NATIVE_MAC_MACHINE mkdir -p $MAC_PATH/zip/moduleclusters
-#scp -q -v ${DIST}/*.zip $NATIVE_MAC_MACHINE:$MAC_PATH/zip/moduleclusters/
-#scp -q -v ${BASE_DIR}/../build-private.sh $NATIVE_MAC_MACHINE:$MAC_PATH/installer/mac/newbuild
-#ssh $NATIVE_MAC_MACHINE sh $MAC_PATH/installer/mac/newbuild/build.sh $MAC_PATH/zip/moduleclusters ${BUILD_DESC} $BUILD_NUMBER 0
-
-#cd ${BASE_DIR}/installer/infra/build
-#bash build.sh
-
-#scp $NATIVE_MAC_MACHINE:$MAC_PATH/installer/mac/newbuild/dist/* ${WORKSPACE}/dist/installers/bundles
diff --git a/nbbuild/travis/gensigtest.sh b/nbbuild/travis/gensigtest.sh
deleted file mode 100755
index c1adf6a8fff5..000000000000
--- a/nbbuild/travis/gensigtest.sh
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/bin/bash
-
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-set -e
-
-# test platform
-echo Making sure platform is built
-if ! ant -Dcluster.config=platform build >build.log 2>&1; then
- tail -n 1000 build.log
- exit 1
-fi
-echo Generating signature files
-if ! ant -Dcluster.config=platform gen-sigtests-release >gen.log 2>&1; then
- tail -n 1000 gen.log
- exit 2
-fi
-echo Platform is OK
-