jlahoda@997
|
1 |
#!/bin/bash -x
|
jlahoda@1036
|
2 |
|
jlahoda@1036
|
3 |
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
|
jlahoda@1036
|
4 |
#
|
jlahoda@1036
|
5 |
# Copyright 2009-2017 Oracle and/or its affiliates. All rights reserved.
|
jlahoda@1036
|
6 |
#
|
jlahoda@1036
|
7 |
# Oracle and Java are registered trademarks of Oracle and/or its affiliates.
|
jlahoda@1036
|
8 |
# Other names may be trademarks of their respective owners.
|
jlahoda@1036
|
9 |
#
|
jlahoda@1036
|
10 |
# The contents of this file are subject to the terms of either the GNU
|
jlahoda@1036
|
11 |
# General Public License Version 2 only ("GPL") or the Common
|
jlahoda@1036
|
12 |
# Development and Distribution License("CDDL") (collectively, the
|
jlahoda@1036
|
13 |
# "License"). You may not use this file except in compliance with the
|
jlahoda@1036
|
14 |
# License. You can obtain a copy of the License at
|
jlahoda@1036
|
15 |
# http://www.netbeans.org/cddl-gplv2.html
|
jlahoda@1036
|
16 |
# or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
|
jlahoda@1036
|
17 |
# specific language governing permissions and limitations under the
|
jlahoda@1036
|
18 |
# License. When distributing the software, include this License Header
|
jlahoda@1036
|
19 |
# Notice in each file and include the License file at
|
jlahoda@1036
|
20 |
# nbbuild/licenses/CDDL-GPL-2-CP. Oracle designates this
|
jlahoda@1036
|
21 |
# particular file as subject to the "Classpath" exception as provided
|
jlahoda@1036
|
22 |
# by Oracle in the GPL Version 2 section of the License file that
|
jlahoda@1036
|
23 |
# accompanied this code. If applicable, add the following below the
|
jlahoda@1036
|
24 |
# License Header, with the fields enclosed by brackets [] replaced by
|
jlahoda@1036
|
25 |
# your own identifying information:
|
jlahoda@1036
|
26 |
# "Portions Copyrighted [year] [name of copyright owner]"
|
jlahoda@1036
|
27 |
#
|
jlahoda@1036
|
28 |
# Contributor(s):
|
jlahoda@1036
|
29 |
#
|
jlahoda@1036
|
30 |
# The Original Software is NetBeans. The Initial Developer of the Original
|
jlahoda@1036
|
31 |
# Software is Sun Microsystems, Inc. Portions Copyright 2009-2010 Sun
|
jlahoda@1036
|
32 |
# Microsystems, Inc. All Rights Reserved.
|
jlahoda@1036
|
33 |
#
|
jlahoda@1036
|
34 |
# If you wish your version of this file to be governed by only the CDDL
|
jlahoda@1036
|
35 |
# or only the GPL Version 2, indicate your decision by adding
|
jlahoda@1036
|
36 |
# "[Contributor] elects to include this software in this distribution
|
jlahoda@1036
|
37 |
# under the [CDDL or GPL Version 2] license." If you do not indicate a
|
jlahoda@1036
|
38 |
# single choice of license, a recipient has the option to distribute
|
jlahoda@1036
|
39 |
# your version of this file under either the CDDL, the GPL Version 2 or
|
jlahoda@1036
|
40 |
# to extend the choice of license to its licensees as provided above.
|
jlahoda@1036
|
41 |
# However, if you add GPL Version 2 code and therefore, elected the GPL
|
jlahoda@1036
|
42 |
# Version 2 license, then the option applies only if the new code is
|
jlahoda@1036
|
43 |
# made subject to such option by the copyright holder.
|
jlahoda@1036
|
44 |
|
jlahoda@1010
|
45 |
ant "$@" clean && ant "$@" build && ant "$@" test && (cd compiler; ant "$@" create-standalone-compiler && build/test/scripted/run ) && (cd tool; ant "$@" create-standalone-tool && build/test/scripted/run ) && (cd lib; ant "$@" create-cmdline-lib ) && (cd ap; ant "$@" build-ap-jar ) || exit 1
|
jlahoda@1012
|
46 |
mvn $MAVEN_EXTRA_ARGS install:install-file -Dfile=tool/build/jackpot/jackpot.jar -DgroupId=org.netbeans.modules.jackpot30 -DartifactId=tool -Dversion=8.1-SNAPSHOT -Dpackaging=jar -DgeneratePom=true
|
jlahoda@792
|
47 |
(cd maven; mvn $MAVEN_EXTRA_ARGS install -DskipTests; mvn $MAVEN_EXTRA_ARGS -Dmaven.executable=`which mvn` test)
|
jlahoda@785
|
48 |
MAVEN_REPO=`pwd`/build/.m2
|
jlahoda@785
|
49 |
mkdir -p "$MAVEN_REPO"
|
jlahoda@1012
|
50 |
mvn $MAVEN_EXTRA_ARGS deploy:deploy-file -Dfile=tool/build/jackpot/jackpot.jar -DgroupId=org.netbeans.modules.jackpot30 -DartifactId=tool -Dversion=8.1-SNAPSHOT -Dpackaging=jar -DgeneratePom=true -DaltDeploymentRepository=temp::default::file://"$MAVEN_REPO" -Durl=file://"$MAVEN_REPO"
|
jlahoda@792
|
51 |
(cd maven; mvn $MAVEN_EXTRA_ARGS -DskipTests -DaltDeploymentRepository=temp::default::file://"$MAVEN_REPO" deploy)
|
jlahoda@785
|
52 |
(cd build; zip -r .m2.zip .m2)
|