diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 83d222d5a..d17ac8b61 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,28 +14,31 @@ jobs: with: distribution: temurin java-version: 21 + - name: Install wine + run: sudo dpkg --add-architecture i386 && sudo apt-get update && sudo apt install -y xorg xvfb xfonts-100dpi xfonts-75dpi xfonts-scalable xfonts-cyrillic wine32:i386 wine makepkg - name: Grant execute permission for gradle run: chmod +x gradlew - name: Build the SDK run: ./gradlew buildSdk -Ptag_name=${{ github.ref_name }} - - name: Build the JDKs - run: bash download-jdks.sh - working-directory: jdks - name: Override Harness (custom icon) run: ./gradlew overrideHarness -Ptag_name=${{ github.ref_name }} - name: Build Installers - run: ant -Dstorepass="$NBM_SIGN_PASS" -Dpack200.enabled=false set-spec-version build-installers unset-spec-version - env: - BUILD_X86: false - BUILD_X64: true - BUILD_OTHER: true + run: ant -Dstorepass="$NBM_SIGN_PASS" -Dpack200.enabled=false set-spec-version build-zip unset-spec-version - name: Fix Platform Independent Build run: ./gradlew fixPlatformIndependent -Ptag_name=${{ github.ref_name }} + - name: Download JDKs for the installers + run: bash download-jdks.sh + working-directory: installers + - name: Build the installers + run: bash build-installers.sh ${{ github.ref_name }} headless + working-directory: installers - name: Create Release uses: softprops/action-gh-release@v1 with: files: dist/jmonkeyplatform*.* + dist/jmonkeyengine-sdk*.* + dist/jMonkeyEngine-SDK*.* tag_name: ${{ github.ref }} name: Release ${{ github.ref }} env: diff --git a/.gitignore b/.gitignore index e2f4fa3f3..8ebbb1cae 100644 --- a/.gitignore +++ b/.gitignore @@ -24,9 +24,12 @@ build/* netbeans/* */nbproject/private/* ant-jme/dist -jdks/local/* -jdks/*.bin -jdks/*.exe -jdks/*.zip dist/ -/.nb-gradle/ \ No newline at end of file +/.nb-gradle/ +jdks/downloads/ +installers/downloads/ +installers/nbpackage/ +installers/linux-x64/jdk-x64_linux.tar.gz +installers/macos-x64/jdk-x64_macos.tar.gz +installers/windows-x64/jdk-x64_windows.zip +installers/macos-aarch64/jdk-aarch64_macos.tar.gz diff --git a/build.xml b/build.xml index 1afd2bea0..426462205 100644 --- a/build.xml +++ b/build.xml @@ -112,24 +112,6 @@ byline="true"/> - - - - - - - - - - - - - - @@ -200,130 +182,10 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - jMonkeyEngine 3 was rebuilt from the ground up to be a modern 3D game engine, - compatible with OpenGL 2.0 and above. - Its architecture is shader-based, making it fully capable of current and - next generation graphics standards. The jMonkeyEngine SDK gives you a complete IDE - for coding and for managing and creating game assets. - - - - diff --git a/installers/build-installers.sh b/installers/build-installers.sh new file mode 100755 index 000000000..691c60981 --- /dev/null +++ b/installers/build-installers.sh @@ -0,0 +1,134 @@ +#!/bin/bash +#(c) jmonkeyengine.org + +# Uses NBPackage to create installers for different platforms. +# Prequisites for running this script: +# - The SDK ZIP build must already exist +# - JDKs must already been downloaded +# Some quirks exist with the different platform installers: +# - Linux DEPs are only created with current architecture +# - Windows installer requires Inno Setup, this seems like an easy thing to break in this chain + +set -e # Quit on Error + +nbpackage_version="1.0-beta6" +nbpackage_url="https://archive.apache.org/dist/netbeans/netbeans-nbpackage/$nbpackage_version/nbpackage-$nbpackage_version-bin.zip" +inno_setup_url="https://files.jrsoftware.org/is/6/innosetup-6.5.1.exe" + +function download_nbpackage { + echo "> Downloading the nbpackage" + + + if [ -f "downloads/nbpackage.zip" ]; + then + echo "< Already existing, SKIPPING." + else + mkdir -p downloads + + curl -# -o downloads/nbpackage.zip -L $nbpackage_url + echo "< OK!" + fi +} + +function prepare_nbpackage { + echo "> Extracting the nbpackage" + + + if [ -d "nbpackage" ]; + then + echo "< Already existing, SKIPPING." + else + unzip -qq downloads/nbpackage.zip -d nbpackage + echo "< OK!" + fi +} + +function build_linux_deb { + echo "> Building the Linux DEB" + + ./nbpackage/nbpackage-$nbpackage_version/bin/nbpackage --input ../dist/jmonkeyplatform.zip --config linux-x64/jmonkeyengine-x64-deb.properties --output ../dist/ -v -Ppackage.version=$1 + + echo "< OK!" +} + +function build_windows_installer { + echo "> Building the Windows installer" + + setup_inno_setup $2 + + ./nbpackage/nbpackage-$nbpackage_version/bin/nbpackage --input ../dist/jmonkeyplatform.zip --config windows-x64/jmonkeyengine-windows-x64.properties --output ../dist/ -v -Ppackage.version=$1 + + echo "< OK!" +} + +function setup_inno_setup { + echo ">> Setting up Inno Setup" + + download_inno_setup + + # Needs Wine!!! + if [ -z "$1" ]; + then + wine downloads/innosetup.exe /VERYSILENT + else + echo "<< Trying headless mode" + xvfb-run wine downloads/innosetup.exe /VERYSILENT + fi + + echo "<< OK!" +} + +function download_inno_setup { + echo ">>> Downloading Inno Setup" + + + if [ -f "downloads/innosetup.exe" ]; + then + echo "<<< Already existing, SKIPPING." + else + mkdir -p downloads + + curl -# -o downloads/innosetup.exe -L $inno_setup_url + echo "<<< OK!" + fi +} + +function build_macos_pgk { + echo "> Building the MacOS pgk" + + build_macos_x64_pgk $1 + build_macos_aarch64_pgk $1 + + echo "< OK!" +} + +function build_macos_x64_pgk { + echo ">> Building the MacOS x64 pgk" + + ./nbpackage/nbpackage-$nbpackage_version/bin/nbpackage --input ../dist/jmonkeyplatform.zip --config macos-x64/jmonkeyengine-macos-x64.properties --output ../dist/ -v -Ppackage.version=$1 + + echo "<< OK!" +} + +function build_macos_aarch64_pgk { + echo ">> Building the MacOS aarch64 pgk" + + ./nbpackage/nbpackage-$nbpackage_version/bin/nbpackage --input ../dist/jmonkeyplatform.zip --config macos-aarch64/jmonkeyengine-macos-aarch64.properties --output ../dist/ -v -Ppackage.version=$1 + + echo "<< OK!" +} + +echo "Building installers with version tag $1" + +versionString=$1 +if [[ $versionString != [[:digit:]]* ]]; +then + versionString=${versionString:1} + echo "Stripped version tag to $versionString" +fi + +download_nbpackage +prepare_nbpackage +build_linux_deb $versionString +build_windows_installer $versionString $2 +build_macos_pgk $versionString diff --git a/installers/download-jdks.sh b/installers/download-jdks.sh new file mode 100755 index 000000000..c5385a687 --- /dev/null +++ b/installers/download-jdks.sh @@ -0,0 +1,110 @@ +#!/bin/bash +#(c) jmonkeyengine.org +#Author MeFisto94 + +set -e # Quit on Error + +jdk_major_version="21" +jvm_impl="hotspot" +jdk_vendor="eclipse" + +function download_jdk { + echo ">>> Downloading the JDK for $1_$2$3" + + if [ -f $2-$1/jdk-$1_$2$3 ]; + then + echo "<<< Already existing, SKIPPING." + else + curl -# -o $2-$1/jdk-$1_$2$3 -L https://api.adoptium.net/v3/binary/latest/$jdk_major_version/ga/$2/$1/jdk/$jvm_impl/normal/$jdk_vendor?project=jdk + echo "<<< OK!" + fi +} + +function build_mac_jdk { + echo "> Getting the Mac JDK" + + download_jdk x64 macos .tar.gz + download_jdk aarch64 macos .tar.gz + + echo "< OK!" +} + +# PARAMS arch +function unpack_windows { + echo ">> Getting the JDK for windows-$1" + + download_jdk "$1" windows .zip + + echo "<< OK!" +} + +function unpack_linux { + echo ">> Getting the JDK for linux-$1" + + download_jdk "$1" linux .tar.gz + + echo "<< OK!" +} + + +# PARAMS: os arch arch_unzipsfx +function compile_other { + echo "> Getting JDK for $1-$2" + + if [[ $1 != "windows" && $1 != "linux" ]]; then + echo "Unknown Platform $1. ERROR!!!" + exit 1 + fi + + # Depends on UNPACK and thus DOWNLOAD + if [ $1 == "windows" ]; then + unpack_windows $2 + elif [ $1 == "linux" ]; then + unpack_linux $2 + fi + + echo "< OK!" +} + + +# PARAMS: os arch arch_unzipsfx +function build_other_jdk { + echo "> Getting Package for $1-$2" + compile_other $1 $2 $3 # Depend on Compile + + echo "< OK!" +} + +if [ "x$TRAVIS" != "x" ]; then + if [ "x$BUILD_X64" != "x" ]; then + build_other_jdk windows x64 x64 + build_other_jdk linux x64 x64 + fi + if [ "x$BUILD_X86" != "x" ]; then + build_other_jdk windows x86-32 x86 + fi + if [ "x$BUILD_OTHER" != "x" ]; then + build_mac_jdk + fi +else + if [ "x$PARALLEL" != "x" ]; + then + build_mac_jdk & + build_other_jdk linux x64 x64 & + # Windows 32bit not by default build_other_jdk windows x86-32 x86 & + build_other_jdk windows x64 x64 & + else + build_mac_jdk + build_other_jdk linux x64 x64 + ## Windows 32bit not by default build_other_jdk windows x86-32 x86 + build_other_jdk windows x64 x64 + # Linux 32bit not supported... build_other_jdk linux x86-32 + fi + +fi + +if [ "x$PARALLEL" != "x" ]; +then + wait +fi +cd ../../ diff --git a/installers/linux-x64/jmonkeyengine-x64-deb.properties b/installers/linux-x64/jmonkeyengine-x64-deb.properties new file mode 100644 index 000000000..ec0662976 --- /dev/null +++ b/installers/linux-x64/jmonkeyengine-x64-deb.properties @@ -0,0 +1,30 @@ +# Application name (required). +package.name=jMonkeyEngine SDK +# Packaging type. +package.type=linux-deb +# Path to Java runtime to include in the package (default none). +package.runtime=${CONFIG}/jdk-x64_linux.tar.gz +# A single-line description of the package. Not all packagers will display this. +package.description=A complete 3D game development suite written purely in Java. +# Application publisher. Not all packagers will display this. +package.publisher=${package.name} +# Link to application / publisher website. Not all packagers will display this. +package.url=https://jmonkeyengine.org +# Path to 48x48 png icon as required by xdg specification. Defaults to Apache NetBeans logo. +package.deb.icon=${CONFIG}/jmonkeyplatform.png +# Path to SVG icon. Will only be used if package.deb.icon also set. Defaults to Apache NetBeans logo. +package.deb.svg-icon= +# Optional name for .desktop file (without suffix). Defaults to sanitized package name. +package.deb.desktop-filename=jmonkeyengine-sdk-${package.version} +# StartupWMClass to set in .desktop file. Should match the WMClass of the main application window. +package.deb.wmclass=${package.name} ${package.version} +# Application category (or categories) to use in the .desktop file. +package.deb.category=Development;Java;IDE;3D; +# Maintainer information as name and email. Mandated in Debian Control file. +package.deb.maintainer=jMonkeyEngine +# Optional path to custom Debian Control file template. +package.deb.control-template= +# Optional path to custom .desktop file template. +package.deb.desktop-template= +# Optional path to custom launcher script template. +package.deb.launcher-template= diff --git a/installers/linux-x64/jmonkeyplatform.png b/installers/linux-x64/jmonkeyplatform.png new file mode 100644 index 000000000..9cfeb7eec Binary files /dev/null and b/installers/linux-x64/jmonkeyplatform.png differ diff --git a/installers/macos-aarch64/jmonkeyengine-macos-aarch64.properties b/installers/macos-aarch64/jmonkeyengine-macos-aarch64.properties new file mode 100644 index 000000000..0c8c79b9e --- /dev/null +++ b/installers/macos-aarch64/jmonkeyengine-macos-aarch64.properties @@ -0,0 +1,30 @@ +# Application name (required). +package.name=jMonkeyEngine SDK +# Packaging type. +package.type=macos-pkg +# Path to Java runtime to include in the package (default none). +package.runtime=${CONFIG}/jdk-aarch64_macos.tar.gz +# A single-line description of the package. Not all packagers will display this. +package.description=A complete 3D game development suite written purely in Java. +# Application publisher. Not all packagers will display this. +package.publisher=${package.name} +# Link to application / publisher website. Not all packagers will display this. +package.url=https://jmonkeyengine.org +# Value for CFBundleIdentifier. +package.macos.bundleid=org.jmonkeyengine.sdk +# Path to icon file (*.icns). Defaults to Apache NetBeans logo. +package.macos.icon=${CONFIG}/jmonkeyplatform.icns +# Optional path to Info.plist template. +package.macos.info-template= +# Optional path to launcher (main.swift) template. +package.macos.launcher-template= +# Optional path to codesign entitlements template. +package.macos.entitlements-template= +# Search pattern for native binaries that need to be code signed. +package.macos.codesign-files={*.dylib,*.jnilib,**/nativeexecution/MacOSX-*/*,Contents/Home/bin/*,Contents/Home/lib/jspawnhelper} +# Search pattern for JARs that bundle native binaries that need to be code signed. +package.macos.codesign-jars={flatlaf-*.jar,jna-5*.jar,junixsocket-native-common-*.jar,launcher-common-*.jar,jansi-*.jar,nbi-engine.jar,truffle-runtime-*.jar} +# Code signing identity as passed to Codesign. +package.macos.codesign-id= +# Installer signing identity as passed to Pkgbuild. +package.macos.pkgbuild-id= diff --git a/jmonkeyplatform.icns b/installers/macos-aarch64/jmonkeyplatform.icns similarity index 100% rename from jmonkeyplatform.icns rename to installers/macos-aarch64/jmonkeyplatform.icns diff --git a/installers/macos-x64/jmonkeyengine-macos-x64.properties b/installers/macos-x64/jmonkeyengine-macos-x64.properties new file mode 100644 index 000000000..b55236a05 --- /dev/null +++ b/installers/macos-x64/jmonkeyengine-macos-x64.properties @@ -0,0 +1,30 @@ +# Application name (required). +package.name=jMonkeyEngine SDK +# Packaging type. +package.type=macos-pkg +# Path to Java runtime to include in the package (default none). +package.runtime=${CONFIG}/jdk-x64_macos.tar.gz +# A single-line description of the package. Not all packagers will display this. +package.description=A complete 3D game development suite written purely in Java. +# Application publisher. Not all packagers will display this. +package.publisher=${package.name} +# Link to application / publisher website. Not all packagers will display this. +package.url=https://jmonkeyengine.org +# Value for CFBundleIdentifier. +package.macos.bundleid=org.jmonkeyengine.sdk +# Path to icon file (*.icns). Defaults to Apache NetBeans logo. +package.macos.icon=${CONFIG}/jmonkeyplatform.icns +# Optional path to Info.plist template. +package.macos.info-template= +# Optional path to launcher (main.swift) template. +package.macos.launcher-template= +# Optional path to codesign entitlements template. +package.macos.entitlements-template= +# Search pattern for native binaries that need to be code signed. +package.macos.codesign-files={*.dylib,*.jnilib,**/nativeexecution/MacOSX-*/*,Contents/Home/bin/*,Contents/Home/lib/jspawnhelper} +# Search pattern for JARs that bundle native binaries that need to be code signed. +package.macos.codesign-jars={flatlaf-*.jar,jna-5*.jar,junixsocket-native-common-*.jar,launcher-common-*.jar,jansi-*.jar,nbi-engine.jar,truffle-runtime-*.jar} +# Code signing identity as passed to Codesign. +package.macos.codesign-id= +# Installer signing identity as passed to Pkgbuild. +package.macos.pkgbuild-id= diff --git a/installers/macos-x64/jmonkeyplatform.icns b/installers/macos-x64/jmonkeyplatform.icns new file mode 100644 index 000000000..04b41b3cd Binary files /dev/null and b/installers/macos-x64/jmonkeyplatform.icns differ diff --git a/installers/windows-x64/issc.sh b/installers/windows-x64/issc.sh new file mode 100755 index 000000000..30ec2f228 --- /dev/null +++ b/installers/windows-x64/issc.sh @@ -0,0 +1,2 @@ +#!/bin/sh +wine C:\\Program\ Files\\Inno\ Setup\ 6\\ISCC.exe $1 diff --git a/installers/windows-x64/jmonkeyengine-windows-x64.properties b/installers/windows-x64/jmonkeyengine-windows-x64.properties new file mode 100644 index 000000000..f71076716 --- /dev/null +++ b/installers/windows-x64/jmonkeyengine-windows-x64.properties @@ -0,0 +1,22 @@ +# Application name (required). +package.name=jMonkeyEngine SDK +# Packaging type. +package.type=windows-innosetup +# Path to Java runtime to include in the package (default none). +package.runtime=${CONFIG}/jdk-x64_windows.zip +# A single-line description of the package. Not all packagers will display this. +package.description=A complete 3D game development suite written purely in Java. +# Application publisher. Not all packagers will display this. +package.publisher=${package.name} +# Link to application / publisher website. Not all packagers will display this. +package.url=https://jmonkeyengine.org +# Path to an InnoSetup compiler - can be downloaded from https://jrsoftware.org/isinfo.php (or Linux shell script to invoke via wine). +package.innosetup.tool=${CONFIG}/issc.sh +# ID to uniquely identify application. Defaults to package name. +package.innosetup.appid= +# Path to an icon (*.ico) file for shortcut and installer. +package.innosetup.icon=${CONFIG}/jmonkeyplatform.ico +# Optional path to a license file to be shown during installation (*.txt or *.rtf). +package.innosetup.license=${CONFIG}/licenses-sdk.txt +# Optional path to an alternative InnoSetup (*.iss) file template. +package.innosetup.template= diff --git a/installers/windows-x64/jmonkeyplatform.ico b/installers/windows-x64/jmonkeyplatform.ico new file mode 100644 index 000000000..7f5130445 Binary files /dev/null and b/installers/windows-x64/jmonkeyplatform.ico differ diff --git a/licenses-sdk.txt b/installers/windows-x64/licenses-sdk.txt similarity index 100% rename from licenses-sdk.txt rename to installers/windows-x64/licenses-sdk.txt diff --git a/jdks/README b/jdks/README deleted file mode 100644 index 3a89ab621..000000000 --- a/jdks/README +++ /dev/null @@ -1,17 +0,0 @@ -The JDKs Folder provides the JDKs which are bundled with the SDK when the Installers are made. -You can change the JDK Version in download-jdks.sh, but don’t change anything apart from that if you don’t know what you are doing. - -download-jdks.sh also replaces the functionality of build-osx-zip.sh but requires build-package.sh to be in the same folder. - -## Experienced Users: ## -We need to download the JDKs for 5 platforms (Windows, Linux and MacOSX). -The Problem is that those JDKs often come in .exe or .dmg files. -download-jdks.sh hence downloads them and extracts the plain jdk folder out of them so they can be used with build-package.sh to create an SFX archive out of them. -Unfortunately this doesn’t work for Mac OSX, so we simply zip the contents there. - -I could make the build work under Mac OS 10.9.5, however under Linux you could run into troubles because of the mount command: missing permissions, no hfs-drivers, etc pp. - -Also you need p7zip to be installed and many other more usual build-tools. - - -- MeFisto94 \ No newline at end of file diff --git a/jdks/build-osx-zip.sh b/jdks/build-osx-zip.sh deleted file mode 100755 index db3c44e99..000000000 --- a/jdks/build-osx-zip.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/sh -#(c) jmonkeyengine.org -#Author Normen Hansen -set -e -rm -rf jdk-macosx.zip -cp -r local/jdk7u11-macosx ./jdk -zip -9 -r -y ./jdk-macosx.zip ./jdk -rm -rf jdk diff --git a/jdks/build-package.sh b/jdks/build-package.sh deleted file mode 100755 index 343f839c0..000000000 --- a/jdks/build-package.sh +++ /dev/null @@ -1,48 +0,0 @@ -#!/bin/bash -set -e -#(c) jmonkeyengine.org -#This script creates SFX binaries of the JDK for the specified platform -#Author Normen Hansen - -#gather options -os="$1" -source="$2" -if [ -z "$1" ]; then - echo "No platform supplied" - echo "Specify a platform like macosx, windows-x86, linux-x64 and a source like /path/to/jdk/home" - echo "If no source is specified, local/jdk-(platform) will be used" - exit 1 -fi -if [ -z "$2" ]; then - source="local/jdk-$os" -fi -if [ ! -d "$source" ]; then - echo "Source JDK directory $source was not found, specify another source folder as second parameter or copy the needed JDK to $source" - exit 1 -fi -unzipsfxname="unzipsfx/unzipsfx-$os" -if [ ! -f "$unzipsfxname" ]; then - echo "No unzipsfx for platform $os found at $unzipsfxname, cannot continue" - exit 1 -fi -suffix="bin" -if [[ "$os" == *"windows"* ]]; then - suffix="exe" -fi -name="jdk-$os.$suffix" - -echo "Creating SFX JDK package $name for $os with source $source." - -#code logic -rm -rf $name -cp -r $source ./jdk_tmp -cd jdk_tmp/jre -pack200 -J-Xmx1024m lib/rt.jar.pack.gz lib/rt.jar -rm -rf lib/rt.jar -cd .. -zip -9 -r -y -q ../jdk_tmp_sfx.zip . -cd .. -cat $unzipsfxname jdk_tmp_sfx.zip > $name -chmod +x $name -rm -rf jdk_tmp -rm -rf jdk_tmp_sfx.zip diff --git a/jdks/download-jdks.sh b/jdks/download-jdks.sh deleted file mode 100755 index ca1cc942e..000000000 --- a/jdks/download-jdks.sh +++ /dev/null @@ -1,251 +0,0 @@ -#!/bin/bash -#(c) jmonkeyengine.org -#Author MeFisto94 - -# This script is build up like a gradle build script. It contains many functions, each for it's distinctive task and every function is calling it's dependency functions. -# This means in order for "unpack" to work, it will first launch "download" etc. While each task is self-explanatory, here's the process in short: -# 1. Download JDK, 2. Unpack JDK (this used to be more work, with SFX Installers from Oracle etc), 3. Compile (this zips the unpacked and processed jdk and -# creates a SFX Installer again from the zip), 4. Build (Build is the more general code to call compile (which calls unpack which calls download) and links the currently -# most up to date JDK version into the main directory (because several old jdk versions are stored as well). - -set -e # Quit on Error - -jdk_major_version="21" -jvm_impl="hotspot" -jdk_vendor="eclipse" - -function download_jdk { - echo ">>> Downloading the JDK for $1_$2$3" - - if [ -f downloads/jdk-$1_$2$3 ]; - then - echo "<<< Already existing, SKIPPING." - else - curl -# -o downloads/jdk-$1_$2$3 -L https://api.adoptium.net/v3/binary/latest/$jdk_major_version/ga/$2/$1/jdk/$jvm_impl/normal/$jdk_vendor?project=jdk - echo "<<< OK!" - fi -} - -function unpack_mac_jdk { - echo ">> Extracting the Mac JDK..." - #cd local/$jdk_version-$jdk_build_version/ - - if [ -f "compiled/jdk-macosx.zip" ]; - then - echo "< Already existing, SKIPPING." - #cd ../../ - return 0 - fi - - download_jdk x64 mac .tar.gz - tar xf downloads/jdk-x64_mac.tar.gz - cd jdk-$jdk_major_version*/Contents/ - - # FROM HERE: build-osx-zip.sh by normen (with changes) - mv Home jdk # rename folder - rm -rf jdk/man jdk/legal # ANT got stuck at the symlinks (https://bz.apache.org/bugzilla/show_bug.cgi?id=64053) - zip -9 -r -y -q ../../compiled/jdk-macosx.zip jdk - cd ../../ - - rm -rf jdk-$jdk_major_version* - - if [ "$TRAVIS" == "true" ]; then - rm -rf downloads/jdk-x64_mac.tar.gz - fi - #cd ../../ - - echo "<< OK!" -} - -function build_mac_jdk { - echo "> Building the Mac JDK" - if ! [ -f "compiled/jdk-macosx.zip" ]; - then - unpack_mac_jdk # Depends on "unpack" which depends on "download" (Unpack includes what compile is to other archs) - fi - - rm -rf ../../jdk-macosx.zip - ln -rs compiled/jdk-macosx.zip ../../ - echo "< OK!" -} - -# PARAMS arch -function unpack_windows { - echo ">> Extracting the JDK for windows-$1" - #cd local/$jdk_version-$jdk_build_version/ - - if [ -d windows-$1 ]; - then - echo "<< Already existing, SKIPPING." - # cd ../../ - return 0 - fi - - download_jdk "$1" windows .zip - - mkdir -p windows-$1 - unzip -qq downloads/jdk-$1_windows.zip -d windows-$1 - cd windows-$1/ - - mv jdk-$jdk_major_version*/* . - rm -rf jdk-$jdk_major_version* - - # This seems to be replaced by lib/tools.jar in openJDK - #unzip -qq tools.zip -d . - #rm tools.zip - - find . -exec chmod u+w {} \; # Make all file writable to allow uninstaller's cleaner to remove file - - find . -type f \( -name "*.exe" -o -name "*.dll" \) -exec chmod u+rwx {} \; # Make them executable - - # Insert fake unpack200.exe - # See https://github.com/jMonkeyEngine/sdk/issues/491 - touch bin/unpack200.exe - - cd ../ - - if [ "$TRAVIS" == "true" ]; then - rm -rf downloads/jdk-$1_windows.zip - fi - - echo "<< OK!" -} - -function unpack_linux { - echo ">> Extracting the JDK for linux-$1" - #cd local/$jdk_version-$jdk_build_version/ - - if [ -d linux-$1 ]; - then - echo "<< Already existing, SKIPPING." - #cd ../../ - return 0 - fi - - download_jdk "$1" linux .tar.gz - - mkdir -p linux-$1 - cd linux-$1 - tar -xf "../downloads/jdk-$1_linux.tar.gz" - mv jdk-$jdk_major_version*/* . - rm -rf jdk-$jdk_major_version* - - cd ../ - - if [ "$TRAVIS" == "true" ]; then - rm -rf downloads/jdk-$1.tar.gz - fi - - echo "<< OK!" -} - -# PARAMS: os arch arch_unzipsfx -function compile_other { - echo "> Compiling JDK for $1-$2" - - if [ $1 == "windows" ]; then - name="jdk-$1-$3.exe" - elif [ $1 == "linux" ]; then - name="jdk-$1-$3.bin" - else - echo "Unknown Platform $1. ERROR!!!" - exit 1 - fi - - if [ -f "compiled/$name" ]; then - echo "< Already existing, SKIPPING." - return 0 - fi - - # Depends on UNPACK and thus DOWNLOAD - if [ $1 == "windows" ]; then - unpack_windows $2 - elif [ $1 == "linux" ]; then - unpack_linux $2 - fi - - unzipsfxname="../../unzipsfx/unzipsfx-$1-$3" - if [ ! -f "$unzipsfxname" ]; then - echo "No unzipsfx for platform $1-$3 found at $unzipsfxname, cannot continue" - exit 1 - fi - - echo "> Zipping JDK" - cd $1-$2 # zip behaves differently between 7zip and Info-Zip, so simply change wd - zip -9 -qry ../jdk_tmp_sfx.zip * - cd ../ - echo "> Building SFX" - cat $unzipsfxname jdk_tmp_sfx.zip > compiled/$name - chmod +x compiled/$name - rm -rf jdk_tmp_sfx.zip - - if [ "$TRAVIS" == "true" ]; then - rm -rf $1-$2 - fi - - echo "< OK!" -} - -# PARAMS: os arch arch_unzipsfx -function build_other_jdk { - echo "> Building Package for $1-$2" - compile_other $1 $2 $3 # Depend on Compile - - if [ $1 == "windows" ]; then - name="jdk-$1-$3.exe" - elif [ $1 == "linux" ]; then - name="jdk-$1-$3.bin" - fi - - rm -rf ../../$name - ln -rs compiled/$name ../../ - echo "< OK!" -} - -mkdir -p local/$jdk_major_version/downloads -mkdir -p local/$jdk_major_version/compiled - -cd local/$jdk_major_version - -if [ "x$TRAVIS" != "x" ]; then - if [ "x$BUILD_X64" != "x" ]; then - build_other_jdk windows x64 x64 - build_other_jdk linux x64 x64 - else - # We have to save space at all cost, so force-delete x64 jdks, which might come from the build cache. - # that's bad because they won't be cached anymore, but we have to trade time for space. - rm -rf compiled/jdk-windows-x64.exe compiled/jdk-linux-x64.bin - fi - if [ "x$BUILD_X86" != "x" ]; then - build_other_jdk windows x86-32 x86 - #build_other_jdk linux x86 i586 - else - rm -rf compiled/jdk-windows-x86.exe compiled/jdk-linux-x86.bin - fi - if [ "x$BUILD_OTHER" != "x" ]; then - build_mac_jdk - else - rm -rf compiled/jdk-macosx.zip - fi -else - if [ "x$PARALLEL" != "x" ]; - then - build_mac_jdk & - build_other_jdk linux x64 x64 & - # Windows 32bit not by default build_other_jdk windows x86-32 x86 & - build_other_jdk windows x64 x64 & - else - build_mac_jdk - build_other_jdk linux x64 x64 - ## Windows 32bit not by default build_other_jdk windows x86-32 x86 - build_other_jdk windows x64 x64 - # Linux 32bit not supported... build_other_jdk linux x86-32 - fi - -fi - -if [ "x$PARALLEL" != "x" ]; -then - wait -fi -cd ../../ diff --git a/jdks/unzipsfx/unzipsfx-linux-x64 b/jdks/unzipsfx/unzipsfx-linux-x64 deleted file mode 100755 index c1335404d..000000000 Binary files a/jdks/unzipsfx/unzipsfx-linux-x64 and /dev/null differ diff --git a/jdks/unzipsfx/unzipsfx-linux-x86 b/jdks/unzipsfx/unzipsfx-linux-x86 deleted file mode 100755 index 579225a11..000000000 Binary files a/jdks/unzipsfx/unzipsfx-linux-x86 and /dev/null differ diff --git a/jdks/unzipsfx/unzipsfx-macosx b/jdks/unzipsfx/unzipsfx-macosx deleted file mode 100755 index 96f54c73e..000000000 Binary files a/jdks/unzipsfx/unzipsfx-macosx and /dev/null differ diff --git a/jdks/unzipsfx/unzipsfx-windows-x64 b/jdks/unzipsfx/unzipsfx-windows-x64 deleted file mode 100755 index 63606e9cf..000000000 Binary files a/jdks/unzipsfx/unzipsfx-windows-x64 and /dev/null differ diff --git a/jdks/unzipsfx/unzipsfx-windows-x86 b/jdks/unzipsfx/unzipsfx-windows-x86 deleted file mode 100755 index 63606e9cf..000000000 Binary files a/jdks/unzipsfx/unzipsfx-windows-x86 and /dev/null differ diff --git a/jdks/versions b/jdks/versions deleted file mode 100644 index 1618c44f9..000000000 --- a/jdks/versions +++ /dev/null @@ -1,5 +0,0 @@ -MacOSX: 1.7u51 -Win32: 1.7u51 -Win64: 1.7u51 -Linux32: 1.7u51 -Linux64: 1.7u51 diff --git a/nbi/.common/common.properties b/nbi/.common/common.properties deleted file mode 100644 index 5b6017d45..000000000 --- a/nbi/.common/common.properties +++ /dev/null @@ -1,258 +0,0 @@ -# -# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. -# -# Copyright 1997-2010 Oracle and/or its affiliates. All rights reserved. -# -# Oracle and Java are registered trademarks of Oracle and/or its affiliates. -# Other names may be trademarks of their respective owners. -# -# The contents of this file are subject to the terms of either the GNU General Public -# License Version 2 only ("GPL") or the Common Development and Distribution -# License("CDDL") (collectively, the "License"). You may not use this file except in -# compliance with the License. You can obtain a copy of the License at -# http://www.netbeans.org/cddl-gplv2.html or nbbuild/licenses/CDDL-GPL-2-CP. See the -# License for the specific language governing permissions and limitations under the -# License. When distributing the software, include this License Header Notice in -# each file and include the License file at nbbuild/licenses/CDDL-GPL-2-CP. Oracle -# designates this particular file as subject to the "Classpath" exception as provided -# by Oracle in the GPL Version 2 section of the License file that accompanied this code. -# If applicable, add the following below the License Header, with the fields enclosed -# by brackets [] replaced by your own identifying information: -# "Portions Copyrighted [year] [name of copyright owner]" -# -# Contributor(s): -# -# The Original Software is NetBeans. The Initial Developer of the Original Software -# is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun Microsystems, Inc. All -# Rights Reserved. -# -# If you wish your version of this file to be governed by only the CDDL or only the -# GPL Version 2, indicate your decision by adding "[Contributor] elects to include -# this software in this distribution under the [CDDL or GPL Version 2] license." If -# you do not indicate a single choice of license, a recipient has the option to -# distribute your version of this file under either the CDDL, the GPL Version 2 or -# to extend the choice of license to its licensees as provided above. However, if you -# add GPL Version 2 code and therefore, elected the GPL Version 2 license, then the -# option applies only if the new code is made subject to such option by the copyright -# holder. -# - -##################################################################################### -# Initialization. Properties that are used during build script initialization. - -# location of the custom tasks' sources and the destination directory for their -# build -custom.tasks.src=${common.dir}/../.ant-lib/src -custom.tasks.cls=${basedir}/.ant-lib - -##################################################################################### -# Check-out. Properties that are used during check-out. - -# whether to check out sources, or copy them from the location specified in -# ${sources.dir}; 'true'/'false' -checkout.sources=true - -# coordinates of the project's sources within the cvs repository -# * ${cvs.root} - obvious -# * ${cvs.branch} - the branch from which the sources should be checked out; if -# this property is empty, then the sources will be checked out from trunk -# * ${cvs.timestamp} - the timestamp for which the sources should be checked out; if -# this property is empty, then the latest sources will be checked out -# * ${cvs.module} - the module that should be checked out; at this point the -# build framework is not compatible with modules which alias several other -# modules -cvs.root=:pserver:anoncvs@netbeans.org:/cvs -cvs.branch= -cvs.module=nbi -cvs.timestamp= - -# coordinates of the project's sources' localized files within the cvs -# repository -# * ${translatedfiles.module} - name of the cvs module with the localized files -# * ${translatedfiles.path} - path to the localized files for the project -# within the cvs module -translatedfiles.module=translatedfiles -translatedfiles.path=src/${cvs.module}/${cvs.path} - -# sources parameters; a search-and-replace will be run over the sources after -# check-out, replacing [token] => [value]; regular expressions are not allowed -# * ${sources.params.length} - total number of the parameters -# * indices should start with 1 -# * parameters are not i18n compliant -sources.params.length=0 -#sources.params.1.token= -#sources.params.1.value= - -# several simple shorthands for various directories -# * ${cvs.module.dir} - path to the root of the cvs module -# * ${cvs.dir} - path to the current project's sources root -# * ${translatedfiles.dir} - path to the localized files for the project -cvs.module.dir=${work.dir}/${cvs.module} -cvs.dir=${cvs.module.dir}/${cvs.path} -translatedfiles.dir=${work.dir}/${translatedfiles.module}/${translatedfiles.path} - -##################################################################################### -# NB Projects. Properties related to cleaning/building netbeans projects. - -# path to the netbeans project that should be built; relative to the -# ${cvs.dir} -nbproject.path=. - -# names of targets in component's (or engine's) build script that will be -# called as part of the build process -# * ${nb.target.clean} - will be called when cleaning the netbeans project -# * ${nb.target.build} - will be called when building the netbeans project -nb.target.clean=clean -nb.target.build=jar - -# additional properties which will be passed to the netbeans project build -# script -# * ${nb.platform.home} - location of the jdk codenamed "JDK 1.5", this jdk -# is expected to be used by all netbeans projects -# * ${nb.ignore.native} - tells the netbeans project's build script to skip -# building native components, if it is able to do so - these will be built -# as part of the project's global build script -# * ${nb.no.dependencies} - tells the netbeans project's build script to skip -# building its dependencies, the dependencies are expected to be built by the -# project's global build script -# * ${nb.dont.build.custom.tasks} - tells the netbeans project's build script -# to skip building custom tasks for it, as they will already be built by the -# global script -# * ${nb.custom.tasks.cls} - points the netbeans project's build script to the -# location of the built custom tasks -nb.platform.home=-Dplatforms.JDK_1.5.home=${java.home}/.. -nb.platform.home.macos=-Dplatforms.JDK_1.5.home=${java.home} -nb.ignore.native=-Dignore.native=true -nb.no.dependencies=-Dno.dependencies=true -nb.dont.build.custom.tasks=-Ddont.build.custom.tasks=true -nb.custom.tasks.cls=-Dcustom.tasks.cls=${custom.tasks.cls} - -# default path to the distributives directory of the netbeans project; relative -# to ${nbproject.path} -nb.dist.path=dist - -# path to the classes directory of the netbeans project; relative to -# ${nbproject.path} -nb.classes.dir=build/classes - -# path to the manifest file of the netbeans project; relative to the -# ${nbproject.path} -nbproject.manifest=manifest.mf - -# path to the dist directory that the nbproject should use; since we do not use -# the netbeans' packaging mechanism, we have the flexibility to specify any -# distributives directory we want -nbproject.dist.dir=${cvs.dir}/${nbproject.path}/${nb.dist.path} - -##################################################################################### -# Native. Properties related to cleaning/building native components. - -# path to the directory with the sources for the native components; relative -# to the root of the project's sources -native.path=${cvs.module}/${cvs.path}/native - -# path to the directory with the localized files for the native components; -# relative to the root of the project's localized files directory -translatedfiles.native.path=${translatedfiles.module}/${translatedfiles.path}/native - -# list of platforms for which the native components should be built -# * the list should be space-separated -native.platforms=windows linux solaris-x86 solaris-sparc macosx - -# directory on the remote machine where the build script should operate -# * this is the default value, the actual value is expected to be passed in -# through the environment properties -remote.work.dir=~/.nbi-build - -# ssh properties: executable name, set of arguments and the command. -# * ${remote.host}, ${remote.port} and ${remote.user} are environment specific -# and are expected to be passed in through the environment properties -ssh.executable=ssh -ssh.arguments=-l ${remote.user} -p ${remote.port} ${remote.host} -ssh.command.clean=rm -rf ${remote.work.dir}; -ssh.command.build=rm -rf ${remote.work.dir}; \ - mkdir ${remote.work.dir}; \ - cd ${remote.work.dir}; \ - if [ "${cvs.branch}" = "" ]; then \ - if [ "${cvs.timestamp}" = "" ]; then \ - cvs -d ${cvs.root} co -P ${native.path}; \ - cvs -d ${cvs.root} co -P ${translatedfiles.native.path}; \ - else\ - cvs -D ${cvs.timestamp} -d ${cvs.root} co -P ${native.path}; \ - cvs -D ${cvs.timestamp} -d ${cvs.root} co -P ${translatedfiles.native.path}; \ - fi;\ - else \ - if [ "${cvs.timestamp}" = "" ]; then \ - cvs -d ${cvs.root} co -r ${cvs.branch} -P ${native.path}; \ - cvs -d ${cvs.root} co -r ${cvs.branch} -P ${translatedfiles.native.path}; \ - else \ - cvs -D ${cvs.timestamp} -d ${cvs.root} co -r ${cvs.branch} -P ${native.path}; \ - cvs -D ${cvs.timestamp} -d ${cvs.root} co -r ${cvs.branch} -P ${translatedfiles.native.path}; \ - fi;\ - fi; \ - cp -r ${translatedfiles.native.path} ${native.path}; \ - cd ${native.path}/${platform}; \ - make - -# scp properties: executable name, set of arguments, remote directory, local -# directory -# * ${remote.host}, ${remote.port} and ${remote.user} are platform and -# environment specific and are expected to be passed in through the -# environment properties -# * name of the file to copy is platform specific and is defined elsewhere, -# most likely in the base build script for a project type (engine, product, -# etc.) -# * ${platform} will be defined at runtime, as these commands will be executed -# in loop over the list of platforms -scp.executable=scp -scp.arguments=-P ${remote.port} -scp.remote.dir=${remote.user}@${remote.host}:${remote.work.dir}/${native.path}/${platform}/${nb.dist.path} -scp.local.dir=${work.dir}/${native.path}/${platform}/${nb.dist.path} - -# names of the native distributive files for various platforms -native.dist.file.windows=windows.dll -native.dist.file.linux=linux.so -native.dist.file.solaris-x86=solaris-x86.so -native.dist.file.solaris-sparc=solaris-sparc.so -native.dist.file.macosx=macosx.dylib - -##################################################################################### -# Release. Properties controlling the 'release' process -release.to.server=true - -##################################################################################### -# Miscellaneous. Properties that are used elsewhere. - -# these properties control the environment for the jarsigner process -# * ${jarsigner.enabled} - whether to sign jars -# * ${jarsigner.xmx} - max heap size for the jarsigner process -# * ${jarsigner.executable} - path to jarsigner executable (optional) -jarsigner.enabled=true -jarsigner.xmx=1024m - -# these properties control the environment for the pack200 and unpack200 -# processes -# * ${pack200.enabled} - whether to repackage jars (can be specified in each product) -# * ${use.internal.packer} - whether to use the same JVM for packing jars (can be specified in each product) -# it is risky because of memory leaks and possible OOMs -# * ${use.internal.unpacker} - whether to use the same JVM for unpacking jars (can be specified in each product) -# it is risky because of memory leaks and possible OOMs -# * ${pack200.xmx} - -Xmx jvm argument value -# * ${pack200.perm.size} - -XX:PermSize jvm argument value -# * ${pack200.max.perm.size} - -XX:MaxPermSize jvm argument value -# * ${pack200.executable} - path to pack200 executable (optional) -# * ${unpack200.executable} - path to unpack200 executable (optional) -# * ${verification.java.executable} - path to java executable that would be used for verification of packaged jars (optional) -pack200.xmx=2048m -pack200.perm.size=128m -pack200.max.perm.size=2048m - -# these properties control the environment for the external processes running during the build -# * ${process.max.execution.time} - maximum time (in milliseconds) for running the process -# if set to zero then processes would run without timeout -# default value is 600000=10min (defined in nbi/infra/build/.ant-lib/src/org/netbeans/installer/infra/build/ant/utils/Utils.java) - -# these properties control native executable paths -# * ${tar.executable} - path to native tar/gtar/gnutar executable -# * ${ls.executable} - path to native ls executable -# * ${unzip.executable} - path to native unzip executable diff --git a/nbi/.common/common.xml b/nbi/.common/common.xml deleted file mode 100644 index ddee99093..000000000 --- a/nbi/.common/common.xml +++ /dev/null @@ -1,834 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - This build script is a targets library and must not be used - directly. - - - diff --git a/nbi/.common/engine.properties b/nbi/.common/engine.properties deleted file mode 100644 index b9250c716..000000000 --- a/nbi/.common/engine.properties +++ /dev/null @@ -1,70 +0,0 @@ -# -# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. -# -# Copyright 1997-2010 Oracle and/or its affiliates. All rights reserved. -# -# Oracle and Java are registered trademarks of Oracle and/or its affiliates. -# Other names may be trademarks of their respective owners. -# -# The contents of this file are subject to the terms of either the GNU General Public -# License Version 2 only ("GPL") or the Common Development and Distribution -# License("CDDL") (collectively, the "License"). You may not use this file except in -# compliance with the License. You can obtain a copy of the License at -# http://www.netbeans.org/cddl-gplv2.html or nbbuild/licenses/CDDL-GPL-2-CP. See the -# License for the specific language governing permissions and limitations under the -# License. When distributing the software, include this License Header Notice in -# each file and include the License file at nbbuild/licenses/CDDL-GPL-2-CP. Oracle -# designates this particular file as subject to the "Classpath" exception as provided -# by Oracle in the GPL Version 2 section of the License file that accompanied this code. -# If applicable, add the following below the License Header, with the fields enclosed -# by brackets [] replaced by your own identifying information: -# "Portions Copyrighted [year] [name of copyright owner]" -# -# Contributor(s): -# -# The Original Software is NetBeans. The Initial Developer of the Original Software -# is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun Microsystems, Inc. All -# Rights Reserved. -# -# If you wish your version of this file to be governed by only the CDDL or only the -# GPL Version 2, indicate your decision by adding "[Contributor] elects to include -# this software in this distribution under the [CDDL or GPL Version 2] license." If -# you do not indicate a single choice of license, a recipient has the option to -# distribute your version of this file under either the CDDL, the GPL Version 2 or -# to extend the choice of license to its licensees as provided above. However, if you -# add GPL Version 2 code and therefore, elected the GPL Version 2 license, then the -# option applies only if the new code is made subject to such option by the copyright -# holder. -# - -# whether to build native components or not; 'true'/'false' -# * the engine has a bunch of native code dependencies, thus it is feasible to -# rebuild them every time -build.native=true - -# whether to build the netbeans part of the project or not; 'true'/'false' -# * essentially the engine IS a netbeans project, thus we should always build -# it -build.nbproject=true - -# dummy value for the custom parameter; which will be passed to the netbeans -# project build script; more sensible value is present in the base product -# build script -nb.custom.parameter=-Dtrue=true - -# name of the distributive file for the netbeans project -# * ${engine.dist.file.name} is expected to be defined in the derivative -# instance build script -nbproject.dist.file.name=${engine.dist.file.name} - -# path to the engine's distributive file; the file at this path would be -# considered the result of the build script and be copied to the distributives -# directory -nbproject.dist.file=${nbproject.dist.dir}/${nbproject.dist.file.name} - -# names of the distributive files for the native jni libraries for the engine -native.dist.file.windows=windows.dll -native.dist.file.linux=linux.so -native.dist.file.solaris-x86=solaris-x86.so -native.dist.file.solaris-sparc=solaris-sparc.so -native.dist.file.macosx=macosx.dylib diff --git a/nbi/.common/engine.xml b/nbi/.common/engine.xml deleted file mode 100644 index 8c10e60c2..000000000 --- a/nbi/.common/engine.xml +++ /dev/null @@ -1,324 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - This is the base build script for nbi engine and is not intended to - be called directly. In order to create a derivative implementation - script, see - ${basedir}/.templates/engine-template.xml - - - diff --git a/nbi/.common/group.properties b/nbi/.common/group.properties deleted file mode 100644 index e93356314..000000000 --- a/nbi/.common/group.properties +++ /dev/null @@ -1,69 +0,0 @@ -# -# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. -# -# Copyright 1997-2010 Oracle and/or its affiliates. All rights reserved. -# -# Oracle and Java are registered trademarks of Oracle and/or its affiliates. -# Other names may be trademarks of their respective owners. -# -# The contents of this file are subject to the terms of either the GNU General Public -# License Version 2 only ("GPL") or the Common Development and Distribution -# License("CDDL") (collectively, the "License"). You may not use this file except in -# compliance with the License. You can obtain a copy of the License at -# http://www.netbeans.org/cddl-gplv2.html or nbbuild/licenses/CDDL-GPL-2-CP. See the -# License for the specific language governing permissions and limitations under the -# License. When distributing the software, include this License Header Notice in -# each file and include the License file at nbbuild/licenses/CDDL-GPL-2-CP. Oracle -# designates this particular file as subject to the "Classpath" exception as provided -# by Oracle in the GPL Version 2 section of the License file that accompanied this code. -# If applicable, add the following below the License Header, with the fields enclosed -# by brackets [] replaced by your own identifying information: -# "Portions Copyrighted [year] [name of copyright owner]" -# -# Contributor(s): -# -# The Original Software is NetBeans. The Initial Developer of the Original Software -# is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun Microsystems, Inc. All -# Rights Reserved. -# -# If you wish your version of this file to be governed by only the CDDL or only the -# GPL Version 2, indicate your decision by adding "[Contributor] elects to include -# this software in this distribution under the [CDDL or GPL Version 2] license." If -# you do not indicate a single choice of license, a recipient has the option to -# distribute your version of this file under either the CDDL, the GPL Version 2 or -# to extend the choice of license to its licensees as provided above. However, if you -# add GPL Version 2 code and therefore, elected the GPL Version 2 license, then the -# option applies only if the new code is made subject to such option by the copyright -# holder. -# - -# groups do not normally have any native components, thus there is no need to -# attempt to build anything native -build.native=false - -# groups do not normally have any netbeans projects, thus there is no need to -# attempt to build any nbproject -build.nbproject=false - -# various directories and file paths that will be used for packaging the -# group -package.dir=${work.dir}/package - -package.descriptor.path=registry.xml - -group.path=groups/${group.uid} -group.icon.path=${group.path}/icon.png - -group.dist.file.name=${group.uid}.jar - -# path to the group's icon; the contents of this file will be copied to the -# file identified by ${group.icon.file} -group.icon=${cvs.dir}/data/icon.png - -# path to the group's localizing bundle; the bundle is expected to contain -# two properties: 'group.display.name' and 'group.description', which will be -# used in creating the registry entry for this group -group.bundle=${cvs.dir}/data/Bundle - -# uri of the group's icon, which will appear in the registry -group.icon.uri=resource:${group.icon.path} diff --git a/nbi/.common/group.xml b/nbi/.common/group.xml deleted file mode 100644 index 2bea0561a..000000000 --- a/nbi/.common/group.xml +++ /dev/null @@ -1,283 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - This is the base build script for nbi group package and is not - intended to be called directly. In order to create a derivative - implementation script, see - ${basedir}/.templates/group-template.xml - - - diff --git a/nbi/.common/product.properties b/nbi/.common/product.properties deleted file mode 100644 index 112622e8d..000000000 --- a/nbi/.common/product.properties +++ /dev/null @@ -1,111 +0,0 @@ -# -# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. -# -# Copyright 1997-2010 Oracle and/or its affiliates. All rights reserved. -# -# Oracle and Java are registered trademarks of Oracle and/or its affiliates. -# Other names may be trademarks of their respective owners. -# -# The contents of this file are subject to the terms of either the GNU General Public -# License Version 2 only ("GPL") or the Common Development and Distribution -# License("CDDL") (collectively, the "License"). You may not use this file except in -# compliance with the License. You can obtain a copy of the License at -# http://www.netbeans.org/cddl-gplv2.html or nbbuild/licenses/CDDL-GPL-2-CP. See the -# License for the specific language governing permissions and limitations under the -# License. When distributing the software, include this License Header Notice in -# each file and include the License file at nbbuild/licenses/CDDL-GPL-2-CP. Oracle -# designates this particular file as subject to the "Classpath" exception as provided -# by Oracle in the GPL Version 2 section of the License file that accompanied this code. -# If applicable, add the following below the License Header, with the fields enclosed -# by brackets [] replaced by your own identifying information: -# "Portions Copyrighted [year] [name of copyright owner]" -# -# Contributor(s): -# -# The Original Software is NetBeans. The Initial Developer of the Original Software -# is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun Microsystems, Inc. All -# Rights Reserved. -# -# If you wish your version of this file to be governed by only the CDDL or only the -# GPL Version 2, indicate your decision by adding "[Contributor] elects to include -# this software in this distribution under the [CDDL or GPL Version 2] license." If -# you do not indicate a single choice of license, a recipient has the option to -# distribute your version of this file under either the CDDL, the GPL Version 2 or -# to extend the choice of license to its licensees as provided above. However, if you -# add GPL Version 2 code and therefore, elected the GPL Version 2 license, then the -# option applies only if the new code is made subject to such option by the copyright -# holder. -# - -# whether to build native components or not; 'true'/'false' -# * normally a product does not have any native components, thus -# ${build.native} should be 'false' in most of the cases -build.native=false - -# whether to build the netbeans part of the project or not; 'true'/'false' -build.nbproject=true - -nbproject.dist.file.name=${product.uid},logic.jar - -# whether to build engine or not; 'true'/'false' -build.engine=true - -# whether to repackage the installation data or not; 'true'/'false'/'default' -# * if set to 'false' the data will be taken as it is (i.e. will be considered -# as already packaged) -# * if set to 'true' the data will be downloaded and packaged -# * if set to 'default' packaged data will be taken if it's available, -# otherwise raw data will be downloaded and packaged -package.data=default - -# whether the packaged data should be released (copied) to the local packaged -# data repository; 'true'/'false' -release.packaged.data=true - -# various properties controlling the engine's build process -engine.dir=${common.dir}/../engine -engine.work.dir=${work.dir}/.engine -engine.dist.dir=${dist.dir}/.engine -engine.dist.file.name=engine.jar - -# path to the distributive file of the engine; it will be used as the classpath -# for building the product's netbeans project -# * if the ${build.engine} has been set to 'false', make sure that -# ${engine.dist.file} points to a precompiled engine -engine.dist.file=${engine.dist.dir}/${engine.dist.file.name} - -downloads.cache.dir=${packaged.data.dir}/.raw - -# various paths and file names that will be used for packaging the -# product -package.dir=${work.dir}/package - -package.descriptor.path=registry.xml - -product.path=products/${product.uid}/${product.version}/${product.platforms} -product.logic.path=${product.path}/logic -product.data.path=${product.path}/data -product.icon.path=${product.path}/icon.png - -product.icon.uri=resource:${product.icon.path} - -product.dist.file.name=${product.uid},${product.version},${product.platforms}.jar - -# name of the product's configuration logic jar with index ${i} -product.logic.file.name=logic,${i}.jar -product.data.file.name=data,${i}.jar - -# list of the locally cached pre-packaged data files -# * the length of the list equals to ${product.data.length} -# * ${packaged.data.dir} is the path to the local packaged data repository and -# is environment specific; it is expected to be passed in via the environment -# properties -product.packaged.data.file=${packaged.data.dir}/${product.uid},${product.version},${product.platforms},${i}.jar -product.packaged.data.properties.file=${packaged.data.dir}/${product.uid},${product.version},${product.platforms},${i}.jar.properties - -# product icon and the localizing bundle, which is expected to contain -# display names and descriptions for all locales, supported by the product -# * these are file paths as opposed to uris for configuration logic and -# installation data -product.icon=${cvs.dir}/data/icon.png -product.bundle=${cvs.dir}/data/Bundle diff --git a/nbi/.common/product.xml b/nbi/.common/product.xml deleted file mode 100644 index d11cc9ec2..000000000 --- a/nbi/.common/product.xml +++ /dev/null @@ -1,746 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - This is the base build script for nbi product package and is not - intended to be called directly. In order to create a derivative - implementation script, see - ${basedir}/.templates/product-template.xml - - - diff --git a/nbi/README b/nbi/README deleted file mode 100644 index 7c38c1f4d..000000000 --- a/nbi/README +++ /dev/null @@ -1,24 +0,0 @@ -DO NOT TRY TO FIX THE IMPORT ERRORS IN THE PROJECTS!! - -See also http://platform.netbeans.org/tutorials/nbm-nbi.html#bundling - -The product has to be a zip file with a single folder containing the needed files. - -To make a new product item, copy an existing item by copying a folder from -stub/ext/components/products and stub/ext/infra/build/products and adapt -the properties files, especially the path to the zip file (product.data.1.path) -as well as the subfolder in the zip containing the files (product.data.sub.dir). - -The folder in stub/ext/infra/build/products can be duplicated and adapted for -each platform w/o copying the main project under stub/ext/components/products. - -Do not use the helloworld item as a template, this is the main item and has -some more stuff going! - -Then adapt the main stub/build.xml in the -build and -clean targets by duplicating -the entries. - -The existing JDK item is only used on MacOSX! On other platforms the jdk that is -bundled with the installer is used instead. - -Normen \ No newline at end of file diff --git a/nbi/antlib/jemmy-2.3.1.1.jar b/nbi/antlib/jemmy-2.3.1.1.jar deleted file mode 100644 index 4f8b4b951..000000000 Binary files a/nbi/antlib/jemmy-2.3.1.1.jar and /dev/null differ diff --git a/nbi/antlib/locale/nbi-engine_ja.jar b/nbi/antlib/locale/nbi-engine_ja.jar deleted file mode 100644 index 4b09fa98e..000000000 Binary files a/nbi/antlib/locale/nbi-engine_ja.jar and /dev/null differ diff --git a/nbi/antlib/locale/nbi-engine_pt_BR.jar b/nbi/antlib/locale/nbi-engine_pt_BR.jar deleted file mode 100644 index 46444fcdc..000000000 Binary files a/nbi/antlib/locale/nbi-engine_pt_BR.jar and /dev/null differ diff --git a/nbi/antlib/locale/nbi-engine_ru.jar b/nbi/antlib/locale/nbi-engine_ru.jar deleted file mode 100644 index 762731995..000000000 Binary files a/nbi/antlib/locale/nbi-engine_ru.jar and /dev/null differ diff --git a/nbi/antlib/locale/nbi-engine_zh_CN.jar b/nbi/antlib/locale/nbi-engine_zh_CN.jar deleted file mode 100644 index 924f1f41a..000000000 Binary files a/nbi/antlib/locale/nbi-engine_zh_CN.jar and /dev/null differ diff --git a/nbi/antlib/nbi-ant-tasks.jar b/nbi/antlib/nbi-ant-tasks.jar deleted file mode 100644 index 68dc8d2cf..000000000 Binary files a/nbi/antlib/nbi-ant-tasks.jar and /dev/null differ diff --git a/nbi/antlib/nbi-engine.jar b/nbi/antlib/nbi-engine.jar deleted file mode 100644 index f8bf1da2b..000000000 Binary files a/nbi/antlib/nbi-engine.jar and /dev/null differ diff --git a/nbi/antlib/nbi-registries-management.jar b/nbi/antlib/nbi-registries-management.jar deleted file mode 100644 index 8043491c5..000000000 Binary files a/nbi/antlib/nbi-registries-management.jar and /dev/null differ diff --git a/nbi/antlib/version b/nbi/antlib/version deleted file mode 100644 index 1e57e5e27..000000000 --- a/nbi/antlib/version +++ /dev/null @@ -1 +0,0 @@ -NB-18 diff --git a/nbi/stub/build.properties b/nbi/stub/build.properties deleted file mode 100644 index 6f764cf62..000000000 --- a/nbi/stub/build.properties +++ /dev/null @@ -1,49 +0,0 @@ -# -# The contents of this file are subject to the terms of the Common Development and -# Distribution License (the License). You may not use this file except in compliance -# with the License. -# -# You can obtain a copy of the License at http://www.netbeans.org/cddl.html or -# http://www.netbeans.org/cddl.txt. -# -# When distributing Covered Code, include this CDDL Header Notice in each file and -# include the License file at http://www.netbeans.org/cddl.txt. If applicable, add -# the following below the CDDL Header, with the fields enclosed by brackets [] -# replaced by your own identifying information: -# -# "Portions Copyrighted [year] [name of copyright owner]" -# -# The Original Software is NetBeans. The Initial Developer of the Original Software -# is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun Microsystems, Inc. All -# Rights Reserved. -# - -output.dir=${basedir}/build -jarsigner.enabled=false -pack200.enabled={pack200.enabled} -core.module.name=nbi -ext.module.name=ext - -nbi.all.dir=${basedir}/nbi_all -nbi.core.dir=${nbi.all.dir}/${core.module.name} -nbi.ext.dir=${nbi.all.dir}/${ext.module.name} - -temp.file=${nbi.all.dir}/temp.ant.tmp -environment.properties=${nbi.all.dir}/environment.properties - -context.path.token=/nbi/dev -context.path.replacement=${context.path} - -context.dir.token=ROOT = new File\\(".*?"\\); -context.dir.replacement=ROOT = new File\\("${context.dir}"\); - -custom.tasks.cls={nbi.ant.tasks.jar}${path.separator}{nbi.registries.management.jar}${path.separator}{nbi.engine.jar} -nbi.engine.jar={nbi.engine.jar} - -jdk.home={generator-jdk-location-forward-slashes} -bundles.release.dir={generated-installers-location-forward-slashes} -bundle.files.prefix={generated-installers-prefix} - -target.platforms={product-platforms} -main.product.uid={product-uid} -main.product.version={product-version} \ No newline at end of file diff --git a/nbi/stub/build.xml b/nbi/stub/build.xml deleted file mode 100644 index 08fa58fe6..000000000 --- a/nbi/stub/build.xml +++ /dev/null @@ -1,249 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -checkout.sources=false -sources.dir=${nbi.all.dir} -cvs.module=ext - -release.to.server=false -release.registry.dir=${output.dir}/registry-temp - -dont.build.custom.tasks=true -custom.tasks.cls=${custom.tasks.cls} - -build.engine=false - -engine.dist.file.name=nbi-engine.jar -engine.dist.file=${nbi.core.dir}/infra/build/engine/dist/nbi-engine.jar - -packaged.data.dir=${basedir}/cache/packaged -downloads.cache.dir=${basedir}/cache/raw - -jarsigner.enabled=${jarsigner.enabled} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Installer(s) for [${target.platforms}] are available at ${bundles.release.dir} - - - - - - - - - - - - - - - - - - - - - - diff --git a/nbi/stub/ext/components/products/helloworld/build.xml b/nbi/stub/ext/components/products/helloworld/build.xml deleted file mode 100644 index 07f2eba0b..000000000 --- a/nbi/stub/ext/components/products/helloworld/build.xml +++ /dev/null @@ -1,74 +0,0 @@ - - - - - - - - - - - Builds, tests, and runs the project helloworld. - - - diff --git a/nbi/stub/ext/components/products/helloworld/data/Bundle.properties b/nbi/stub/ext/components/products/helloworld/data/Bundle.properties deleted file mode 100644 index 9a914fa55..000000000 --- a/nbi/stub/ext/components/products/helloworld/data/Bundle.properties +++ /dev/null @@ -1,41 +0,0 @@ -# -# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. -# -# Copyright 1997-2010 Oracle and/or its affiliates. All rights reserved. -# -# Oracle and Java are registered trademarks of Oracle and/or its affiliates. -# Other names may be trademarks of their respective owners. -# -# The contents of this file are subject to the terms of either the GNU General Public -# License Version 2 only ("GPL") or the Common Development and Distribution -# License("CDDL") (collectively, the "License"). You may not use this file except in -# compliance with the License. You can obtain a copy of the License at -# http://www.netbeans.org/cddl-gplv2.html or nbbuild/licenses/CDDL-GPL-2-CP. See the -# License for the specific language governing permissions and limitations under the -# License. When distributing the software, include this License Header Notice in -# each file and include the License file at nbbuild/licenses/CDDL-GPL-2-CP. Oracle -# designates this particular file as subject to the "Classpath" exception as provided -# by Oracle in the GPL Version 2 section of the License file that accompanied this code. -# If applicable, add the following below the License Header, with the fields enclosed -# by brackets [] replaced by your own identifying information: -# "Portions Copyrighted [year] [name of copyright owner]" -# -# Contributor(s): -# -# The Original Software is NetBeans. The Initial Developer of the Original Software -# is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun Microsystems, Inc. All -# Rights Reserved. -# -# If you wish your version of this file to be governed by only the CDDL or only the -# GPL Version 2, indicate your decision by adding "[Contributor] elects to include -# this software in this distribution under the [CDDL or GPL Version 2] license." If -# you do not indicate a single choice of license, a recipient has the option to -# distribute your version of this file under either the CDDL, the GPL Version 2 or -# to extend the choice of license to its licensees as provided above. However, if you -# add GPL Version 2 code and therefore, elected the GPL Version 2 license, then the -# option applies only if the new code is made subject to such option by the copyright -# holder. -# - -product.display.name={product-name} -product.description={product-description} diff --git a/nbi/stub/ext/components/products/helloworld/data/icon.png b/nbi/stub/ext/components/products/helloworld/data/icon.png deleted file mode 100644 index a8c0f8c34..000000000 Binary files a/nbi/stub/ext/components/products/helloworld/data/icon.png and /dev/null differ diff --git a/nbi/stub/ext/components/products/helloworld/data/icon48.png b/nbi/stub/ext/components/products/helloworld/data/icon48.png deleted file mode 100644 index 05a274758..000000000 Binary files a/nbi/stub/ext/components/products/helloworld/data/icon48.png and /dev/null differ diff --git a/nbi/stub/ext/components/products/helloworld/manifest.mf b/nbi/stub/ext/components/products/helloworld/manifest.mf deleted file mode 100644 index 7dd53f8c1..000000000 --- a/nbi/stub/ext/components/products/helloworld/manifest.mf +++ /dev/null @@ -1 +0,0 @@ -Configuration-Logic-Class: org.mycompany.ConfigurationLogic \ No newline at end of file diff --git a/nbi/stub/ext/components/products/helloworld/nbproject/build-impl.xml b/nbi/stub/ext/components/products/helloworld/nbproject/build-impl.xml deleted file mode 100644 index bea2b6e64..000000000 --- a/nbi/stub/ext/components/products/helloworld/nbproject/build-impl.xml +++ /dev/null @@ -1,1788 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must set src.dir - Must set test.src.dir - Must set build.dir - Must set dist.dir - Must set build.classes.dir - Must set dist.javadoc.dir - Must set build.test.classes.dir - Must set build.test.results.dir - Must set build.classes.excludes - Must set dist.jar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must set javac.includes - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - No tests executed. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must set JVM to use for profiling in profiler.info.jvm - Must set profiler agent JVM arguments in profiler.info.jvmargs.agent - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must select some files in the IDE or set javac.includes - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - To run this application from the command line without Ant, try: - - java -jar "${dist.jar.resolved}" - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must select one file in the IDE or set run.class - - - - Must select one file in the IDE or set run.class - - - - - - - - - - - - - - - - - - - - - - - Must select one file in the IDE or set debug.class - - - - - Must select one file in the IDE or set debug.class - - - - - Must set fix.includes - - - - - - - - - - This target only works when run from inside the NetBeans IDE. - - - - - - - - - Must select one file in the IDE or set profile.class - This target only works when run from inside the NetBeans IDE. - - - - - - - - - This target only works when run from inside the NetBeans IDE. - - - - - - - - - - - - - This target only works when run from inside the NetBeans IDE. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must select one file in the IDE or set run.class - - - - - - Must select some files in the IDE or set test.includes - - - - - Must select one file in the IDE or set run.class - - - - - Must select one file in the IDE or set applet.url - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must select some files in the IDE or set javac.includes - - - - - - - - - - - - - - - - - - - - - - - - Some tests failed; see details above. - - - - - - - - - Must select some files in the IDE or set test.includes - - - - Some tests failed; see details above. - - - - Must select some files in the IDE or set test.class - Must select some method in the IDE or set test.method - - - - Some tests failed; see details above. - - - - - Must select one file in the IDE or set test.class - - - - Must select one file in the IDE or set test.class - Must select some method in the IDE or set test.method - - - - - - - - - - - - - - Must select one file in the IDE or set applet.url - - - - - - - - - Must select one file in the IDE or set applet.url - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/nbi/stub/ext/components/products/helloworld/nbproject/genfiles.properties b/nbi/stub/ext/components/products/helloworld/nbproject/genfiles.properties deleted file mode 100644 index 05085c458..000000000 --- a/nbi/stub/ext/components/products/helloworld/nbproject/genfiles.properties +++ /dev/null @@ -1,8 +0,0 @@ -build.xml.data.CRC32=b5c7f54a -build.xml.script.CRC32=16bbb630 -build.xml.stylesheet.CRC32=be360661 -# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. -# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. -nbproject/build-impl.xml.data.CRC32=b5c7f54a -nbproject/build-impl.xml.script.CRC32=fbc7b72f -nbproject/build-impl.xml.stylesheet.CRC32=f89f7d21@1.94.0.48 diff --git a/nbi/stub/ext/components/products/helloworld/nbproject/private/private.xml b/nbi/stub/ext/components/products/helloworld/nbproject/private/private.xml deleted file mode 100644 index 8505fc191..000000000 --- a/nbi/stub/ext/components/products/helloworld/nbproject/private/private.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/nbi/stub/ext/components/products/helloworld/nbproject/project.properties b/nbi/stub/ext/components/products/helloworld/nbproject/project.properties deleted file mode 100644 index 23390513a..000000000 --- a/nbi/stub/ext/components/products/helloworld/nbproject/project.properties +++ /dev/null @@ -1,76 +0,0 @@ -application.title=helloworld -application.vendor=dlm198383 -build.classes.dir=${build.dir}/classes -build.classes.excludes=**/*.java,**/*.form -# This directory is removed when the project is cleaned: -build.dir=build -build.generated.dir=${build.dir}/generated -build.generated.sources.dir=${build.dir}/generated-sources -# Only compile against the classpath explicitly listed here: -build.sysclasspath=ignore -build.test.classes.dir=${build.dir}/test/classes -build.test.results.dir=${build.dir}/test/results -debug.classpath=\ - ${run.classpath} -debug.modulepath=\ - ${run.modulepath} -debug.test.classpath=\ - ${run.test.classpath} -debug.test.modulepath=\ - ${run.test.modulepath} -# This directory is removed when the project is cleaned: -dist.dir=dist -dist.jar=${dist.dir}/helloworld.jar -dist.javadoc.dir=${dist.dir}/javadoc -excludes= -includes=** -jar.compress=false -javac.classpath=\ - ${reference.Core_NBI_Engine.jar}:\ - ../../../../../antlib/nbi-engine.jar -# Space-separated list of extra javac options -javac.compilerargs= -javac.deprecation=false -javac.modulepath= -javac.processormodulepath= -javac.source=21 -javac.target=21 -javac.test.classpath=\ - ${javac.classpath}:\ - ${build.classes.dir}:\ - ${libs.junit.classpath}:\ - ${libs.junit_4.classpath} -javac.test.modulepath=\ - ${javac.modulepath} -javadoc.additionalparam= -javadoc.author=false -javadoc.encoding=${source.encoding} -javadoc.noindex=false -javadoc.nonavbar=false -javadoc.notree=false -javadoc.private=false -javadoc.splitindex=true -javadoc.use=true -javadoc.version=false -javadoc.windowtitle= -meta.inf.dir=${src.dir}/META-INF -platform.active=default_platform -project.Core_NBI_Engine=../../../../nbi/engine -reference.Core_NBI_Engine.jar=${project.Core_NBI_Engine}/dist/nbi-engine.jar -run.classpath=\ - ${javac.classpath}:\ - ${build.classes.dir} -# Space-separated list of JVM arguments used when running the project -# (you may also define separate properties like run-sys-prop.name=value instead of -Dname=value -# or test-sys-prop.name=value to set system properties for unit tests): -run.jvmargs= -run.modulepath=\ - ${javac.modulepath} -run.test.classpath=\ - ${javac.test.classpath}:\ - ${build.test.classes.dir} -run.test.modulepath=\ - ${javac.test.modulepath} -source.encoding=UTF-8 -src.dir=src -test.src.dir=test diff --git a/nbi/stub/ext/components/products/helloworld/nbproject/project.xml b/nbi/stub/ext/components/products/helloworld/nbproject/project.xml deleted file mode 100644 index 84d37928d..000000000 --- a/nbi/stub/ext/components/products/helloworld/nbproject/project.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - org.netbeans.modules.java.j2seproject - - - helloworld - 1.6.5 - - - - - - - - - - Core_NBI_Engine - jar - - jar - clean - jar - - - - diff --git a/nbi/stub/ext/components/products/helloworld/src/org/mycompany/Bundle.properties b/nbi/stub/ext/components/products/helloworld/src/org/mycompany/Bundle.properties deleted file mode 100644 index 956a1f2e6..000000000 --- a/nbi/stub/ext/components/products/helloworld/src/org/mycompany/Bundle.properties +++ /dev/null @@ -1,23 +0,0 @@ -CL.app.name={product-simple-name} -CL.app.categories={product-categories} -CL.desktop.shortcut.name={product-name} -CL.desktop.shortcut.description={product-description} -CL.desktop.shortcut.path= -CL.unix.icon.name={product-icon-name} -CL.unix.icon.resource=org/mycompany/{product-icon-name} - - -CL.start.menu.shortcut.name={product-name} -CL.start.menu.shortcut.name.macosx={product-name} -CL.start.menu.shortcut.description={product-description} -CL.start.menu.shortcut.path= - -CL.install.desktop=Creating shortcut on desktop -CL.install.start.menu=Creating shortcut in start menu -CL.uninstall.start.menu=Removing Start Menu entries -CL.uninstall.desktop=Removing desktop shortcut -CL.uninstall.remove.userdir=Removing {product-name} userdir - -CL.uninstall.error.start.menu=Cannot remove desktop shortcut -CL.uninstall.error.desktop=Cannot remove Start Menu entries - diff --git a/nbi/stub/ext/components/products/helloworld/src/org/mycompany/ConfigurationLogic.java b/nbi/stub/ext/components/products/helloworld/src/org/mycompany/ConfigurationLogic.java deleted file mode 100644 index c33a3c02b..000000000 --- a/nbi/stub/ext/components/products/helloworld/src/org/mycompany/ConfigurationLogic.java +++ /dev/null @@ -1,518 +0,0 @@ -package org.mycompany; - -import java.util.List; -import java.io.File; -import java.io.FileOutputStream; -import java.io.IOException; -import java.io.InputStream; -import java.util.Locale; -import java.util.Map; -import org.mycompany.wizard.panels.HelloWorldPanel; -import org.mycompany.installer.utils.applications.NetBeansRCPUtils; -import org.netbeans.installer.product.components.ProductConfigurationLogic; -import org.netbeans.installer.product.components.Product; -import org.netbeans.installer.utils.FileUtils; -import org.netbeans.installer.utils.helper.RemovalMode; -import org.netbeans.installer.utils.exceptions.InitializationException; -import org.netbeans.installer.utils.exceptions.InstallationException; -import org.netbeans.installer.utils.exceptions.UninstallationException; -import org.netbeans.installer.utils.progress.Progress; -import org.netbeans.installer.utils.system.shortcut.FileShortcut; -import org.netbeans.installer.utils.system.shortcut.LocationType; -import org.netbeans.installer.utils.system.shortcut.Shortcut; -import org.netbeans.installer.utils.SystemUtils; -import org.netbeans.installer.utils.LogManager; -import org.netbeans.installer.utils.ResourceUtils; -import org.netbeans.installer.utils.StreamUtils; -import org.netbeans.installer.utils.StringUtils; -import org.netbeans.installer.utils.exceptions.NativeException; -import org.netbeans.installer.wizard.Wizard; -import org.netbeans.installer.wizard.components.WizardComponent; -//normen - JDK launchers -import org.netbeans.installer.utils.system.launchers.LauncherResource; - -public class ConfigurationLogic extends ProductConfigurationLogic { - - private List wizardComponents; - - // constructor ////////////////////////////////////////////////////////////////// - public ConfigurationLogic() throws InitializationException { - wizardComponents = Wizard.loadWizardComponents( - WIZARD_COMPONENTS_URI, - getClass().getClassLoader()); - } - - public List getWizardComponents() { - return wizardComponents; - } - - @Override - public boolean allowModifyMode() { - return false; - } - - @Override - public void install(Progress progress) throws InstallationException { - final Product product = getProduct(); - final File installLocation = product.getInstallationLocation(); - //final FilesList filesList = product.getInstalledFiles(); - String appName=ResourceUtils.getString(ConfigurationLogic.class, "CL.app.name"); - - if (SystemUtils.isMacOS()) { - //normen: use parent folder of install dir for icon - File f = new File(installLocation.getParentFile(), ICON_MACOSX); - if(!f.exists()) { - try { - FileUtils.writeFile(f, - ResourceUtils.getResource(ICON_MACOSX_RESOURCE, - getClass().getClassLoader())); - getProduct().getInstalledFiles().add(f); - } catch (IOException e) { - LogManager.log( - "... cannot handle icns icon " + f, e); // NOI18N - } - } - - //normen: rename executable - File shortcut=new File(installLocation.getParentFile().getParent()+"/MacOS/executable"); - if(shortcut.exists()){ - try { - shortcut.renameTo(new File(installLocation.getParentFile().getParent()+"/MacOS/"+appName)); - getProduct().getInstalledFiles().add(shortcut.getAbsoluteFile()); - } catch (IOException e) { - LogManager.log( - "... cannot rename executable " + f, e); // NOI18N - } - } - - //normen: replace icon + app in Info.plist - try { - File plist=new File(installLocation.getParentFile().getParentFile(),"Info.plist"); - FileUtils.modifyFile(plist, "icon.icns", appName+".icns"); - FileUtils.modifyFile(plist, "executable", appName); - } catch (Exception e) { - e.printStackTrace(); - } - } - - - if (Boolean.parseBoolean(getProperty(HelloWorldPanel.CREATE_DESKTOP_SHORTCUT_PROPERTY))) { - LogManager.logIndent( - "creating the desktop shortcut for the application"); // NOI18N - if (!SystemUtils.isMacOS()) { - try { - progress.setDetail(getString("CL.install.desktop")); // NOI18N - - if (SystemUtils.isCurrentUserAdmin()) { - LogManager.log( - "... current user is an administrator " + // NOI18N - "-- creating the shortcut for all users"); // NOI18N - - SystemUtils.createShortcut( - getDesktopShortcut(installLocation), - LocationType.ALL_USERS_DESKTOP); - - product.setProperty( - DESKTOP_SHORTCUT_LOCATION_PROPERTY, - ALL_USERS_PROPERTY_VALUE); - } else { - LogManager.log( - "... current user is an ordinary user " + // NOI18N - "-- creating the shortcut for the current " + // NOI18N - "user only"); // NOI18N - - SystemUtils.createShortcut( - getDesktopShortcut(installLocation), - LocationType.CURRENT_USER_DESKTOP); - - getProduct().setProperty( - DESKTOP_SHORTCUT_LOCATION_PROPERTY, - CURRENT_USER_PROPERTY_VALUE); - } - } catch (NativeException e) { - LogManager.unindent(); - - LogManager.log( - getString("CL.install.error.desktop"), // NOI18N - e); - } - } else { - LogManager.log( - "... skipping this step as we're on Mac OS"); // NOI18N - } - } - LogManager.logUnindent( - "... done"); // NOI18N - - ///////////////////////////////////////////// - // create start menu shortcut - if (Boolean.parseBoolean(getProperty(HelloWorldPanel.CREATE_START_MENU_SHORTCUT_PROPERTY))) { - LogManager.logIndent( - "creating the start menu shortcut for the application"); // NOI18N - try { - progress.setDetail(getString("CL.install.start.menu")); // NOI18N - - if (SystemUtils.isCurrentUserAdmin()) { - LogManager.log( - "... current user is an administrator " + // NOI18N - "-- creating the shortcut for all users"); // NOI18N - - SystemUtils.createShortcut( - getStartMenuShortcut(installLocation), - LocationType.ALL_USERS_START_MENU); - - getProduct().setProperty( - START_MENU_SHORTCUT_LOCATION_PROPERTY, - ALL_USERS_PROPERTY_VALUE); - } else { - LogManager.log( - "... current user is an ordinary user " + // NOI18N - "-- creating the shortcut for the current " + // NOI18N - "user only"); // NOI18N - - SystemUtils.createShortcut( - getStartMenuShortcut(installLocation), - LocationType.CURRENT_USER_START_MENU); - - getProduct().setProperty( - START_MENU_SHORTCUT_LOCATION_PROPERTY, - CURRENT_USER_PROPERTY_VALUE); - } - } catch (NativeException e) { - LogManager.log( - getString("CL.install.error.start.menu"), // NOI18N - e); - } - LogManager.logUnindent( - "... done"); // NOI18N - } - //normen - JDK install - uses package on OSX - if (!SystemUtils.isMacOS()) { - File javaHome = new File(System.getProperty("java.home")); - File target = new File(installLocation, "jdk"); - try { - FileUtils.copyFile(javaHome, target, true); //FileUtils is one of the NBI core classes, already imported in ConfigurationLogic.java - } catch (IOException e) { - throw new InstallationException("Cannot copy JDK",e); - } - // set permissions: - // ADDED BY KIRILL: force correct permissions for JDK files - LogManager.log("Setting JDK files as executable"); - setExecutableContents(target, "bin"); - setExecutableFile(target, "lib/jexec"); - setExecutableFile(target, "lib/amd64/libjawt.so"); - setExecutableFile(target, "lib/amd64/jli/libjli.so"); - setExecutableFile(target, "lib/visualvm/platform/lib/nbexec"); - // to add uninstaller logic: - SystemUtils.getNativeUtils().addUninstallerJVM(new LauncherResource(false, target)); - } - } - private static void setExecutableContents(File parent, String path) { - File binDir = new File(parent, path); - File[] fileList = binDir.listFiles(); - for (File file : fileList) { - try { - file.setExecutable(true, false); - } catch (Exception ex) { - ex.printStackTrace(); - } - } - } - private static void setExecutableFile(File parent, String path) { - File binFile = new File(parent, path); - try { - binFile.setExecutable(true, false); - } catch (Exception ex) { - ex.printStackTrace(); - } - } - - @Override - public void uninstall(Progress progress) throws UninstallationException { - final Product product = getProduct(); - final File installLocation = product.getInstallationLocation(); - - //NetBeansUtils.warnNetbeansRunning(installLocation); - ///////////////////////////////////////////////////////////////////////////// - if (Boolean.parseBoolean(getProperty(HelloWorldPanel.CREATE_START_MENU_SHORTCUT_PROPERTY))) { - try { - progress.setDetail(getString("CL.uninstall.start.menu")); // NOI18N - - final String shortcutLocation = - getProduct().getProperty(START_MENU_SHORTCUT_LOCATION_PROPERTY); - - if ((shortcutLocation == null) - || shortcutLocation.equals(CURRENT_USER_PROPERTY_VALUE)) { - SystemUtils.removeShortcut( - getStartMenuShortcut(installLocation), - LocationType.CURRENT_USER_START_MENU, - true); - } else { - SystemUtils.removeShortcut( - getStartMenuShortcut(installLocation), - LocationType.ALL_USERS_START_MENU, - true); - } - } catch (NativeException e) { - LogManager.log( - getString("CL.uninstall.error.start.menu"), // NOI18N - e); - } - } - - ///////////////////////////////////////////////////////////////////////////// - if (Boolean.parseBoolean(getProperty(HelloWorldPanel.CREATE_DESKTOP_SHORTCUT_PROPERTY))) { - if (!SystemUtils.isMacOS()) { - try { - progress.setDetail(getString("CL.uninstall.desktop")); // NOI18N - - final String shortcutLocation = getProduct().getProperty( - DESKTOP_SHORTCUT_LOCATION_PROPERTY); - - if ((shortcutLocation == null) - || shortcutLocation.equals(CURRENT_USER_PROPERTY_VALUE)) { - SystemUtils.removeShortcut( - getDesktopShortcut(installLocation), - LocationType.CURRENT_USER_DESKTOP, - false); - } else { - SystemUtils.removeShortcut( - getDesktopShortcut(installLocation), - LocationType.ALL_USERS_DESKTOP, - false); - } - } catch (NativeException e) { - LogManager.log( - getString("CL.uninstall.error.desktop"), // NOI18N - e); - } - } - } - - - if (Boolean.getBoolean("remove.app.userdir")) { - try { - progress.setDetail(getString("CL.uninstall.remove.userdir")); // NOI18N - LogManager.logIndent("Removing application`s userdir... "); - File userDir = NetBeansRCPUtils.getApplicationUserDirFile(installLocation); - LogManager.log("... application userdir location : " + userDir); - if (FileUtils.exists(userDir) && FileUtils.canWrite(userDir)) { - FileUtils.deleteFile(userDir, true); - FileUtils.deleteEmptyParents(userDir); - } - LogManager.log("... application userdir totally removed"); - } catch (IOException e) { - LogManager.log("Can`t remove application userdir", e); - } finally { - LogManager.unindent(); - } - } - - //normen - JDK uninstall - if (!SystemUtils.isMacOS()) { - File jre = new File(installLocation, "jdk"); - if (jre.exists()) { - try { - for (File file : FileUtils.listFiles(jre).toList()) { - FileUtils.deleteOnExit(file); - } - FileUtils.deleteOnExit(installLocation); - } catch (IOException e) { - //ignore - } - } - } else{ - String appName=ResourceUtils.getString(ConfigurationLogic.class, "CL.app.name"); - File exeLink = new File(installLocation.getParentFile().getParent()+"/MacOS/"+appName); - try { - FileUtils.deleteWithEmptyParents(exeLink); - } catch (IOException ex) { - LogManager.log("Error removing app Link: " + ex); - } - } - ///////////////////////////////////////////////////////////////////////////// - //remove cluster/update files - /* - try { - progress.setDetail(getString("CL.uninstall.update.files")); // NOI18N - for(String cluster : CLUSTERS) { - File updateDir = new File(installLocation, cluster + File.separator + "update"); - if ( updateDir.exists()) { - FileUtils.deleteFile(updateDir, true); - } - } - } catch (IOException e) { - LogManager.log( - getString("CL.uninstall.error.update.files"), // NOI18N - e); - } - */ - ///////////////////////////////////////////////////////////////////////////// - progress.setPercentage(Progress.COMPLETE); - } - - @Override - public String getExecutable() { - if (SystemUtils.isWindows()) { - return EXECUTABLE_WINDOWS; - } else { - return EXECUTABLE_UNIX; - } - } - - @Override - public String getIcon() { - if (SystemUtils.isWindows()) { - return ICON_WINDOWS; - } else if (SystemUtils.isMacOS()) { - return ICON_MACOSX; - } else { - return ICON_UNIX; - } - } - - public RemovalMode getRemovalMode() { - return RemovalMode.LIST; - } - - @Override - public boolean registerInSystem() { - return true; - } - - @Override - public boolean requireLegalArtifactSaving() { - return false; - } - - @Override - public boolean requireDotAppForMacOs() { - return true; - } - - @Override - public boolean wrapForMacOs() { - return true; - } - - - - private Shortcut getDesktopShortcut(final File directory) { - return getShortcut( - getStrings("CL.desktop.shortcut.name"), // NOI18N - getStrings("CL.desktop.shortcut.description"), // NOI18N - getString("CL.desktop.shortcut.path"), // NOI18N - directory); - } - - private Shortcut getStartMenuShortcut(final File directory) { - if (SystemUtils.isMacOS()) { - return getShortcut( - getStrings("CL.start.menu.shortcut.name.macosx"), // NOI18N - getStrings("CL.start.menu.shortcut.description"), // NOI18N - getString("CL.start.menu.shortcut.path"), // NOI18N - directory); - } else { - return getShortcut( - getStrings("CL.start.menu.shortcut.name"), // NOI18N - getStrings("CL.start.menu.shortcut.description"), // NOI18N - getString("CL.start.menu.shortcut.path"), // NOI18N - directory); - } - } - - private Shortcut getShortcut( - final Map names, - final Map descriptions, - final String relativePath, - final File location) { - final File icon; - final File executable; - - if (SystemUtils.isWindows()) { - icon = new File(location, ICON_WINDOWS); - } else if (SystemUtils.isMacOS()) { - icon = new File(location, ICON_MACOSX); - } else { - icon = new File(location, ICON_UNIX); - LogManager.log("... icon file: " + icon); - if(!FileUtils.exists(icon)) { - LogManager.log("... icon file does not exist: " + icon); - InputStream is = null; - is = ResourceUtils.getResource(ICON_UNIX_RESOURCE, this.getClass().getClassLoader()); - if(is!=null) { - FileOutputStream fos =null; - try { - fos = new FileOutputStream(icon); - StreamUtils.transferData(is, fos); - is.close(); - fos.close(); - getProduct().getInstalledFiles().add(icon); - } catch (IOException e) { - LogManager.log(e); - } finally { - if(fos!=null) { - try { - fos.close(); - } catch (IOException e) { - } - } - } - } - } - } - - if (SystemUtils.isWindows()) { - executable = new File(location, EXECUTABLE_WINDOWS); - } else { - executable = new File(location, EXECUTABLE_UNIX); - } - final String name = names.get(new Locale(StringUtils.EMPTY_STRING)); - final FileShortcut shortcut = new FileShortcut(name, executable); - shortcut.setNames(names); - shortcut.setDescriptions(descriptions); - shortcut.setCategories(SHORTCUT_CATEGORIES); - shortcut.setFileName(SHORTCUT_FILENAME); - shortcut.setIcon(icon); - shortcut.setRelativePath(relativePath); - shortcut.setWorkingDirectory(location); - shortcut.setModifyPath(true); - - return shortcut; - } - public static final String SHORTCUT_FILENAME = - ResourceUtils.getString(ConfigurationLogic.class, "CL.app.name") + ".desktop"; // NOI18N - public static final String[] SHORTCUT_CATEGORIES = - ResourceUtils.getString(ConfigurationLogic.class, "CL.app.categories").split(","); // NOI18N - public static final String BIN_SUBDIR = - "bin/"; - public static final String EXECUTABLE_WINDOWS = - BIN_SUBDIR - + ResourceUtils.getString(ConfigurationLogic.class, "CL.app.name") + (SystemUtils.isCurrentJava64Bit() ? "64" : "") + ".exe"; // NOI18N - public static final String EXECUTABLE_UNIX = - BIN_SUBDIR - + ResourceUtils.getString(ConfigurationLogic.class, "CL.app.name"); // NOI18N - public static final String ICON_WINDOWS = - EXECUTABLE_WINDOWS; - public static final String ICON_UNIX = - ResourceUtils.getString(ConfigurationLogic.class, - "CL.unix.icon.name"); // NOI18N - public static final String ICON_UNIX_RESOURCE = - ResourceUtils.getString(ConfigurationLogic.class, - "CL.unix.icon.resource"); // NOI18N - public static final String ICON_MACOSX = - ResourceUtils.getString(ConfigurationLogic.class, "CL.app.name") + ".icns"; // NOI18N - public static final String ICON_MACOSX_RESOURCE = - "org/mycompany/" + ResourceUtils.getString(ConfigurationLogic.class, "CL.app.name") + ".icns"; // NOI18N - public static final String WIZARD_COMPONENTS_URI = - "resource:" + // NOI18N - "org/mycompany/wizard.xml"; // NOI18N - private static final String DESKTOP_SHORTCUT_LOCATION_PROPERTY = - "desktop.shortcut.location"; // NOI18N - private static final String START_MENU_SHORTCUT_LOCATION_PROPERTY = - "start.menu.shortcut.location"; // NOI18N - private static final String ALL_USERS_PROPERTY_VALUE = - "all.users"; // NOI18N - private static final String CURRENT_USER_PROPERTY_VALUE = - "current.user"; // NOI18N -} diff --git a/nbi/stub/ext/components/products/helloworld/src/org/mycompany/wizard.xml b/nbi/stub/ext/components/products/helloworld/src/org/mycompany/wizard.xml deleted file mode 100644 index 6ce9f158e..000000000 --- a/nbi/stub/ext/components/products/helloworld/src/org/mycompany/wizard.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - diff --git a/nbi/stub/ext/components/products/helloworld/src/org/mycompany/wizard/panels/Bundle.properties b/nbi/stub/ext/components/products/helloworld/src/org/mycompany/wizard/panels/Bundle.properties deleted file mode 100644 index 11e94d694..000000000 --- a/nbi/stub/ext/components/products/helloworld/src/org/mycompany/wizard/panels/Bundle.properties +++ /dev/null @@ -1,51 +0,0 @@ -# -# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. -# -# Copyright 1997-2010 Oracle and/or its affiliates. All rights reserved. -# -# Oracle and Java are registered trademarks of Oracle and/or its affiliates. -# Other names may be trademarks of their respective owners. -# -# The contents of this file are subject to the terms of either the GNU General Public -# License Version 2 only ("GPL") or the Common Development and Distribution -# License("CDDL") (collectively, the "License"). You may not use this file except in -# compliance with the License. You can obtain a copy of the License at -# http://www.netbeans.org/cddl-gplv2.html or nbbuild/licenses/CDDL-GPL-2-CP. See the -# License for the specific language governing permissions and limitations under the -# License. When distributing the software, include this License Header Notice in -# each file and include the License file at nbbuild/licenses/CDDL-GPL-2-CP. Oracle -# designates this particular file as subject to the "Classpath" exception as provided -# by Oracle in the GPL Version 2 section of the License file that accompanied this code. -# If applicable, add the following below the License Header, with the fields enclosed -# by brackets [] replaced by your own identifying information: -# "Portions Copyrighted [year] [name of copyright owner]" -# -# Contributor(s): -# -# The Original Software is NetBeans. The Initial Developer of the Original Software -# is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun Microsystems, Inc. All -# Rights Reserved. -# -# If you wish your version of this file to be governed by only the CDDL or only the -# GPL Version 2, indicate your decision by adding "[Contributor] elects to include -# this software in this distribution under the [CDDL or GPL Version 2] license." If -# you do not indicate a single choice of license, a recipient has the option to -# distribute your version of this file under either the CDDL, the GPL Version 2 or -# to extend the choice of license to its licensees as provided above. However, if you -# add GPL Version 2 code and therefore, elected the GPL Version 2 license, then the -# option applies only if the new code is made subject to such option by the copyright -# holder. -# - -################################################################################ -# HelloWorldPanel.java -P.title={product-name} Installation -P.description=Choose destination folder. -P.destination.label.text=&Install {product-name} to: -P.destination.button.text=B&rowse..... - -P.create.desktop.shortcut=Create Desktop icon -P.create.start.menu.shortcut.windows=Create Start menu entry -P.create.start.menu.shortcut.unix=Create shortcut in Applications menu -P.create.start.menu.shortcut.macosx=Create icon in Dock - diff --git a/nbi/stub/ext/components/products/helloworld/src/org/mycompany/wizard/panels/HelloWorldPanel.java b/nbi/stub/ext/components/products/helloworld/src/org/mycompany/wizard/panels/HelloWorldPanel.java deleted file mode 100644 index d4c88237f..000000000 --- a/nbi/stub/ext/components/products/helloworld/src/org/mycompany/wizard/panels/HelloWorldPanel.java +++ /dev/null @@ -1,184 +0,0 @@ -package org.mycompany.wizard.panels; - -import java.awt.GridBagConstraints; -import java.awt.Insets; -import org.netbeans.installer.utils.ResourceUtils; -import org.netbeans.installer.utils.StringUtils; -import org.netbeans.installer.utils.SystemUtils; -import org.netbeans.installer.utils.helper.swing.NbiCheckBox; -import org.netbeans.installer.wizard.components.panels.DestinationPanel; -import org.netbeans.installer.wizard.containers.SwingContainer; -import org.netbeans.installer.wizard.ui.SwingUi; -import org.netbeans.installer.wizard.ui.WizardUi; - -/** - * - * @author Dmitry Lipin - */ -public class HelloWorldPanel extends DestinationPanel { - - public HelloWorldPanel() { - setProperty(TITLE_PROPERTY, - DEFAULT_TITLE); - setProperty(DESCRIPTION_PROPERTY, - DEFAULT_DESCRIPTION); - - setProperty(DESTINATION_LABEL_TEXT_PROPERTY, - DEFAULT_DESTINATION_LABEL_TEXT); - setProperty(DESTINATION_BUTTON_TEXT_PROPERTY, - DEFAULT_DESTINATION_BUTTON_TEXT); - } - - @Override - public WizardUi getWizardUi() { - if (wizardUi == null) { - wizardUi = new HelloWorldPanelUi(this); - } - - return wizardUi; - } - - @Override - public void initialize() { - super.initialize(); - if(getWizard().getProperty(CREATE_DESKTOP_SHORTCUT_PROPERTY) == null) { - getWizard().setProperty(CREATE_DESKTOP_SHORTCUT_PROPERTY, "" + true); - } - if(getWizard().getProperty(CREATE_START_MENU_SHORTCUT_PROPERTY) == null) { - getWizard().setProperty(CREATE_START_MENU_SHORTCUT_PROPERTY, "" + true); - } - } - - - public static class HelloWorldPanelUi extends DestinationPanelUi { - - protected HelloWorldPanel panel; - - public HelloWorldPanelUi(HelloWorldPanel panel) { - super(panel); - - - this.panel = panel; - } - - public SwingUi getSwingUi(SwingContainer container) { - if (swingUi == null) { - swingUi = new HelloWorldPanelSwingUi(panel, container); - } - - return super.getSwingUi(container); - } - } - - public static class HelloWorldPanelSwingUi extends DestinationPanelSwingUi { - - protected HelloWorldPanel panel; - private NbiCheckBox desktopShortcutComboBox; - private NbiCheckBox startMenuShortcutComboBox; - - public HelloWorldPanelSwingUi( - final HelloWorldPanel panel, - final SwingContainer container) { - super(panel, container); - - this.panel = panel; - - initComponents(); - } - - // protected //////////////////////////////////////////////////////////////// - @Override - protected void initialize() { - desktopShortcutComboBox.setText(CREATE_DESKTOP_SHORTCUT_NAME); - desktopShortcutComboBox.setSelected(false); - if(Boolean.parseBoolean(panel.getWizard().getProperty(CREATE_DESKTOP_SHORTCUT_PROPERTY))) { - desktopShortcutComboBox.doClick(); - } - - startMenuShortcutComboBox.setText( - SystemUtils.isWindows() ? CREATE_START_MENU_SHORTCUT_NAME_WINDOWS : - (SystemUtils.isMacOS() ? CREATE_START_MENU_SHORTCUT_NAME_MAC : - CREATE_START_MENU_SHORTCUT_NAME_UNIX)); - startMenuShortcutComboBox.setSelected(false); - if(Boolean.parseBoolean(panel.getWizard().getProperty(CREATE_START_MENU_SHORTCUT_PROPERTY))) { - startMenuShortcutComboBox.doClick(); - } - - super.initialize(); - } - - @Override - protected void saveInput() { - super.saveInput(); - panel.getWizard().setProperty( - CREATE_DESKTOP_SHORTCUT_PROPERTY, - StringUtils.EMPTY_STRING + desktopShortcutComboBox.isSelected()); - - panel.getWizard().setProperty( - CREATE_START_MENU_SHORTCUT_PROPERTY, - StringUtils.EMPTY_STRING + startMenuShortcutComboBox.isSelected()); - } - - @Override - protected String validateInput() { - String errorMessage = super.validateInput(); - return errorMessage; - } - - // private ////////////////////////////////////////////////////////////////// - private void initComponents() { - // selectedLocationField //////////////////////////////////////////////// - desktopShortcutComboBox = new NbiCheckBox(); - startMenuShortcutComboBox = new NbiCheckBox(); - - // this ///////////////////////////////////////////////////////////////// - add(desktopShortcutComboBox, new GridBagConstraints( - 0, 2, // x, y - 2, 1, // width, height - 1.0, 0.0, // weight-x, weight-y - GridBagConstraints.LINE_START, // anchor - GridBagConstraints.HORIZONTAL, // fill - new Insets(15, 11, 0, 11), // padding - 0, 0)); // padx, pady - ??? - add(startMenuShortcutComboBox, new GridBagConstraints( - 0, 3, // x, y - 2, 1, // width, height - 1.0, 0.0, // weight-x, weight-y - GridBagConstraints.LINE_START, // anchor - GridBagConstraints.HORIZONTAL, // fill - new Insets(7, 11, 0, 11), // padding - 0, 0)); // padx, pady - ??? - - } - } - ///////////////////////////////////////////////////////////////////////////////// - // Constants - public static final String DEFAULT_TITLE = - ResourceUtils.getString(HelloWorldPanel.class, - "P.title"); // NOI18N - public static final String DEFAULT_DESCRIPTION = - ResourceUtils.getString(HelloWorldPanel.class, - "P.description"); // NOI18N - public static final String DEFAULT_DESTINATION_LABEL_TEXT = - ResourceUtils.getString(HelloWorldPanel.class, - "P.destination.label.text"); // NOI18N - public static final String DEFAULT_DESTINATION_BUTTON_TEXT = - ResourceUtils.getString(HelloWorldPanel.class, - "P.destination.button.text"); // NOI18N - public static final String CREATE_DESKTOP_SHORTCUT_NAME = - ResourceUtils.getString(HelloWorldPanel.class, - "P.create.desktop.shortcut"); // NOI18N - public static final String CREATE_START_MENU_SHORTCUT_NAME_WINDOWS = - ResourceUtils.getString(HelloWorldPanel.class, - "P.create.start.menu.shortcut.windows"); // NOI18N - public static final String CREATE_START_MENU_SHORTCUT_NAME_UNIX = - ResourceUtils.getString(HelloWorldPanel.class, - "P.create.start.menu.shortcut.unix"); // NOI18N - public static final String CREATE_START_MENU_SHORTCUT_NAME_MAC = - ResourceUtils.getString(HelloWorldPanel.class, - "P.create.start.menu.shortcut.macosx"); // NOI18N - public static final String CREATE_DESKTOP_SHORTCUT_PROPERTY = - "create.desktop.shortcut"; - public static final String CREATE_START_MENU_SHORTCUT_PROPERTY = - "create.start.menu.shortcut"; -} diff --git a/nbi/stub/ext/components/products/jdk/build.xml b/nbi/stub/ext/components/products/jdk/build.xml deleted file mode 100644 index 07f2eba0b..000000000 --- a/nbi/stub/ext/components/products/jdk/build.xml +++ /dev/null @@ -1,74 +0,0 @@ - - - - - - - - - - - Builds, tests, and runs the project helloworld. - - - diff --git a/nbi/stub/ext/components/products/jdk/data/Bundle.properties b/nbi/stub/ext/components/products/jdk/data/Bundle.properties deleted file mode 100644 index 6290da03c..000000000 --- a/nbi/stub/ext/components/products/jdk/data/Bundle.properties +++ /dev/null @@ -1,42 +0,0 @@ -# -# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. -# -# Copyright 1997-2010 Oracle and/or its affiliates. All rights reserved. -# -# Oracle and Java are registered trademarks of Oracle and/or its affiliates. -# Other names may be trademarks of their respective owners. -# -# The contents of this file are subject to the terms of either the GNU General Public -# License Version 2 only ("GPL") or the Common Development and Distribution -# License("CDDL") (collectively, the "License"). You may not use this file except in -# compliance with the License. You can obtain a copy of the License at -# http://www.netbeans.org/cddl-gplv2.html or nbbuild/licenses/CDDL-GPL-2-CP. See the -# License for the specific language governing permissions and limitations under the -# License. When distributing the software, include this License Header Notice in -# each file and include the License file at nbbuild/licenses/CDDL-GPL-2-CP. Oracle -# designates this particular file as subject to the "Classpath" exception as provided -# by Oracle in the GPL Version 2 section of the License file that accompanied this code. -# If applicable, add the following below the License Header, with the fields enclosed -# by brackets [] replaced by your own identifying information: -# "Portions Copyrighted [year] [name of copyright owner]" -# -# Contributor(s): -# -# The Original Software is NetBeans. The Initial Developer of the Original Software -# is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun Microsystems, Inc. All -# Rights Reserved. -# -# If you wish your version of this file to be governed by only the CDDL or only the -# GPL Version 2, indicate your decision by adding "[Contributor] elects to include -# this software in this distribution under the [CDDL or GPL Version 2] license." If -# you do not indicate a single choice of license, a recipient has the option to -# distribute your version of this file under either the CDDL, the GPL Version 2 or -# to extend the choice of license to its licensees as provided above. However, if you -# add GPL Version 2 code and therefore, elected the GPL Version 2 license, then the -# option applies only if the new code is made subject to such option by the copyright -# holder. -# - -product.display.name={product-name} -product.description=The Java Development Kit in a version that is\ -compatible with jME3, needed for jME3 development. diff --git a/nbi/stub/ext/components/products/jdk/data/icon.png b/nbi/stub/ext/components/products/jdk/data/icon.png deleted file mode 100644 index a8c0f8c34..000000000 Binary files a/nbi/stub/ext/components/products/jdk/data/icon.png and /dev/null differ diff --git a/nbi/stub/ext/components/products/jdk/data/icon48.png b/nbi/stub/ext/components/products/jdk/data/icon48.png deleted file mode 100644 index 05a274758..000000000 Binary files a/nbi/stub/ext/components/products/jdk/data/icon48.png and /dev/null differ diff --git a/nbi/stub/ext/components/products/jdk/manifest.mf b/nbi/stub/ext/components/products/jdk/manifest.mf deleted file mode 100644 index 7dd53f8c1..000000000 --- a/nbi/stub/ext/components/products/jdk/manifest.mf +++ /dev/null @@ -1 +0,0 @@ -Configuration-Logic-Class: org.mycompany.ConfigurationLogic \ No newline at end of file diff --git a/nbi/stub/ext/components/products/jdk/nbproject/build-impl.xml b/nbi/stub/ext/components/products/jdk/nbproject/build-impl.xml deleted file mode 100644 index 83a446ac1..000000000 --- a/nbi/stub/ext/components/products/jdk/nbproject/build-impl.xml +++ /dev/null @@ -1,1788 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must set src.dir - Must set test.src.dir - Must set build.dir - Must set dist.dir - Must set build.classes.dir - Must set dist.javadoc.dir - Must set build.test.classes.dir - Must set build.test.results.dir - Must set build.classes.excludes - Must set dist.jar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must set javac.includes - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - No tests executed. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must set JVM to use for profiling in profiler.info.jvm - Must set profiler agent JVM arguments in profiler.info.jvmargs.agent - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must select some files in the IDE or set javac.includes - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - To run this application from the command line without Ant, try: - - java -jar "${dist.jar.resolved}" - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must select one file in the IDE or set run.class - - - - Must select one file in the IDE or set run.class - - - - - - - - - - - - - - - - - - - - - - - Must select one file in the IDE or set debug.class - - - - - Must select one file in the IDE or set debug.class - - - - - Must set fix.includes - - - - - - - - - - This target only works when run from inside the NetBeans IDE. - - - - - - - - - Must select one file in the IDE or set profile.class - This target only works when run from inside the NetBeans IDE. - - - - - - - - - This target only works when run from inside the NetBeans IDE. - - - - - - - - - - - - - This target only works when run from inside the NetBeans IDE. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must select one file in the IDE or set run.class - - - - - - Must select some files in the IDE or set test.includes - - - - - Must select one file in the IDE or set run.class - - - - - Must select one file in the IDE or set applet.url - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must select some files in the IDE or set javac.includes - - - - - - - - - - - - - - - - - - - - - - - - Some tests failed; see details above. - - - - - - - - - Must select some files in the IDE or set test.includes - - - - Some tests failed; see details above. - - - - Must select some files in the IDE or set test.class - Must select some method in the IDE or set test.method - - - - Some tests failed; see details above. - - - - - Must select one file in the IDE or set test.class - - - - Must select one file in the IDE or set test.class - Must select some method in the IDE or set test.method - - - - - - - - - - - - - - Must select one file in the IDE or set applet.url - - - - - - - - - Must select one file in the IDE or set applet.url - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/nbi/stub/ext/components/products/jdk/nbproject/genfiles.properties b/nbi/stub/ext/components/products/jdk/nbproject/genfiles.properties deleted file mode 100644 index 27c3575a9..000000000 --- a/nbi/stub/ext/components/products/jdk/nbproject/genfiles.properties +++ /dev/null @@ -1,8 +0,0 @@ -build.xml.data.CRC32=b5c7f54a -build.xml.script.CRC32=16bbb630 -build.xml.stylesheet.CRC32=be360661 -# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. -# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. -nbproject/build-impl.xml.data.CRC32=9bcaebf3 -nbproject/build-impl.xml.script.CRC32=40fcb09f -nbproject/build-impl.xml.stylesheet.CRC32=f89f7d21@1.94.0.48 diff --git a/nbi/stub/ext/components/products/jdk/nbproject/project.properties b/nbi/stub/ext/components/products/jdk/nbproject/project.properties deleted file mode 100644 index e44e95a03..000000000 --- a/nbi/stub/ext/components/products/jdk/nbproject/project.properties +++ /dev/null @@ -1,76 +0,0 @@ -application.title=JDK -application.vendor=dlm198383 -build.classes.dir=${build.dir}/classes -build.classes.excludes=**/*.java,**/*.form -# This directory is removed when the project is cleaned: -build.dir=build -build.generated.dir=${build.dir}/generated -build.generated.sources.dir=${build.dir}/generated-sources -# Only compile against the classpath explicitly listed here: -build.sysclasspath=ignore -build.test.classes.dir=${build.dir}/test/classes -build.test.results.dir=${build.dir}/test/results -debug.classpath=\ - ${run.classpath} -debug.modulepath=\ - ${run.modulepath} -debug.test.classpath=\ - ${run.test.classpath} -debug.test.modulepath=\ - ${run.test.modulepath} -# This directory is removed when the project is cleaned: -dist.dir=dist -dist.jar=${dist.dir}/JDK.jar -dist.javadoc.dir=${dist.dir}/javadoc -excludes= -includes=** -jar.compress=false -javac.classpath=\ - ${reference.Core_NBI_Engine.jar}:\ - ../../../../../antlib/nbi-engine.jar -# Space-separated list of extra javac options -javac.compilerargs= -javac.deprecation=false -javac.modulepath= -javac.processormodulepath= -javac.source=21 -javac.target=21 -javac.test.classpath=\ - ${javac.classpath}:\ - ${build.classes.dir}:\ - ${libs.junit.classpath}:\ - ${libs.junit_4.classpath} -javac.test.modulepath=\ - ${javac.modulepath} -javadoc.additionalparam= -javadoc.author=false -javadoc.encoding=${source.encoding} -javadoc.noindex=false -javadoc.nonavbar=false -javadoc.notree=false -javadoc.private=false -javadoc.splitindex=true -javadoc.use=true -javadoc.version=false -javadoc.windowtitle= -meta.inf.dir=${src.dir}/META-INF -platform.active=default_platform -project.Core_NBI_Engine=../../../../nbi/engine -reference.Core_NBI_Engine.jar=${project.Core_NBI_Engine}/dist/nbi-engine.jar -run.classpath=\ - ${javac.classpath}:\ - ${build.classes.dir} -# Space-separated list of JVM arguments used when running the project -# (you may also define separate properties like run-sys-prop.name=value instead of -Dname=value -# or test-sys-prop.name=value to set system properties for unit tests): -run.jvmargs= -run.modulepath=\ - ${javac.modulepath} -run.test.classpath=\ - ${javac.test.classpath}:\ - ${build.test.classes.dir} -run.test.modulepath=\ - ${javac.test.modulepath} -source.encoding=UTF-8 -src.dir=src -test.src.dir=test diff --git a/nbi/stub/ext/components/products/jdk/nbproject/project.xml b/nbi/stub/ext/components/products/jdk/nbproject/project.xml deleted file mode 100644 index b50d62283..000000000 --- a/nbi/stub/ext/components/products/jdk/nbproject/project.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - org.netbeans.modules.java.j2seproject - - - JDK - 1.6.5 - - - - - - - - - - Core_NBI_Engine - jar - - jar - clean - jar - - - - diff --git a/nbi/stub/ext/components/products/jdk/src/org/mycompany/Bundle.properties b/nbi/stub/ext/components/products/jdk/src/org/mycompany/Bundle.properties deleted file mode 100644 index e69de29bb..000000000 diff --git a/nbi/stub/ext/components/products/jdk/src/org/mycompany/ConfigurationLogic.java b/nbi/stub/ext/components/products/jdk/src/org/mycompany/ConfigurationLogic.java deleted file mode 100644 index 6169e65a6..000000000 --- a/nbi/stub/ext/components/products/jdk/src/org/mycompany/ConfigurationLogic.java +++ /dev/null @@ -1,82 +0,0 @@ -package org.mycompany; - -import java.util.List; -import java.util.ArrayList; -import org.netbeans.installer.product.components.ProductConfigurationLogic; -import org.netbeans.installer.utils.exceptions.InitializationException; -import org.netbeans.installer.utils.exceptions.InstallationException; -import org.netbeans.installer.utils.exceptions.UninstallationException; -import org.netbeans.installer.utils.helper.RemovalMode; -import org.netbeans.installer.utils.progress.Progress; -import org.netbeans.installer.wizard.Wizard; -import org.netbeans.installer.wizard.components.WizardComponent; -//normen - JDK launchers - -public class ConfigurationLogic extends ProductConfigurationLogic { - - private List wizardComponents; - - // constructor ////////////////////////////////////////////////////////////////// - public ConfigurationLogic() throws InitializationException { - /*wizardComponents = Wizard.loadWizardComponents( - WIZARD_COMPONENTS_URI, - getClass().getClassLoader());*/ - wizardComponents = new ArrayList<>(); - } - - public List getWizardComponents() { - return wizardComponents; - } - - @Override - public boolean allowModifyMode() { - return false; - } - - @Override - public void install(Progress progress) throws InstallationException { - } - - @Override - public void uninstall(Progress progress) throws UninstallationException { - progress.setPercentage(Progress.COMPLETE); - } - - @Override - public String getExecutable() { - return ""; - } - - @Override - public String getIcon() { - return ""; - } - - public RemovalMode getRemovalMode() { - return RemovalMode.LIST; - } - - @Override - public boolean registerInSystem() { - return false; - } - - @Override - public boolean requireLegalArtifactSaving() { - return false; - } - - @Override - public boolean requireDotAppForMacOs() { - return false; - } - - @Override - public boolean wrapForMacOs() { - return false; - } - - public static final String WIZARD_COMPONENTS_URI = - "resource:" + // NOI18N - "org/mycompany/wizard.xml"; // NOI18N -} diff --git a/nbi/stub/ext/engine/build.properties b/nbi/stub/ext/engine/build.properties deleted file mode 100644 index bbe1e3e41..000000000 --- a/nbi/stub/ext/engine/build.properties +++ /dev/null @@ -1,41 +0,0 @@ -# -# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. -# -# Copyright 1997-2010 Oracle and/or its affiliates. All rights reserved. -# -# Oracle and Java are registered trademarks of Oracle and/or its affiliates. -# Other names may be trademarks of their respective owners. -# -# The contents of this file are subject to the terms of either the GNU General Public -# License Version 2 only ("GPL") or the Common Development and Distribution -# License("CDDL") (collectively, the "License"). You may not use this file except in -# compliance with the License. You can obtain a copy of the License at -# http://www.netbeans.org/cddl-gplv2.html or nbbuild/licenses/CDDL-GPL-2-CP. See the -# License for the specific language governing permissions and limitations under the -# License. When distributing the software, include this License Header Notice in -# each file and include the License file at nbbuild/licenses/CDDL-GPL-2-CP. Oracle -# designates this particular file as subject to the "Classpath" exception as provided -# by Oracle in the GPL Version 2 section of the License file that accompanied this code. -# If applicable, add the following below the License Header, with the fields enclosed -# by brackets [] replaced by your own identifying information: -# "Portions Copyrighted [year] [name of copyright owner]" -# -# Contributor(s): -# -# The Original Software is NetBeans. The Initial Developer of the Original Software -# is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun Microsystems, Inc. All -# Rights Reserved. -# -# If you wish your version of this file to be governed by only the CDDL or only the -# GPL Version 2, indicate your decision by adding "[Contributor] elects to include -# this software in this distribution under the [CDDL or GPL Version 2] license." If -# you do not indicate a single choice of license, a recipient has the option to -# distribute your version of this file under either the CDDL, the GPL Version 2 or -# to extend the choice of license to its licensees as provided above. However, if you -# add GPL Version 2 code and therefore, elected the GPL Version 2 license, then the -# option applies only if the new code is made subject to such option by the copyright -# holder. -# - -jar.contents.list=data/engine.list -jar.contents.includes=native/** org/** com/apple/** data/clioptions.list data/engine*.properties diff --git a/nbi/stub/ext/engine/build.xml b/nbi/stub/ext/engine/build.xml deleted file mode 100644 index f49986b7d..000000000 --- a/nbi/stub/ext/engine/build.xml +++ /dev/null @@ -1,73 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - ${engine.files} - - - - - - diff --git a/nbi/stub/ext/engine/manifest.mf b/nbi/stub/ext/engine/manifest.mf deleted file mode 100644 index 464ca3d3f..000000000 --- a/nbi/stub/ext/engine/manifest.mf +++ /dev/null @@ -1,2 +0,0 @@ -Manifest-Version: 1.0 -Main-Class: org.netbeans.installer.Installer diff --git a/nbi/stub/ext/engine/nbproject/build-impl.xml b/nbi/stub/ext/engine/nbproject/build-impl.xml deleted file mode 100644 index da11c1cec..000000000 --- a/nbi/stub/ext/engine/nbproject/build-impl.xml +++ /dev/null @@ -1,1429 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must set src.dir - Must set test.src.dir - Must set build.dir - Must set dist.dir - Must set build.classes.dir - Must set dist.javadoc.dir - Must set build.test.classes.dir - Must set build.test.results.dir - Must set build.classes.excludes - Must set dist.jar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must set javac.includes - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - No tests executed. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must set JVM to use for profiling in profiler.info.jvm - Must set profiler agent JVM arguments in profiler.info.jvmargs.agent - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must select some files in the IDE or set javac.includes - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - To run this application from the command line without Ant, try: - - java -jar "${dist.jar.resolved}" - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must select one file in the IDE or set run.class - - - - Must select one file in the IDE or set run.class - - - - - - - - - - - - - - - - - - - - - - - Must select one file in the IDE or set debug.class - - - - - Must select one file in the IDE or set debug.class - - - - - Must set fix.includes - - - - - - - - - - This target only works when run from inside the NetBeans IDE. - - - - - - - - - Must select one file in the IDE or set profile.class - This target only works when run from inside the NetBeans IDE. - - - - - - - - - This target only works when run from inside the NetBeans IDE. - - - - - - - - - - - - - This target only works when run from inside the NetBeans IDE. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must select one file in the IDE or set run.class - - - - - - Must select some files in the IDE or set test.includes - - - - - Must select one file in the IDE or set run.class - - - - - Must select one file in the IDE or set applet.url - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must select some files in the IDE or set javac.includes - - - - - - - - - - - - - - - - - - - - Some tests failed; see details above. - - - - - - - - - Must select some files in the IDE or set test.includes - - - - Some tests failed; see details above. - - - - Must select some files in the IDE or set test.class - Must select some method in the IDE or set test.method - - - - Some tests failed; see details above. - - - - - Must select one file in the IDE or set test.class - - - - Must select one file in the IDE or set test.class - Must select some method in the IDE or set test.method - - - - - - - - - - - - - - Must select one file in the IDE or set applet.url - - - - - - - - - Must select one file in the IDE or set applet.url - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/nbi/stub/ext/engine/nbproject/genfiles.properties b/nbi/stub/ext/engine/nbproject/genfiles.properties deleted file mode 100644 index 98923c384..000000000 --- a/nbi/stub/ext/engine/nbproject/genfiles.properties +++ /dev/null @@ -1,8 +0,0 @@ -build.xml.data.CRC32=8f661a73 -build.xml.script.CRC32=f2f0e306 -build.xml.stylesheet.CRC32=a12b3d02 -# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. -# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. -nbproject/build-impl.xml.data.CRC32=a04276f0 -nbproject/build-impl.xml.script.CRC32=1db81ade -nbproject/build-impl.xml.stylesheet.CRC32=876e7a8f@1.75.2.48 diff --git a/nbi/stub/ext/engine/nbproject/private/private.xml b/nbi/stub/ext/engine/nbproject/private/private.xml deleted file mode 100644 index 8505fc191..000000000 --- a/nbi/stub/ext/engine/nbproject/private/private.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/nbi/stub/ext/engine/nbproject/project.properties b/nbi/stub/ext/engine/nbproject/project.properties deleted file mode 100644 index 199c16a3d..000000000 --- a/nbi/stub/ext/engine/nbproject/project.properties +++ /dev/null @@ -1,104 +0,0 @@ -# -# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. -# -# Copyright 1997-2010 Oracle and/or its affiliates. All rights reserved. -# -# Oracle and Java are registered trademarks of Oracle and/or its affiliates. -# Other names may be trademarks of their respective owners. -# -# The contents of this file are subject to the terms of either the GNU General Public -# License Version 2 only ("GPL") or the Common Development and Distribution -# License("CDDL") (collectively, the "License"). You may not use this file except in -# compliance with the License. You can obtain a copy of the License at -# http://www.netbeans.org/cddl-gplv2.html or nbbuild/licenses/CDDL-GPL-2-CP. See the -# License for the specific language governing permissions and limitations under the -# License. When distributing the software, include this License Header Notice in -# each file and include the License file at nbbuild/licenses/CDDL-GPL-2-CP. Oracle -# designates this particular file as subject to the "Classpath" exception as provided -# by Oracle in the GPL Version 2 section of the License file that accompanied this code. -# If applicable, add the following below the License Header, with the fields enclosed -# by brackets [] replaced by your own identifying information: -# "Portions Copyrighted [year] [name of copyright owner]" -# -# Contributor(s): -# -# The Original Software is NetBeans. The Initial Developer of the Original Software -# is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun Microsystems, Inc. All -# Rights Reserved. -# -# If you wish your version of this file to be governed by only the CDDL or only the -# GPL Version 2, indicate your decision by adding "[Contributor] elects to include -# this software in this distribution under the [CDDL or GPL Version 2] license." If -# you do not indicate a single choice of license, a recipient has the option to -# distribute your version of this file under either the CDDL, the GPL Version 2 or -# to extend the choice of license to its licensees as provided above. However, if you -# add GPL Version 2 code and therefore, elected the GPL Version 2 license, then the -# option applies only if the new code is made subject to such option by the copyright -# holder. -# - -application.title=NetBeans Installer Engine -application.vendor=ks152834 -build.classes.dir=${build.dir}/classes -build.classes.excludes=**/*.java,**/*.form -# This directory is removed when the project is cleaned: -build.dir=build -build.generated.dir=${build.dir}/generated -build.generated.sources.dir=${build.dir}/generated-sources -# Only compile against the classpath explicitly listed here: -build.sysclasspath=ignore -build.test.classes.dir=${build.dir}/test/classes -build.test.results.dir=${build.dir}/test/results -debug.classpath=\ - ${run.classpath} -debug.test.classpath=\ - ${run.test.classpath} -# This directory is removed when the project is cleaned: -dist.dir=dist -dist.jar=${dist.dir}/nbi-engine.jar -dist.javadoc.dir=${dist.dir}/javadoc -excludes= -file.reference.reglib-src=../../reglib/src -includes=** -jar.compress=false -javac.classpath=\ - ${reference.NBI_Engine.jar}:\ - ../../../antlib/nbi-engine.jar -# Space-separated list of extra javac options -javac.compilerargs= -javac.deprecation=false -javac.source=10 -javac.target=10 -javac.test.classpath=\ - ${javac.classpath}:\ - ${build.classes.dir}:\ - ${libs.junit.classpath} -javadoc.additionalparam= -javadoc.author=false -javadoc.encoding= -javadoc.noindex=false -javadoc.nonavbar=false -javadoc.notree=false -javadoc.private=false -javadoc.splitindex=true -javadoc.use=true -javadoc.version=false -javadoc.windowtitle= -main.class=org.netbeans.installer.Installer -manifest.file=manifest.mf -meta.inf.dir=${src.dir}/META-INF -platform.active=default_platform -project.NBI_Engine=../../nbi/engine -reference.NBI_Engine.jar=${project.NBI_Engine}/dist/nbi-engine.jar -run.classpath=\ - ${build.classes.dir} -# Space-separated list of JVM arguments used when running the project -# (you may also define separate properties like run-sys-prop.name=value instead of -Dname=value -# or test-sys-prop.name=value to set system properties for unit tests): -run.jvmargs=-Dnbi.product.bundled.registry.uri=file:/D:/temp/nbi-build/dist/registry-temp/registry.xml -run.test.classpath=\ - ${javac.test.classpath}:\ - ${build.test.classes.dir} -source.encoding=UTF-8 -src.dir=src -test.src.dir=test diff --git a/nbi/stub/ext/engine/nbproject/project.xml b/nbi/stub/ext/engine/nbproject/project.xml deleted file mode 100644 index 3d5888d98..000000000 --- a/nbi/stub/ext/engine/nbproject/project.xml +++ /dev/null @@ -1,64 +0,0 @@ - - - - org.netbeans.modules.java.j2seproject - - - HelloWorld Engine - 1.6.5 - - - - - - - - - - NBI_Engine - jar - - jar - clean - jar - - - - diff --git a/nbi/stub/ext/engine/src/data/engine.properties b/nbi/stub/ext/engine/src/data/engine.properties deleted file mode 100644 index bd92d3a37..000000000 --- a/nbi/stub/ext/engine/src/data/engine.properties +++ /dev/null @@ -1,89 +0,0 @@ - -# -# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. -# -# Copyright 1997-2010 Oracle and/or its affiliates. All rights reserved. -# -# Oracle and Java are registered trademarks of Oracle and/or its affiliates. -# Other names may be trademarks of their respective owners. -# -# The contents of this file are subject to the terms of either the GNU General Public -# License Version 2 only ("GPL") or the Common Development and Distribution -# License("CDDL") (collectively, the "License"). You may not use this file except in -# compliance with the License. You can obtain a copy of the License at -# http://www.netbeans.org/cddl-gplv2.html or nbbuild/licenses/CDDL-GPL-2-CP. See the -# License for the specific language governing permissions and limitations under the -# License. When distributing the software, include this License Header Notice in -# each file and include the License file at nbbuild/licenses/CDDL-GPL-2-CP. Oracle -# designates this particular file as subject to the "Classpath" exception as provided -# by Oracle in the GPL Version 2 section of the License file that accompanied this code. -# If applicable, add the following below the License Header, with the fields enclosed -# by brackets [] replaced by your own identifying information: -# "Portions Copyrighted [year] [name of copyright owner]" -# -# Contributor(s): -# -# The Original Software is NetBeans. The Initial Developer of the Original Software -# is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun Microsystems, Inc. All -# Rights Reserved. -# -# If you wish your version of this file to be governed by only the CDDL or only the -# GPL Version 2, indicate your decision by adding "[Contributor] elects to include -# this software in this distribution under the [CDDL or GPL Version 2] license." If -# you do not indicate a single choice of license, a recipient has the option to -# distribute your version of this file under either the CDDL, the GPL Version 2 or -# to extend the choice of license to its licensees as provided above. However, if you -# add GPL Version 2 code and therefore, elected the GPL Version 2 license, then the -# option applies only if the new code is made subject to such option by the copyright -# holder. -# - -nbi.wizard.components.instance.uri=resource:org/mycompany/installer/wizard/wizard-components.xml -nbi.wizard.ui.swing.frame.icon=resource:org/mycompany/installer/wizard/wizard-icon.png -nbi.wizard.ui.swing.frame.title.prefix= {product-name} Installer -nbi.wizard.ui.swing.frame.title.pattern={0} -nbi.macosx.application.directory.name={product-name} Installer -nbi.product.remove.corrupted.products.silently=true - -nbi.wizard.ui.swing.frame.head.right.image=resource:org/mycompany/installer/wizard/wizard-description-background-right.png -nbi.wizard.ui.swing.frame.head.left.image=resource:org/mycompany/installer/wizard/wizard-description-background-left.png - -nbi.wizard.ui.swing.welcome.left.top.image=resource:org/mycompany/installer/wizard/components/panels/resources/welcome-left-top.png -nbi.wizard.ui.swing.welcome.left.bottom.image=resource:org/mycompany/installer/wizard/components/panels/resources/welcome-left-bottom.png - -nbi.local.directory.path=$S{user.home}/.{product-uid}-installer - -nbi.wizard.ui.swing.frame.width.default=600 -nbi.wizard.ui.swing.frame.height.default=500 -nbi.wizard.ui.swing.frame.width.win.classic=588 -nbi.wizard.ui.swing.frame.height.win.classic=442 -nbi.wizard.ui.swing.frame.width.win.xp=600 -nbi.wizard.ui.swing.frame.height.win.xp=450 -nbi.wizard.ui.swing.frame.width.motif=624 -nbi.wizard.ui.swing.frame.height.motif=470 -nbi.wizard.ui.swing.frame.width.metal=624 -nbi.wizard.ui.swing.frame.height.metal=470 -nbi.wizard.ui.swing.frame.width.aqua=640 -nbi.wizard.ui.swing.frame.height.aqua=480 -nbi.wizard.ui.swing.frame.width.gtk=704 -nbi.wizard.ui.swing.frame.height.gtk=528 -nbi.wizard.ui.swing.frame.width.nimbus=624 -nbi.wizard.ui.swing.frame.height.nimbus=512 - - -nbi.wizard.ui.swing.frame.minimum.width.default=600 -nbi.wizard.ui.swing.frame.minimum.height.default=500 -nbi.wizard.ui.swing.frame.minimum.width.win.classic=588 -nbi.wizard.ui.swing.frame.minimum.height.win.classic=442 -nbi.wizard.ui.swing.frame.minimum.width.win.xp=600 -nbi.wizard.ui.swing.frame.minimum.height.win.xp=450 -nbi.wizard.ui.swing.frame.minimum.width.motif=624 -nbi.wizard.ui.swing.frame.minimum.height.motif=470 -nbi.wizard.ui.swing.frame.minimum.width.metal=624 -nbi.wizard.ui.swing.frame.minimum.height.metal=470 -nbi.wizard.ui.swing.frame.minimum.width.aqua=640 -nbi.wizard.ui.swing.frame.minimum.height.aqua=480 -nbi.wizard.ui.swing.frame.minimum.width.gtk=704 -nbi.wizard.ui.swing.frame.minimum.height.gtk=528 -nbi.wizard.ui.swing.frame.minimum.width.nimbus=624 -nbi.wizard.ui.swing.frame.minimum.height.nimbus=512 diff --git a/nbi/stub/ext/engine/src/native/launcher/unix/i18n/launcher.properties b/nbi/stub/ext/engine/src/native/launcher/unix/i18n/launcher.properties deleted file mode 100644 index 82243321b..000000000 --- a/nbi/stub/ext/engine/src/native/launcher/unix/i18n/launcher.properties +++ /dev/null @@ -1,71 +0,0 @@ -# -# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. -# -# Copyright 1997-2010 Oracle and/or its affiliates. All rights reserved. -# -# Oracle and Java are registered trademarks of Oracle and/or its affiliates. -# Other names may be trademarks of their respective owners. -# -# The contents of this file are subject to the terms of either the GNU General Public -# License Version 2 only ("GPL") or the Common Development and Distribution -# License("CDDL") (collectively, the "License"). You may not use this file except in -# compliance with the License. You can obtain a copy of the License at -# http://www.netbeans.org/cddl-gplv2.html or nbbuild/licenses/CDDL-GPL-2-CP. See the -# License for the specific language governing permissions and limitations under the -# License. When distributing the software, include this License Header Notice in -# each file and include the License file at nbbuild/licenses/CDDL-GPL-2-CP. Oracle -# designates this particular file as subject to the "Classpath" exception as provided -# by Oracle in the GPL Version 2 section of the License file that accompanied this code. -# If applicable, add the following below the License Header, with the fields enclosed -# by brackets [] replaced by your own identifying information: -# "Portions Copyrighted [year] [name of copyright owner]" -# -# Contributor(s): -# -# The Original Software is NetBeans. The Initial Developer of the Original Software -# is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun Microsystems, Inc. All -# Rights Reserved. -# -# If you wish your version of this file to be governed by only the CDDL or only the -# GPL Version 2, indicate your decision by adding "[Contributor] elects to include -# this software in this distribution under the [CDDL or GPL Version 2] license." If -# you do not indicate a single choice of license, a recipient has the option to -# distribute your version of this file under either the CDDL, the GPL Version 2 or -# to extend the choice of license to its licensees as provided above. However, if you -# add GPL Version 2 code and therefore, elected the GPL Version 2 license, then the -# option applies only if the new code is made subject to such option by the copyright -# holder. -# - -nlu.jvm.notfoundmessage=Java SE Development Kit (JDK) was not found on this computer\nJDK 6 is required for installing {product-name}. Make sure that the JDK is properly installed and run installer again.\nYou can specify valid JDK location using {0} installer argument.\n\nTo download the JDK, visit http://java.sun.com/javase/downloads -nlu.jvm.usererror=Java Runtime Environment (JRE) was not found at the specified location {0} -nlu.jvm.uncompatible=Unsupported JVM version at {0}.\nTry to specify another JVM location using parameter {1} -nlu.freespace=There is not enough free disk space to extract installation data\n{0} MB of free disk space is required in a temporary folder.\nClean up the disk space and run installer again. You can specify a temporary folder with sufficient disk space using {1} installer argument -nlu.integrity=\nInstaller file {0} seems to be corrupted -nlu.missing.external.resource=Can`t run {product-name} Installer.\nAn external file with necessary data is required but missing:\n{0} -nlu.cannot.create.tmpdir=Cannot create temporary directory {0} -nlu.cannot.extract.bundled.jvm=Cannot extract bundled JVM -nlu.cannot.unpack.jvm.file=Cannot unpack file {0} -nlu.error.verify.bundled.jvm=Cannot verify bundled JVM, try to search JVM on the system - -nlu.running=Running the installer wizard... -nlu.starting=Configuring the installer... -nlu.extracting=Extracting installation data... -nlu.prepare.jvm=Preparing bundled JVM ... -nlu.jvm.search=Searching for JVM on the system... - -nlu.msg.usage=\nUsage: -nlu.arg.javahome=\t{0}\t\tUsing java from for running application -nlu.arg.verbose=\t{0}\t\tUse verbose output -nlu.arg.output=\t{0}\t\tRedirect all output to file -nlu.arg.disable.space.check=\t{0}\t\tDisable free space check -nlu.arg.extract=\t{0}\t[dir]\tExtract all bundled data to .\n\t\t\t\tIf is not specified then extract to the current directory -nlu.arg.tempdir=\t{0}\t\tUse for extracting temporary data -nlu.arg.cpa=\t{0} \tAppend classpath with -nlu.arg.cpp=\t{0} \tPrepend classpath with -nlu.arg.locale=\t{0}\t\tOverride default locale with specified -nlu.arg.silent=\t{0}\t\tRun installer silently -nlu.arg.help=\t{0}\t\tShow this help - - -nlu.java.application.name.macosx={product-name} Installer diff --git a/nbi/stub/ext/engine/src/native/launcher/windows/i18n/launcher.properties b/nbi/stub/ext/engine/src/native/launcher/windows/i18n/launcher.properties deleted file mode 100644 index 16b66faf3..000000000 --- a/nbi/stub/ext/engine/src/native/launcher/windows/i18n/launcher.properties +++ /dev/null @@ -1,74 +0,0 @@ -# -# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. -# -# Copyright 1997-2010 Oracle and/or its affiliates. All rights reserved. -# -# Oracle and Java are registered trademarks of Oracle and/or its affiliates. -# Other names may be trademarks of their respective owners. -# -# The contents of this file are subject to the terms of either the GNU General Public -# License Version 2 only ("GPL") or the Common Development and Distribution -# License("CDDL") (collectively, the "License"). You may not use this file except in -# compliance with the License. You can obtain a copy of the License at -# http://www.netbeans.org/cddl-gplv2.html or nbbuild/licenses/CDDL-GPL-2-CP. See the -# License for the specific language governing permissions and limitations under the -# License. When distributing the software, include this License Header Notice in -# each file and include the License file at nbbuild/licenses/CDDL-GPL-2-CP. Oracle -# designates this particular file as subject to the "Classpath" exception as provided -# by Oracle in the GPL Version 2 section of the License file that accompanied this code. -# If applicable, add the following below the License Header, with the fields enclosed -# by brackets [] replaced by your own identifying information: -# "Portions Copyrighted [year] [name of copyright owner]" -# -# Contributor(s): -# -# The Original Software is NetBeans. The Initial Developer of the Original Software -# is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun Microsystems, Inc. All -# Rights Reserved. -# -# If you wish your version of this file to be governed by only the CDDL or only the -# GPL Version 2, indicate your decision by adding "[Contributor] elects to include -# this software in this distribution under the [CDDL or GPL Version 2] license." If -# you do not indicate a single choice of license, a recipient has the option to -# distribute your version of this file under either the CDDL, the GPL Version 2 or -# to extend the choice of license to its licensees as provided above. However, if you -# add GPL Version 2 code and therefore, elected the GPL Version 2 license, then the -# option applies only if the new code is made subject to such option by the copyright -# holder. -# - -nlw.jvm.notfoundmessage=Java SE Development Kit (JDK) was not found on this computer\nJDK 6 is required for installing {product-name}. Make sure that the JDK is properly installed and run installer again. You can specify valid JDK location using {0} installer argument.\n\nTo download the JDK, visit http://java.sun.com/javase/downloads -nlw.jvm.usererror=Java Runtime Environment (JRE) was not found\nThere is no JRE at the specified location {0} -nlw.jvm.unsupportedversion=Unsupported Java VM version\nThe Java VM at {0} has the unsupported version -nlw.freespace=There is not enough free disk space to extract installation data\n{0} MB of free disk space is required in a temporary folder. Clean up the disk space and run installer again. You can specify a temporary folder with sufficient disk space using {1} installer argument -nlw.tmpdir=Can't create temporary directory\nThe temporary directory for extracting data {0} was not created -nlw.integrity=Installer file is corrupted\nInstaller file {0} seems to be corrupted -nlw.output.error=Data extraction error\nCan't create file {0}!\nThe following error occured :\n{1} -nlw.java.process.error=An error occured while running java process\n{0} -nlw.missing.external.resource=Can`t run {product-name} Installer.\nAn external file with necessary data is required but missing:\n{0} -nlw.bundled.jvm.extract.error=Cannot prepare bundled JVM to run the installer.\nMost probably the bundled JVM is not compatible with the current platform. -nlw.bundled.jvm.verify.error=An error occured while verifying bundled JVM.\nMost probably the bundled JVM is not compatible with the current platform. - -nlw.arg.output={0} \n\tRedirect output to file -nlw.arg.javahome={0} \n\tRun jar file using JVM from -nlw.arg.verbose={0}\n\tUse verbose output -nlw.arg.tempdir={0} \n\tUse for extracting data -nlw.arg.extract={0} [directory]\n\tExtract all bundled data to the specific directory.\n\tIf directory is not specified then extract to the current directory -nlw.arg.classpatha={0} \n\tAppend classpath with -nlw.arg.classpathp={0} \n\tPrepend classpath with -nlw.arg.disable.space.check={0}\n\tDisable free space check -nlw.arg.locale={0} \n\tOverride system default locale with -nlw.arg.silent={0} \n\tRun installer silently -nlw.arg.help={0}\n\tShow help message - - -nlw.msg.create.tmpdir=Creating temporary directory ... -nlw.msg.extract=Extracting data ... -nlw.msg.jvmsearch=Finding JVM on your system ... -nlw.msg.setoptions=Setting command options ... -nlw.msg.running=Running JVM ... -nlw.msg.title=Please wait while the launcher prepares data to run the installer ... -nlw.msg.messagebox.title={product-name} Installer -nlw.msg.progress.title=Configuring the installer ... -nlw.msg.button.error=Exit Installer -nlw.msg.main.title={product-name} Installer diff --git a/nbi/stub/ext/engine/src/org/mycompany/installer/utils/applications/Bundle.properties b/nbi/stub/ext/engine/src/org/mycompany/installer/utils/applications/Bundle.properties deleted file mode 100644 index ece892d53..000000000 --- a/nbi/stub/ext/engine/src/org/mycompany/installer/utils/applications/Bundle.properties +++ /dev/null @@ -1,43 +0,0 @@ -# -# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. -# -# Copyright 1997-2010 Oracle and/or its affiliates. All rights reserved. -# -# Oracle and Java are registered trademarks of Oracle and/or its affiliates. -# Other names may be trademarks of their respective owners. -# -# The contents of this file are subject to the terms of either the GNU General Public -# License Version 2 only ("GPL") or the Common Development and Distribution -# License("CDDL") (collectively, the "License"). You may not use this file except in -# compliance with the License. You can obtain a copy of the License at -# http://www.netbeans.org/cddl-gplv2.html or nbbuild/licenses/CDDL-GPL-2-CP. See the -# License for the specific language governing permissions and limitations under the -# License. When distributing the software, include this License Header Notice in -# each file and include the License file at nbbuild/licenses/CDDL-GPL-2-CP. Oracle -# designates this particular file as subject to the "Classpath" exception as provided -# by Oracle in the GPL Version 2 section of the License file that accompanied this code. -# If applicable, add the following below the License Header, with the fields enclosed -# by brackets [] replaced by your own identifying information: -# "Portions Copyrighted [year] [name of copyright owner]" -# -# Contributor(s): -# -# The Original Software is NetBeans. The Initial Developer of the Original Software -# is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun Microsystems, Inc. All -# Rights Reserved. -# -# If you wish your version of this file to be governed by only the CDDL or only the -# GPL Version 2, indicate your decision by adding "[Contributor] elects to include -# this software in this distribution under the [CDDL or GPL Version 2] license." If -# you do not indicate a single choice of license, a recipient has the option to -# distribute your version of this file under either the CDDL, the GPL Version 2 or -# to extend the choice of license to its licensees as provided above. However, if you -# add GPL Version 2 code and therefore, elected the GPL Version 2 license, then the -# option applies only if the new code is made subject to such option by the copyright -# holder. -# - -############################################################################ -# NetBeansRCPUtils.java - -NU.error.cannot.get.userdir=Can`t get application userdir from {0} diff --git a/nbi/stub/ext/engine/src/org/mycompany/installer/utils/applications/NetBeansRCPUtils.java b/nbi/stub/ext/engine/src/org/mycompany/installer/utils/applications/NetBeansRCPUtils.java deleted file mode 100644 index d0e2e0914..000000000 --- a/nbi/stub/ext/engine/src/org/mycompany/installer/utils/applications/NetBeansRCPUtils.java +++ /dev/null @@ -1,191 +0,0 @@ -/* - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. - * - * Copyright 1997-2010 Oracle and/or its affiliates. All rights reserved. - * - * Oracle and Java are registered trademarks of Oracle and/or its affiliates. - * Other names may be trademarks of their respective owners. - * - * The contents of this file are subject to the terms of either the GNU General - * Public License Version 2 only ("GPL") or the Common Development and Distribution - * License("CDDL") (collectively, the "License"). You may not use this file except in - * compliance with the License. You can obtain a copy of the License at - * http://www.netbeans.org/cddl-gplv2.html or nbbuild/licenses/CDDL-GPL-2-CP. See the - * License for the specific language governing permissions and limitations under the - * License. When distributing the software, include this License Header Notice in - * each file and include the License file at nbbuild/licenses/CDDL-GPL-2-CP. Oracle - * designates this particular file as subject to the "Classpath" exception as - * provided by Oracle in the GPL Version 2 section of the License file that - * accompanied this code. If applicable, add the following below the License Header, - * with the fields enclosed by brackets [] replaced by your own identifying - * information: "Portions Copyrighted [year] [name of copyright owner]" - * - * Contributor(s): - * - * The Original Software is NetBeans. The Initial Developer of the Original Software - * is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun Microsystems, Inc. All - * Rights Reserved. - * - * If you wish your version of this file to be governed by only the CDDL or only the - * GPL Version 2, indicate your decision by adding "[Contributor] elects to include - * this software in this distribution under the [CDDL or GPL Version 2] license." If - * you do not indicate a single choice of license, a recipient has the option to - * distribute your version of this file under either the CDDL, the GPL Version 2 or - * to extend the choice of license to its licensees as provided above. However, if - * you add GPL Version 2 code and therefore, elected the GPL Version 2 license, then - * the option applies only if the new code is made subject to such option by the - * copyright holder. - */ - -package org.mycompany.installer.utils.applications; - -import java.io.File; -import java.io.FilenameFilter; -import java.io.IOException; -import java.util.regex.Matcher; -import java.util.regex.Pattern; -import org.netbeans.installer.utils.FileUtils; -import org.netbeans.installer.utils.LogManager; -import org.netbeans.installer.utils.ResourceUtils; -import org.netbeans.installer.utils.StringUtils; -import org.netbeans.installer.utils.SystemUtils; -import org.netbeans.installer.utils.exceptions.NativeException; -import org.netbeans.installer.utils.system.WindowsNativeUtils; -import org.netbeans.installer.utils.system.WindowsNativeUtils; -import org.netbeans.installer.utils.system.windows.WindowsRegistry; - -/** - * - * @author Dmitry Lipin - */ -public class NetBeansRCPUtils { - - - /** - * Get resolved application user directory - * @param appLocation Application home directory - * @throws IOException if can`t get application default userdir - */ - public static File getApplicationUserDirFile(File appLocation) throws IOException { - String dir = getApplicationUserDir(appLocation); - String userHome = System.getProperty("user.home"); - if(SystemUtils.isWindows()) { - WindowsNativeUtils wnu = (WindowsNativeUtils) SystemUtils.getNativeUtils(); - WindowsRegistry reg = wnu.getWindowsRegistry(); - String key = "Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders"; - try { - if(reg.keyExists(reg.HKCU, key) && - reg.valueExists(reg.HKCU, key, "AppData")) { - userHome = reg.getStringValue(reg.HKCU, key, "AppData", false); - - } - } catch (NativeException e) { - LogManager.log(e); - } - } - dir = dir.replace(USER_HOME_TOKEN, userHome); - dir = dir.replace(APPNAME_TOKEN, getApplicationName(appLocation)); - return new File(dir); - } - - /** - * Get application user directory as it is written in application`s configuration file - * @param appLocation Application home directory - * @throws IOException if can`t get default userdir - */ - public static String getApplicationUserDir(File appLocation) throws IOException { - File []confFiles = new File(appLocation, "etc").listFiles(new FilenameFilter() { - - public boolean accept(File dir, String name) { - return name.endsWith(".conf"); - } - }); - File conf = null; - if(confFiles.length == 1) { - conf = confFiles[0]; - } else if(confFiles.length >2) { - for(File f : confFiles) { - String prefix = f.getName().substring(0, f.getName().indexOf(".conf")); - if((SystemUtils.isUnix() && new File(appLocation, "bin/" + prefix).exists()) || - (SystemUtils.isWindows() && new File(appLocation, "bin/" + prefix + ".exe").exists())) { - conf = f; - break; - } - } - } - if(conf == null) { - return null; - } - - String contents = FileUtils.readFile(conf); - Matcher matcher = Pattern.compile( - NEW_LINE_PATTERN + SPACES_PATTERN + - (SystemUtils.isMacOS() ? DEFAULT_USERDIR_MAC : DEFAULT_USERDIR) + - "\"(.*?)\"").matcher(contents); - if(matcher.find() && matcher.groupCount() == 1) { - return matcher.group(1); - } else { - throw new IOException(StringUtils.format( - ERROR_CANNOT_GET_USERDIR_STRING,conf)); - } - } - - /** - * Get application name - i.e. in bin/.exe and etc/.conf - * @param appLocation Application home directory - */ - public static String getApplicationName(File appLocation) { - File []confFiles = new File(appLocation, "etc").listFiles(new FilenameFilter() { - - public boolean accept(File dir, String name) { - return name.endsWith(".conf"); - } - }); - - if(confFiles.length == 1) { - String name = confFiles[0].getName(); - return name.substring(0, name.indexOf(".conf")); - } else if(confFiles.length >2) { - for(File f : confFiles) { - String name = f.getName(); - String prefix = name.substring(0, name.indexOf(".conf")); - if((SystemUtils.isUnix() && new File(appLocation, "bin/" + prefix).exists()) || - (SystemUtils.isWindows() && new File(appLocation, "bin/" + prefix + ".exe").exists())) { - return prefix; - } - } - } - return null; - } - - - ///////////////////////////////////////////////////////////////////////////////// - // Instance - private NetBeansRCPUtils() { - // does nothing - } - - ///////////////////////////////////////////////////////////////////////////////// - // Constants - - public static final String NEW_LINE_PATTERN = - "[\r\n|\n|\r]"; // NOI18N - public static final String SPACES_PATTERN = - "\\ *"; // NOI18N - - public static final String DEFAULT_USERDIR = - "default_userdir="; // NOI18N - public static final String DEFAULT_USERDIR_MAC = - "default_mac_userdir="; // NOI18N - - public static final String USER_HOME_TOKEN = - "${HOME}"; // NOI18N - public static final String APPNAME_TOKEN = - "${APPNAME}"; // NOI18N - - public static final String ERROR_CANNOT_GET_USERDIR_STRING = - ResourceUtils.getString(NetBeansRCPUtils.class, - "NU.error.cannot.get.userdir");//NOI18N - - -} diff --git a/nbi/stub/ext/engine/src/org/mycompany/installer/wizard/components/actions/Bundle.properties b/nbi/stub/ext/engine/src/org/mycompany/installer/wizard/components/actions/Bundle.properties deleted file mode 100644 index 12de891ea..000000000 --- a/nbi/stub/ext/engine/src/org/mycompany/installer/wizard/components/actions/Bundle.properties +++ /dev/null @@ -1,3 +0,0 @@ -IA.title=Installer Initialization -IA.progress.title=Initialization in progress... -IA.description=Please wait while initialization is completed. \ No newline at end of file diff --git a/nbi/stub/ext/engine/src/org/mycompany/installer/wizard/components/actions/CopyInstallLocationAction.java b/nbi/stub/ext/engine/src/org/mycompany/installer/wizard/components/actions/CopyInstallLocationAction.java deleted file mode 100644 index 549610bb0..000000000 --- a/nbi/stub/ext/engine/src/org/mycompany/installer/wizard/components/actions/CopyInstallLocationAction.java +++ /dev/null @@ -1,105 +0,0 @@ -/* - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. - * - * Copyright 1997-2010 Oracle and/or its affiliates. All rights reserved. - * - * Oracle and Java are registered trademarks of Oracle and/or its affiliates. - * Other names may be trademarks of their respective owners. - * - * The contents of this file are subject to the terms of either the GNU General - * Public License Version 2 only ("GPL") or the Common Development and Distribution - * License("CDDL") (collectively, the "License"). You may not use this file except in - * compliance with the License. You can obtain a copy of the License at - * http://www.netbeans.org/cddl-gplv2.html or nbbuild/licenses/CDDL-GPL-2-CP. See the - * License for the specific language governing permissions and limitations under the - * License. When distributing the software, include this License Header Notice in - * each file and include the License file at nbbuild/licenses/CDDL-GPL-2-CP. Oracle - * designates this particular file as subject to the "Classpath" exception as - * provided by Oracle in the GPL Version 2 section of the License file that - * accompanied this code. If applicable, add the following below the License Header, - * with the fields enclosed by brackets [] replaced by your own identifying - * information: "Portions Copyrighted [year] [name of copyright owner]" - * - * Contributor(s): - * - * The Original Software is NetBeans. The Initial Developer of the Original Software - * is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun Microsystems, Inc. All - * Rights Reserved. - * - * If you wish your version of this file to be governed by only the CDDL or only the - * GPL Version 2, indicate your decision by adding "[Contributor] elects to include - * this software in this distribution under the [CDDL or GPL Version 2] license." If - * you do not indicate a single choice of license, a recipient has the option to - * distribute your version of this file under either the CDDL, the GPL Version 2 or - * to extend the choice of license to its licensees as provided above. However, if - * you add GPL Version 2 code and therefore, elected the GPL Version 2 license, then - * the option applies only if the new code is made subject to such option by the - * copyright holder. - */ -package org.mycompany.installer.wizard.components.actions; - -import java.io.File; -import org.netbeans.installer.utils.SystemUtils; -import org.netbeans.installer.product.components.Product; -import org.netbeans.installer.utils.ResourceUtils; -import org.netbeans.installer.wizard.components.WizardAction; - -/** - * - * @author Normen Hansen - */ -public class CopyInstallLocationAction extends WizardAction { - ///////////////////////////////////////////////////////////////////////////////// - // Instance - - final Product from, to; - - public CopyInstallLocationAction(Product from, Product to) { - this.from = from; - this.to = to; - setProperty(TITLE_PROPERTY, - DEFAULT_TITLE); - setProperty(DESCRIPTION_PROPERTY, - DEFAULT_DESCRIPTION); - - } - - public void execute() { - File fromFile = from.getInstallationLocation(); - File toFile; - String name = to.getUid(); - if (SystemUtils.isMacOS()) { - toFile = new File( - fromFile.getPath() + - "/Contents/Resources/" + - fromFile.getName().replace(".app", "") + - "/" + - name); - } else { - toFile = new File(fromFile.getPath() + File.separator + name); - } - if (toFile != null) { - to.setInstallationLocation(toFile); - } - } - - @Override - public boolean isCancelable() { - return false; - } - - public WizardActionUi getWizardUi() { - return null; // this action does not have a ui - } - ///////////////////////////////////////////////////////////////////////////////// - // Constants - public static final String DEFAULT_TITLE = ResourceUtils.getString( - CopyInstallLocationAction.class, - "IA.title"); // NOI18N - public static final String PROGRESS_TITLE_PROPERTY = ResourceUtils.getString( - CopyInstallLocationAction.class, - "IA.progress.title"); // NOI18N - public static final String DEFAULT_DESCRIPTION = ResourceUtils.getString( - CopyInstallLocationAction.class, - "IA.description"); // NOI18N -} diff --git a/nbi/stub/ext/engine/src/org/mycompany/installer/wizard/components/actions/InitializeAction.java b/nbi/stub/ext/engine/src/org/mycompany/installer/wizard/components/actions/InitializeAction.java deleted file mode 100644 index be955d7d2..000000000 --- a/nbi/stub/ext/engine/src/org/mycompany/installer/wizard/components/actions/InitializeAction.java +++ /dev/null @@ -1,112 +0,0 @@ -/* - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. - * - * Copyright 1997-2010 Oracle and/or its affiliates. All rights reserved. - * - * Oracle and Java are registered trademarks of Oracle and/or its affiliates. - * Other names may be trademarks of their respective owners. - * - * The contents of this file are subject to the terms of either the GNU General - * Public License Version 2 only ("GPL") or the Common Development and Distribution - * License("CDDL") (collectively, the "License"). You may not use this file except in - * compliance with the License. You can obtain a copy of the License at - * http://www.netbeans.org/cddl-gplv2.html or nbbuild/licenses/CDDL-GPL-2-CP. See the - * License for the specific language governing permissions and limitations under the - * License. When distributing the software, include this License Header Notice in - * each file and include the License file at nbbuild/licenses/CDDL-GPL-2-CP. Oracle - * designates this particular file as subject to the "Classpath" exception as - * provided by Oracle in the GPL Version 2 section of the License file that - * accompanied this code. If applicable, add the following below the License Header, - * with the fields enclosed by brackets [] replaced by your own identifying - * information: "Portions Copyrighted [year] [name of copyright owner]" - * - * Contributor(s): - * - * The Original Software is NetBeans. The Initial Developer of the Original Software - * is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun Microsystems, Inc. All - * Rights Reserved. - * - * If you wish your version of this file to be governed by only the CDDL or only the - * GPL Version 2, indicate your decision by adding "[Contributor] elects to include - * this software in this distribution under the [CDDL or GPL Version 2] license." If - * you do not indicate a single choice of license, a recipient has the option to - * distribute your version of this file under either the CDDL, the GPL Version 2 or - * to extend the choice of license to its licensees as provided above. However, if - * you add GPL Version 2 code and therefore, elected the GPL Version 2 license, then - * the option applies only if the new code is made subject to such option by the - * copyright holder. - */ - -package org.mycompany.installer.wizard.components.actions; - -import org.netbeans.installer.product.Registry; -import org.netbeans.installer.utils.StringUtils; -import org.netbeans.installer.utils.helper.ErrorLevel; -import org.netbeans.installer.utils.ErrorManager; -import org.netbeans.installer.utils.ResourceUtils; -import org.netbeans.installer.utils.progress.Progress; -import org.netbeans.installer.wizard.components.WizardAction; -import org.netbeans.installer.wizard.components.actions.*; - -/** - * - * @author Dmitry Lipin - */ -public class InitializeAction extends WizardAction { - ///////////////////////////////////////////////////////////////////////////////// - // Instance - public InitializeAction() { - setProperty(TITLE_PROPERTY, - DEFAULT_TITLE); - setProperty(DESCRIPTION_PROPERTY, - DEFAULT_DESCRIPTION); - - downloadLogic = new DownloadConfigurationLogicAction(); - initReg = new InitializeRegistryAction(); - } - private DownloadConfigurationLogicAction downloadLogic; - private InitializeRegistryAction initReg; - - public void execute() { - final Progress progress = new Progress(); - - //getWizardUi().setProgress(progress); - - - progress.setTitle(getProperty(PROGRESS_TITLE_PROPERTY)); - - //progress.synchronizeDetails(false); - - if (initReg.canExecuteForward()) { - initReg.setWizard(getWizard()); - initReg.execute(); - } - - if (downloadLogic.canExecuteForward()) { - downloadLogic.setWizard(getWizard()); - downloadLogic.execute(); - } - } - - @Override - public boolean isCancelable() { - return false; - } - - public WizardActionUi getWizardUi() { - return null; // this action does not have a ui - } - - ///////////////////////////////////////////////////////////////////////////////// - // Constants - public static final String DEFAULT_TITLE = ResourceUtils.getString( - InitializeAction.class, - "IA.title"); // NOI18N - public static final String PROGRESS_TITLE_PROPERTY = ResourceUtils.getString( - InitializeAction.class, - "IA.progress.title"); // NOI18N - public static final String DEFAULT_DESCRIPTION = ResourceUtils.getString( - InitializeAction.class, - "IA.description"); // NOI18N - -} diff --git a/nbi/stub/ext/engine/src/org/mycompany/installer/wizard/components/panels/Bundle.properties b/nbi/stub/ext/engine/src/org/mycompany/installer/wizard/components/panels/Bundle.properties deleted file mode 100644 index 336b6a3c5..000000000 --- a/nbi/stub/ext/engine/src/org/mycompany/installer/wizard/components/panels/Bundle.properties +++ /dev/null @@ -1,94 +0,0 @@ -WP.title={product-name} Introduction -WP.description={product-name} -WP.welcome.text=\ -

Welcome to the {product-name} Installer Wizard


\ - This program will install the {product-name} on your computer.

\ - Click Next to continue. -WP.already.installed.text=\ -

Welcome to the {product-name} Installer Wizard


\ -{0} is already installed at {1}.
It is not possible to install it again.

\ -Click Exit to close this wizard. -WP.already.installed.next.button.text=&Exit -WP.incompatible.platform.text=\ -

Welcome to the {product-name} Installer Wizard


\ -The {0} installer was not designed to run on this operating system so it is not possible to install it. \ -Please run the installer for the appropriate platform.

\ -Click Exit to close this wizard. - -PoISP.title=Setup Complete -PoISP.description=Click Finish to finish {product-name} setup. - -PoISP.message.text.success=\ - Installation Complete


\ - {0} has been installed on your computer. -#NOI18N -PoISP.message.content.type.success=text/html - -PoISP.message.text.warnings=\ -Installation Complete


\ -{0} has been installed on your computer but some not critical warnings were encountered.\ -

For more details consult the installation log file:
{1}
- -PoISP.message.text.finish=Click Finish to close this wizard. -PoISP.message.text.finish.content.type=text/html - -#NOI18N -PoISP.message.content.type.warnings=text/html - -PoISP.message.text.errors=Installation Failed


\ - {0} has not been installed on your computer.

\ - Try to run installer again or consult the installation log file for more details:
{1} -#NOI18N -PoISP.message.content.type.errors=text/html - -PoISP.message.text.success.uninstall=\ - Uninstallation Complete


\ - {0} has been uninstalled. -#NOI18N -PoISP.message.content.type.success.uninstall=text/html - -PoISP.message.text.warnings.uninstall=\ - Uninstallation Complete


\ - {0} has been uninstalled with warnings.

\ - For more details consult the installation log file:
{1}
-#NOI18N -PoISP.message.content.type.warnings.uninstall=text/html - -PoISP.message.text.errors.uninstall=Uninstallation Failed

\ -Uninstallation of {0} was not completed.

\ -Try to run uninstaller again or consult the uninstallation log file for more details:
{1}
\ - -#NOI18N -PoISP.message.content.type.errors.uninstall=text/html - -PoISP.message.run.application.now=Launch {0} after the installer closes. - -PoISP.next.button.text=&Finish - - - -################################################################################ -# PreInstallSummaryPanel.java -PrISP.title=Summary -PrISP.description=Click Install to start the installation. -PrISP.description.uninstall=Click Uninstall to start the uninstallation. - -PrISP.installation.folder={0} Installation Folder: -PrISP.uninstall.list.label.text=
Click Uninstall to remove {0} from the system. -PrISP.installation.size=Total Installation Size: -PrISP.download.size=Total Download Size: - -PrISP.next.button.text=&Install -PrISP.next.button.text.uninstall=&Uninstall - -PrISP.error.not.enough.space=Insufficient disk space for proper installation. Additional {1} is required in {0}. -PrISP.error.cannot.check.space=Cannot check the free disk space -PrISP.error.logic.access=Could not access product's configuration logic -PrISP.error.fsroots=Cannot get the list of file system roots -PrISP.error.non.existent.root={0} is set up to be installed to {1} which does not belong to any of the file system roots. -PrISP.error.cannot.write=The wizard does not have write access to {1}, the installation directory of {0}. Please correct the permissions before proceeding. - -PrISP.remove.app.userdir.text=\ -\ -If you wish to remove the application settings directory that stores user configuration data for {0}, check the following option.
-PrISP.remove.app.userdir.checkbox=Remove directory {0} diff --git a/nbi/stub/ext/engine/src/org/mycompany/installer/wizard/components/panels/PostInstallSummaryPanel.java b/nbi/stub/ext/engine/src/org/mycompany/installer/wizard/components/panels/PostInstallSummaryPanel.java deleted file mode 100644 index bfdb93cc5..000000000 --- a/nbi/stub/ext/engine/src/org/mycompany/installer/wizard/components/panels/PostInstallSummaryPanel.java +++ /dev/null @@ -1,463 +0,0 @@ -/* - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. - * - * Copyright 1997-2010 Oracle and/or its affiliates. All rights reserved. - * - * Oracle and Java are registered trademarks of Oracle and/or its affiliates. - * Other names may be trademarks of their respective owners. - * - * The contents of this file are subject to the terms of either the GNU General - * Public License Version 2 only ("GPL") or the Common Development and Distribution - * License("CDDL") (collectively, the "License"). You may not use this file except in - * compliance with the License. You can obtain a copy of the License at - * http://www.netbeans.org/cddl-gplv2.html or nbbuild/licenses/CDDL-GPL-2-CP. See the - * License for the specific language governing permissions and limitations under the - * License. When distributing the software, include this License Header Notice in - * each file and include the License file at nbbuild/licenses/CDDL-GPL-2-CP. Oracle - * designates this particular file as subject to the "Classpath" exception as - * provided by Oracle in the GPL Version 2 section of the License file that - * accompanied this code. If applicable, add the following below the License Header, - * with the fields enclosed by brackets [] replaced by your own identifying - * information: "Portions Copyrighted [year] [name of copyright owner]" - * - * Contributor(s): - * - * The Original Software is NetBeans. The Initial Developer of the Original Software - * is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun Microsystems, Inc. All - * Rights Reserved. - * - * If you wish your version of this file to be governed by only the CDDL or only the - * GPL Version 2, indicate your decision by adding "[Contributor] elects to include - * this software in this distribution under the [CDDL or GPL Version 2] license." If - * you do not indicate a single choice of license, a recipient has the option to - * distribute your version of this file under either the CDDL, the GPL Version 2 or - * to extend the choice of license to its licensees as provided above. However, if - * you add GPL Version 2 code and therefore, elected the GPL Version 2 license, then - * the option applies only if the new code is made subject to such option by the - * copyright holder. - */ -package org.mycompany.installer.wizard.components.panels; - -import java.awt.GridBagConstraints; -import java.awt.Insets; -import java.awt.event.WindowAdapter; -import java.awt.event.WindowEvent; -import java.io.File; -import java.io.IOException; -import java.util.LinkedList; -import java.util.List; -import org.netbeans.installer.product.Registry; -import org.netbeans.installer.product.components.Product; -import org.netbeans.installer.product.components.ProductConfigurationLogic; -import org.netbeans.installer.utils.LogManager; -import org.netbeans.installer.utils.ResourceUtils; -import org.netbeans.installer.utils.StringUtils; -import org.netbeans.installer.utils.exceptions.InitializationException; -import org.netbeans.installer.utils.helper.swing.NbiCheckBox; -import org.netbeans.installer.utils.helper.swing.NbiTextPane; -import org.netbeans.installer.wizard.components.WizardPanel; -import org.netbeans.installer.wizard.containers.SwingContainer; -import org.netbeans.installer.wizard.containers.SwingFrameContainer; -import org.netbeans.installer.wizard.ui.SwingUi; -import org.netbeans.installer.wizard.ui.WizardUi; -import static org.netbeans.installer.utils.helper.DetailedStatus.INSTALLED_SUCCESSFULLY; -import static org.netbeans.installer.utils.helper.DetailedStatus.INSTALLED_WITH_WARNINGS; -import static org.netbeans.installer.utils.helper.DetailedStatus.FAILED_TO_INSTALL; -import static org.netbeans.installer.utils.helper.DetailedStatus.UNINSTALLED_SUCCESSFULLY; -import static org.netbeans.installer.utils.helper.DetailedStatus.UNINSTALLED_WITH_WARNINGS; -import static org.netbeans.installer.utils.helper.DetailedStatus.FAILED_TO_UNINSTALL; - -/** - * - * @author Dmitry Lipin - */ -public class PostInstallSummaryPanel extends WizardPanel { - ///////////////////////////////////////////////////////////////////////////////// - // Instance - - public PostInstallSummaryPanel() { - setProperty(TITLE_PROPERTY, - DEFAULT_TITLE); - setProperty(DESCRIPTION_PROPERTY, - DEFAULT_DESCRIPTION); - - setProperty(MESSAGE_TEXT_SUCCESS_PROPERTY, - DEFAULT_MESSAGE_TEXT_SUCCESS); - setProperty(MESSAGE_CONTENT_TYPE_SUCCESS_PROPERTY, - DEFAULT_MESSAGE_CONTENT_TYPE_SUCCESS); - setProperty(MESSAGE_TEXT_WARNINGS_PROPERTY, - DEFAULT_MESSAGE_TEXT_WARNINGS); - setProperty(MESSAGE_CONTENT_TYPE_WARNINGS_PROPERTY, - DEFAULT_MESSAGE_CONTENT_TYPE_WARNINGS); - setProperty(MESSAGE_TEXT_ERRORS_PROPERTY, - DEFAULT_MESSAGE_TEXT_ERRORS); - setProperty(MESSAGE_CONTENT_TYPE_ERRORS_PROPERTY, - DEFAULT_MESSAGE_CONTENT_TYPE_ERRORS); - - setProperty(MESSAGE_TEXT_SUCCESS_UNINSTALL_PROPERTY, - DEFAULT_MESSAGE_TEXT_SUCCESS_UNINSTALL); - setProperty(MESSAGE_CONTENT_TYPE_SUCCESS_UNINSTALL_PROPERTY, - DEFAULT_MESSAGE_CONTENT_TYPE_SUCCESS_UNINSTALL); - setProperty(MESSAGE_TEXT_WARNINGS_UNINSTALL_PROPERTY, - DEFAULT_MESSAGE_TEXT_WARNINGS_UNINSTALL); - setProperty(MESSAGE_CONTENT_TYPE_WARNINGS_UNINSTALL_PROPERTY, - DEFAULT_MESSAGE_CONTENT_TYPE_WARNINGS_UNINSTALL); - setProperty(MESSAGE_TEXT_ERRORS_UNINSTALL_PROPERTY, - DEFAULT_MESSAGE_TEXT_ERRORS_UNINSTALL); - setProperty(MESSAGE_CONTENT_TYPE_ERRORS_UNINSTALL_PROPERTY, - DEFAULT_MESSAGE_CONTENT_TYPE_ERRORS_UNINSTALL); - - - setProperty(NEXT_BUTTON_TEXT_PROPERTY, - DEFAULT_NEXT_BUTTON_TEXT); - } - - @Override - public boolean isPointOfNoReturn() { - return true; - } - - @Override - public WizardUi getWizardUi() { - if (wizardUi == null) { - wizardUi = new PostInstallSummaryPanelUi(this); - } - - return wizardUi; - } - - ///////////////////////////////////////////////////////////////////////////////// - // Inner Classes - public static class PostInstallSummaryPanelUi extends WizardPanelUi { - - protected PostInstallSummaryPanel component; - - public PostInstallSummaryPanelUi(PostInstallSummaryPanel component) { - super(component); - - this.component = component; - } - - public SwingUi getSwingUi(SwingContainer container) { - if (swingUi == null) { - swingUi = new PostInstallSummaryPanelSwingUi(component, container); - } - - return super.getSwingUi(container); - } - } - - public static class PostInstallSummaryPanelSwingUi extends WizardPanelSwingUi { - - protected PostInstallSummaryPanel component; - private NbiTextPane messagePaneInstall; - private NbiTextPane messagePaneUninstall; - - - private NbiTextPane messagePaneFinish; - private NbiCheckBox runAppNow; - private Product app; - - public PostInstallSummaryPanelSwingUi( - final PostInstallSummaryPanel component, - final SwingContainer container) { - super(component, container); - - this.component = component; - - initComponents(); - } - - protected void initializeContainer() { - super.initializeContainer(); - - // set up the back button - container.getBackButton().setVisible(false); - container.getBackButton().setEnabled(false); - - // set up the next (or finish) button - container.getNextButton().setVisible(true); - container.getNextButton().setEnabled(true); - - container.getNextButton().setText( - component.getProperty(NEXT_BUTTON_TEXT_PROPERTY)); - - // set up the cancel button - container.getCancelButton().setVisible(false); - container.getCancelButton().setEnabled(false); - } - - @Override - public void evaluateNextButtonClick() { - container.getNextButton().setEnabled(false); - final Product product = app; - if (app != null) { - ProductConfigurationLogic l = null; - try { - l = app.getLogic(); - } catch (InitializationException e) { - } - final File executable = l != null ? new File(app.getInstallationLocation(), l.getExecutable()) : null; - - /* normen: remove app start - if (executable != null && runAppNow.isSelected()) { - LogManager.log("... running: " + executable.getAbsolutePath()); - ProcessBuilder pb = new ProcessBuilder(new String[]{executable.getAbsolutePath()}); - try { - pb.start(); - } catch (IOException e) { - LogManager.log(e); - } - - } - */ - } - super.evaluateNextButtonClick(); - } - - protected void initialize() { - final Registry registry = Registry.getInstance(); - final List successfulInstall = registry.getProducts(INSTALLED_SUCCESSFULLY); - final List warningInstall = registry.getProducts(INSTALLED_WITH_WARNINGS); - final List errorInstall = registry.getProducts(FAILED_TO_INSTALL); - - final List successfulUninstall = registry.getProducts(UNINSTALLED_SUCCESSFULLY); - final List warningUninstall = registry.getProducts(UNINSTALLED_WITH_WARNINGS); - final List errorUninstall = registry.getProducts(FAILED_TO_UNINSTALL); - - if (errorInstall.size() > 0) { - messagePaneInstall.setContentType(component.getProperty(MESSAGE_CONTENT_TYPE_ERRORS_PROPERTY)); - messagePaneInstall.setText(StringUtils.format( - component.getProperty(MESSAGE_TEXT_ERRORS_PROPERTY), - errorInstall.get(0).getDisplayName(), - LogManager.getLogFile())); - } else if (warningInstall.size() > 0) { - messagePaneInstall.setContentType(component.getProperty(MESSAGE_CONTENT_TYPE_WARNINGS_PROPERTY)); - messagePaneInstall.setText(StringUtils.format( - component.getProperty(MESSAGE_TEXT_WARNINGS_PROPERTY), - warningInstall.get(0).getDisplayName(), - LogManager.getLogFile())); - } else if (successfulInstall.size() > 0) { - messagePaneInstall.setContentType(component.getProperty(MESSAGE_CONTENT_TYPE_SUCCESS_PROPERTY)); - messagePaneInstall.setText(StringUtils.format( - component.getProperty(MESSAGE_TEXT_SUCCESS_PROPERTY), - successfulInstall.get(0).getDisplayName(), - LogManager.getLogFile())); - } else { - messagePaneInstall.setVisible(false); - } - - messagePaneFinish.setVisible(true); - messagePaneFinish.setContentType(DEFAULT_MESSAGE_FINISH_PROCESS_CONTENT_TYPE); - messagePaneFinish.setText(DEFAULT_MESSAGE_FINISH_PROCESS); - - if (errorUninstall.size() > 0) { - messagePaneUninstall.setContentType(component.getProperty(MESSAGE_CONTENT_TYPE_ERRORS_UNINSTALL_PROPERTY)); - messagePaneUninstall.setText(StringUtils.format( - component.getProperty(MESSAGE_TEXT_ERRORS_UNINSTALL_PROPERTY), - errorUninstall.get(0).getDisplayName(), - LogManager.getLogFile())); - } else if (warningUninstall.size() > 0) { - messagePaneUninstall.setContentType(component.getProperty(MESSAGE_CONTENT_TYPE_WARNINGS_UNINSTALL_PROPERTY)); - messagePaneUninstall.setText(StringUtils.format( - component.getProperty(MESSAGE_TEXT_WARNINGS_UNINSTALL_PROPERTY), - warningUninstall.get(0).getDisplayName(), - LogManager.getLogFile())); - } else if (successfulUninstall.size() > 0) { - messagePaneUninstall.setContentType(component.getProperty(MESSAGE_CONTENT_TYPE_SUCCESS_UNINSTALL_PROPERTY)); - messagePaneUninstall.setText(StringUtils.format( - component.getProperty(MESSAGE_TEXT_SUCCESS_UNINSTALL_PROPERTY), - successfulUninstall.get(0).getDisplayName(), - LogManager.getLogFile())); - } else { - messagePaneUninstall.setVisible(false); - } - - - - final List products = new LinkedList(); - products.addAll(successfulInstall); - products.addAll(warningInstall); - /* normen: remove app start - runAppNow.setSelected(false); - if (!products.isEmpty()) { - runAppNow.setText(StringUtils.format(DEFAULT_MESSAGE_LAUNCH_APPLICATION_NOW, - products.get(0).getDisplayName())); - runAppNow.doClick(); - app = products.get(0); - } else { - runAppNow.setVisible(false); - } - */ - - - } - - private void initComponents() { - // messagePaneInstall /////////////////////////////////////////////////// - messagePaneInstall = new NbiTextPane(); - - // messagePaneUninstall ///////////////////////////////////////////////// - messagePaneUninstall = new NbiTextPane(); - - // messagePaneRunApplication /////////////////////////////////////////////////// - - - messagePaneFinish = new NbiTextPane(); - - //normen: remove checkbox to start - //runAppNow = new NbiCheckBox(); - - - // this ///////////////////////////////////////////////////////////////// - add(messagePaneInstall, new GridBagConstraints( - 0, 0, // x, y - 1, 1, // width, height - 1.0, 0.0, // weight-x, weight-y - GridBagConstraints.PAGE_START, // anchor - GridBagConstraints.HORIZONTAL, // fill - new Insets(31, 11, 0, 11), // padding - 0, 0)); // padx, pady - ??? - add(messagePaneUninstall, new GridBagConstraints( - 0, 1, // x, y - 1, 1, // width, height - 1.0, 0.0, // weight-x, weight-y - GridBagConstraints.PAGE_START, // anchor - GridBagConstraints.BOTH, // fill - new Insets(31, 11, 0, 11), // padding - 0, 0)); // padx, pady - ??? - - add(messagePaneFinish, new GridBagConstraints( - 0, 3, // x, y - 1, 1, // width, height - 1.0, 1.0, // weight-x, weight-y - GridBagConstraints.PAGE_START, // anchor - GridBagConstraints.HORIZONTAL, // fill - new Insets(11, 11, 0, 11), // padding - 0, 0)); // padx, pady - ??? - /* - add(new NbiPanel(), new GridBagConstraints( - 0, 4, // x, y - 1, 1, // width, height - 1.0, 1.0, // weight-x, weight-y - GridBagConstraints.CENTER, // anchor - GridBagConstraints.BOTH, // fill - new Insets(0, 11, 0, 11), // padding - 0, 0)); // padx, pady - ??? - */ - /* normen: remove app start - add(runAppNow, new GridBagConstraints( - 0, 4, // x, y - 1, 1, // width, height - 1.0, 1.0, // weight-x, weight-y - GridBagConstraints.PAGE_START, // anchor - GridBagConstraints.HORIZONTAL, // fill - new Insets(11, 11, 0, 11), // padding - 0, 0)); // padx, pady - ??? - */ - - - if (container instanceof SwingFrameContainer) { - final SwingFrameContainer sfc = (SwingFrameContainer) container; - sfc.addWindowListener(new WindowAdapter() { - - @Override - public void windowClosing(WindowEvent event) { - SwingUi currentUi = component.getWizardUi().getSwingUi(container); - if (currentUi != null) { - if (!container.getCancelButton().isEnabled() && // cancel button is disabled - !container.getCancelButton().isVisible() && // no cancel button at this panel - !container.getBackButton().isVisible() && // no back button at this panel - container.getNextButton().isVisible() && // next button is visible - container.getNextButton().isEnabled()) { // and enabled - currentUi.evaluateNextButtonClick(); - sfc.removeWindowListener(this); - } - } - } - }); - } - } - } - ///////////////////////////////////////////////////////////////////////////////// - // Constants - public static final String MESSAGE_TEXT_SUCCESS_PROPERTY = - "message.text.success"; // NOI18N - public static final String MESSAGE_CONTENT_TYPE_SUCCESS_PROPERTY = - "message.content.type.success"; // NOI18N - public static final String MESSAGE_TEXT_WARNINGS_PROPERTY = - "message.text.warnings"; // NOI18N - public static final String MESSAGE_CONTENT_TYPE_WARNINGS_PROPERTY = - "message.content.type.warnings"; // NOI18N - public static final String MESSAGE_TEXT_ERRORS_PROPERTY = - "message.text.errors"; // NOI18N - public static final String MESSAGE_CONTENT_TYPE_ERRORS_PROPERTY = - "message.content.type.errors"; // NOI18N - public static final String MESSAGE_TEXT_SUCCESS_UNINSTALL_PROPERTY = - "message.text.success.uninstall"; // NOI18N - public static final String MESSAGE_CONTENT_TYPE_SUCCESS_UNINSTALL_PROPERTY = - "message.content.type.success.uninstall"; // NOI18N - public static final String MESSAGE_TEXT_WARNINGS_UNINSTALL_PROPERTY = - "message.text.warnings.uninstall"; // NOI18N - public static final String MESSAGE_CONTENT_TYPE_WARNINGS_UNINSTALL_PROPERTY = - "message.content.type.warnings.uninstall"; // NOI18N - public static final String MESSAGE_TEXT_ERRORS_UNINSTALL_PROPERTY = - "message.text.errors.uninstall"; // NOI18N - public static final String MESSAGE_CONTENT_TYPE_ERRORS_UNINSTALL_PROPERTY = - "message.content.type.errors.uninstall"; // NOI18N - public static final String DEFAULT_MESSAGE_TEXT_SUCCESS = - ResourceUtils.getString(PostInstallSummaryPanel.class, - "PoISP.message.text.success"); // NOI18N - public static final String DEFAULT_MESSAGE_CONTENT_TYPE_SUCCESS = - ResourceUtils.getString(PostInstallSummaryPanel.class, - "PoISP.message.content.type.success"); // NOI18N - public static final String DEFAULT_MESSAGE_TEXT_WARNINGS = - ResourceUtils.getString(PostInstallSummaryPanel.class, - "PoISP.message.text.warnings"); // NOI18N - public static final String DEFAULT_MESSAGE_CONTENT_TYPE_WARNINGS = - ResourceUtils.getString(PostInstallSummaryPanel.class, - "PoISP.message.content.type.warnings"); // NOI18N - public static final String DEFAULT_MESSAGE_TEXT_ERRORS = - ResourceUtils.getString(PostInstallSummaryPanel.class, - "PoISP.message.text.errors"); // NOI18N - public static final String DEFAULT_MESSAGE_CONTENT_TYPE_ERRORS = - ResourceUtils.getString(PostInstallSummaryPanel.class, - "PoISP.message.content.type.errors"); // NOI18N - public static final String DEFAULT_MESSAGE_TEXT_SUCCESS_UNINSTALL = - ResourceUtils.getString(PostInstallSummaryPanel.class, - "PoISP.message.text.success.uninstall"); // NOI18N - public static final String DEFAULT_MESSAGE_CONTENT_TYPE_SUCCESS_UNINSTALL = - ResourceUtils.getString(PostInstallSummaryPanel.class, - "PoISP.message.content.type.success.uninstall"); // NOI18N - public static final String DEFAULT_MESSAGE_TEXT_WARNINGS_UNINSTALL = - ResourceUtils.getString(PostInstallSummaryPanel.class, - "PoISP.message.text.warnings.uninstall"); // NOI18N - public static final String DEFAULT_MESSAGE_CONTENT_TYPE_WARNINGS_UNINSTALL = - ResourceUtils.getString(PostInstallSummaryPanel.class, - "PoISP.message.content.type.warnings.uninstall"); // NOI18N - public static final String DEFAULT_MESSAGE_TEXT_ERRORS_UNINSTALL = - ResourceUtils.getString(PostInstallSummaryPanel.class, - "PoISP.message.text.errors.uninstall"); // NOI18N - public static final String DEFAULT_MESSAGE_CONTENT_TYPE_ERRORS_UNINSTALL = - ResourceUtils.getString(PostInstallSummaryPanel.class, - "PoISP.message.content.type.errors.uninstall"); // NOI18N - - public static final String DEFAULT_TITLE = ResourceUtils.getString( - PostInstallSummaryPanel.class, - "PoISP.title"); // NOI18N - public static final String DEFAULT_DESCRIPTION = - ResourceUtils.getString(PostInstallSummaryPanel.class, - "PoISP.description"); // NOI18N - public static final String DEFAULT_NEXT_BUTTON_TEXT = - ResourceUtils.getString(PostInstallSummaryPanel.class, - "PoISP.next.button.text"); // NOI18N - public static final String DEFAULT_MESSAGE_FINISH_PROCESS = - ResourceUtils.getString(PostInstallSummaryPanel.class, - "PoISP.message.text.finish"); // NOI18N - public static final String DEFAULT_MESSAGE_FINISH_PROCESS_CONTENT_TYPE = - ResourceUtils.getString(PostInstallSummaryPanel.class, - "PoISP.message.text.finish.content.type"); // NOI18N - public static final String DEFAULT_MESSAGE_LAUNCH_APPLICATION_NOW = - ResourceUtils.getString(PostInstallSummaryPanel.class, - "PoISP.message.run.application.now");//NOI18N -} diff --git a/nbi/stub/ext/engine/src/org/mycompany/installer/wizard/components/panels/PreInstallSummaryPanel.java b/nbi/stub/ext/engine/src/org/mycompany/installer/wizard/components/panels/PreInstallSummaryPanel.java deleted file mode 100644 index 42563d4e0..000000000 --- a/nbi/stub/ext/engine/src/org/mycompany/installer/wizard/components/panels/PreInstallSummaryPanel.java +++ /dev/null @@ -1,621 +0,0 @@ -/* - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. - * - * Copyright 1997-2010 Oracle and/or its affiliates. All rights reserved. - * - * Oracle and Java are registered trademarks of Oracle and/or its affiliates. - * Other names may be trademarks of their respective owners. - * - * The contents of this file are subject to the terms of either the GNU General - * Public License Version 2 only ("GPL") or the Common Development and Distribution - * License("CDDL") (collectively, the "License"). You may not use this file except in - * compliance with the License. You can obtain a copy of the License at - * http://www.netbeans.org/cddl-gplv2.html or nbbuild/licenses/CDDL-GPL-2-CP. See the - * License for the specific language governing permissions and limitations under the - * License. When distributing the software, include this License Header Notice in - * each file and include the License file at nbbuild/licenses/CDDL-GPL-2-CP. Oracle - * designates this particular file as subject to the "Classpath" exception as - * provided by Oracle in the GPL Version 2 section of the License file that - * accompanied this code. If applicable, add the following below the License Header, - * with the fields enclosed by brackets [] replaced by your own identifying - * information: "Portions Copyrighted [year] [name of copyright owner]" - * - * Contributor(s): - * - * The Original Software is NetBeans. The Initial Developer of the Original Software - * is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun Microsystems, Inc. All - * Rights Reserved. - * - * If you wish your version of this file to be governed by only the CDDL or only the - * GPL Version 2, indicate your decision by adding "[Contributor] elects to include - * this software in this distribution under the [CDDL or GPL Version 2] license." If - * you do not indicate a single choice of license, a recipient has the option to - * distribute your version of this file under either the CDDL, the GPL Version 2 or - * to extend the choice of license to its licensees as provided above. However, if - * you add GPL Version 2 code and therefore, elected the GPL Version 2 license, then - * the option applies only if the new code is made subject to such option by the - * copyright holder. - */ -package org.mycompany.installer.wizard.components.panels; - -import java.awt.GridBagConstraints; -import java.awt.Insets; -import java.awt.event.ActionEvent; -import java.awt.event.ActionListener; -import java.io.File; -import java.io.IOException; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import javax.swing.border.EmptyBorder; -import org.netbeans.installer.Installer; -import org.netbeans.installer.product.Registry; -import org.netbeans.installer.product.RegistryNode; -import org.netbeans.installer.product.RegistryType; -import org.netbeans.installer.product.components.Product; -import org.netbeans.installer.utils.ErrorManager; -import org.netbeans.installer.utils.FileUtils; -import org.netbeans.installer.utils.LogManager; -import org.netbeans.installer.utils.ResourceUtils; -import org.netbeans.installer.utils.StringUtils; -import org.netbeans.installer.utils.SystemUtils; -import org.mycompany.installer.utils.applications.NetBeansRCPUtils; -import org.netbeans.installer.utils.exceptions.NativeException; -import org.netbeans.installer.utils.helper.swing.NbiCheckBox; -import org.netbeans.installer.utils.helper.swing.NbiLabel; -import org.netbeans.installer.utils.helper.swing.NbiPanel; -import org.netbeans.installer.utils.helper.swing.NbiTextPane; -import org.netbeans.installer.wizard.components.panels.ErrorMessagePanel; -import org.netbeans.installer.wizard.components.panels.ErrorMessagePanel.ErrorMessagePanelSwingUi; -import org.netbeans.installer.wizard.components.panels.ErrorMessagePanel.ErrorMessagePanelUi; -import org.netbeans.installer.wizard.containers.SwingContainer; -import org.netbeans.installer.wizard.ui.SwingUi; -import org.netbeans.installer.wizard.ui.WizardUi; - -/** - * - * @author Dmitry Lipin - */ -public class PreInstallSummaryPanel extends ErrorMessagePanel { - ///////////////////////////////////////////////////////////////////////////////// - // Instance - - public PreInstallSummaryPanel() { - setProperty(TITLE_PROPERTY, - DEFAULT_TITLE); - setProperty(DESCRIPTION_PROPERTY, - DEFAULT_DESCRIPTION); - - setProperty(INSTALLATION_FOLDER_PROPERTY, - DEFAULT_INSTALLATION_FOLDER); - - setProperty(UNINSTALL_LABEL_TEXT_PROPERTY, - DEFAULT_UNINSTALL_LABEL_TEXT); - - setProperty(INSTALLATION_SIZE_PROPERTY, - DEFAULT_INSTALLATION_SIZE); - setProperty(DOWNLOAD_SIZE_PROPERTY, - DEFAULT_DOWNLOAD_SIZE); - - setProperty(NEXT_BUTTON_TEXT_PROPERTY, - DEFAULT_NEXT_BUTTON_TEXT); - - setProperty(ERROR_NOT_ENOUGH_SPACE_PROPERTY, - DEFAULT_ERROR_NOT_ENOUGH_SPACE); - setProperty(ERROR_CANNOT_CHECK_SPACE_PROPERTY, - DEFAULT_ERROR_CANNOT_CHECK_SPACE); - setProperty(ERROR_LOGIC_ACCESS_PROPERTY, - DEFAULT_ERROR_LOGIC_ACCESS); - setProperty(ERROR_FSROOTS_PROPERTY, - DEFAULT_ERROR_FSROOTS); - setProperty(ERROR_NON_EXISTENT_ROOT_PROPERTY, - DEFAULT_ERROR_NON_EXISTENT_ROOT); - setProperty(ERROR_CANNOT_WRITE_PROPERTY, - DEFAULT_ERROR_CANNOT_WRITE); - setProperty(REMOVE_APP_USERDIR_TEXT_PROPERTY, - DEFAULT_REMOVE_APP_USERDIR_TEXT); - setProperty(REMOVE_APP_USERDIR_CHECKBOX_PROPERTY, - DEFAULT_REMOVE_APP_USERDIR_CHECKBOX); - - } - - @Override - public WizardUi getWizardUi() { - if (wizardUi == null) { - wizardUi = new PreInstallSummaryPanelUi(this); - } - - return wizardUi; - } - - @Override - public void initialize() { - final List toInstall = - Registry.getInstance().getProductsToInstall(); - - if (toInstall.size() > 0) { - setProperty(NEXT_BUTTON_TEXT_PROPERTY, DEFAULT_NEXT_BUTTON_TEXT); - setProperty(DESCRIPTION_PROPERTY, DEFAULT_DESCRIPTION); - } else { - setProperty(NEXT_BUTTON_TEXT_PROPERTY, DEFAULT_NEXT_BUTTON_TEXT_UNINSTALL); - setProperty(DESCRIPTION_PROPERTY, DEFAULT_DESCRIPTION_UNINSTALL); - } - } - - ///////////////////////////////////////////////////////////////////////////////// - // Inner Classes - public static class PreInstallSummaryPanelUi extends ErrorMessagePanelUi { - - protected PreInstallSummaryPanel component; - - public PreInstallSummaryPanelUi(PreInstallSummaryPanel component) { - super(component); - - this.component = component; - } - - @Override - public SwingUi getSwingUi(SwingContainer container) { - if (swingUi == null) { - swingUi = new PreInstallSummaryPanelSwingUi(component, container); - } - - return super.getSwingUi(container); - } - } - - public static class PreInstallSummaryPanelSwingUi extends ErrorMessagePanelSwingUi { - - protected PreInstallSummaryPanel component; - private NbiTextPane locationsPane; - private NbiLabel uninstallListLabel; - private NbiTextPane uninstallListPane; - private NbiLabel installationSizeLabel; - private NbiLabel installationSizeValue; - private NbiLabel downloadSizeLabel; - private NbiLabel downloadSizeValue; - private NbiCheckBox removeUserdirCheckbox; - private NbiTextPane removeUserdirPane; - private NbiPanel spacer; - private int gridy = 0; - - public PreInstallSummaryPanelSwingUi( - final PreInstallSummaryPanel component, - final SwingContainer container) { - super(component, container); - - this.component = component; - initComponents(); - } - - // protected //////////////////////////////////////////////////////////////// - @Override - protected void initializeContainer() { - super.initializeContainer(); - - container.getNextButton().setText( - panel.getProperty(NEXT_BUTTON_TEXT_PROPERTY)); - } - - @Override - protected void initialize() { - final Registry registry = Registry.getInstance(); - - final StringBuilder text = new StringBuilder(); - long installationSize = 0; - long downloadSize = 0; - - for (Product product : registry.getProductsToInstall()) { - installationSize += product.getRequiredDiskSpace(); - downloadSize += product.getDownloadSize(); - - - } - - // add top-level components like nb-base, glassfish, tomcat, jdk - for (Product product : registry.getProductsToInstall()) { - text.append(StringUtils.LF); - text.append(StringUtils.format(panel.getProperty(INSTALLATION_FOLDER_PROPERTY), - product.getDisplayName())); - text.append(StringUtils.LF); - text.append(" " + product.getInstallationLocation()); - text.append(StringUtils.LF); - //normen-show only first item - break; - } - locationsPane.setText(text); - - List toUninstall = registry.getProductsToUninstall(); - String uninstallLabelText = toUninstall.size() > 0 ? StringUtils.format( - panel.getProperty(UNINSTALL_LABEL_TEXT_PROPERTY), - toUninstall.get(0).getDisplayName()) : ""; - - uninstallListLabel.setText(uninstallLabelText); - - - installationSizeLabel.setText( - panel.getProperty(INSTALLATION_SIZE_PROPERTY)); - installationSizeValue.setText(StringUtils.formatSize( - installationSize)); - - downloadSizeLabel.setText( - panel.getProperty(DOWNLOAD_SIZE_PROPERTY)); - downloadSizeValue.setText(StringUtils.formatSize( - downloadSize)); - - if (registry.getProductsToInstall().size() == 0) { - locationsPane.setVisible(false); - installationSizeLabel.setVisible(false); - installationSizeValue.setVisible(false); - } else { - locationsPane.setVisible(true); - installationSizeLabel.setVisible(true); - installationSizeValue.setVisible(true); - } - - if (registry.getProductsToUninstall().size() == 0) { - uninstallListLabel.setVisible(false); - uninstallListPane.setVisible(false); - } else { - uninstallListLabel.setVisible(true); - uninstallListPane.setVisible(true); - } - - downloadSizeLabel.setVisible(false); - downloadSizeValue.setVisible(false); - for (RegistryNode remoteNode : registry.getNodes(RegistryType.REMOTE)) { - if (remoteNode.isVisible()) { - downloadSizeLabel.setVisible(true); - downloadSizeValue.setVisible(true); - } - } - - if (Boolean.getBoolean(REMOVE_APP_USERDIR_PROPERTY)) { - removeUserdirCheckbox.doClick(); - } - - removeUserdirCheckbox.setVisible(false); - removeUserdirPane.setVisible(false); - - for (Product product : Registry.getInstance().getProductsToUninstall()) { - - try { - File installLocation = product.getInstallationLocation(); - LogManager.log("... product installation directory: " + installLocation); - File userDir = NetBeansRCPUtils.getApplicationUserDirFile(installLocation); - LogManager.log("... product userdir: " + userDir); - if (FileUtils.exists(userDir) && FileUtils.canWrite(userDir)) { - removeUserdirCheckbox.setText( - StringUtils.format( - panel.getProperty(REMOVE_APP_USERDIR_CHECKBOX_PROPERTY), - userDir.getAbsolutePath())); - removeUserdirCheckbox.setBorder(new EmptyBorder(0, 0, 0, 0)); - removeUserdirCheckbox.setVisible(true); - - removeUserdirPane.setVisible(true); - removeUserdirPane.setContentType("text/html"); - - removeUserdirPane.setText( - StringUtils.format( - panel.getProperty(REMOVE_APP_USERDIR_TEXT_PROPERTY), - product.getDisplayName())); - - } - break; - } catch (IOException e) { - LogManager.log(e); - } - - } - - //if(productCheckboxList!=null) { - // for(Pair pair : productCheckboxList) { - // pair.getSecond().doClick(); - // } - //} - super.initialize(); - } - - @Override - protected String validateInput() { - try { - if (!Boolean.getBoolean(SystemUtils.NO_SPACE_CHECK_PROPERTY)) { - final List roots = - SystemUtils.getFileSystemRoots(); - final List toInstall = - Registry.getInstance().getProductsToInstall(); - final Map spaceMap = - new HashMap(); - - LogManager.log("Available roots : " + StringUtils.asString(roots)); - - File downloadDataDirRoot = FileUtils.getRoot( - Installer.getInstance().getLocalDirectory(), roots); - long downloadSize = 0; - for (Product product : toInstall) { - downloadSize += product.getDownloadSize(); - } - // the critical check point - we download all the data - spaceMap.put(downloadDataDirRoot, new Long(downloadSize)); - long lastDataSize = 0; - for (Product product : toInstall) { - final File installLocation = product.getInstallationLocation(); - final File root = FileUtils.getRoot(installLocation, roots); - final long productSize = product.getRequiredDiskSpace(); - - LogManager.log(" [" + root + "] <- " + installLocation); - - if (root != null) { - Long ddSize = spaceMap.get(downloadDataDirRoot); - // remove space that was freed after the remove of previos product data - spaceMap.put(downloadDataDirRoot, - Long.valueOf(ddSize - lastDataSize)); - - // add space required for next product installation - Long size = spaceMap.get(root); - size = Long.valueOf( - (size != null ? size.longValue() : 0L) - + productSize); - spaceMap.put(root, size); - lastDataSize = product.getDownloadSize(); - } else { - return StringUtils.format( - panel.getProperty(ERROR_NON_EXISTENT_ROOT_PROPERTY), - product, installLocation); - } - } - - for (File root : spaceMap.keySet()) { - try { - final long availableSpace = - SystemUtils.getFreeSpace(root); - final long requiredSpace = - spaceMap.get(root) + REQUIRED_SPACE_ADDITION; - - if (availableSpace < requiredSpace) { - return StringUtils.format( - panel.getProperty(ERROR_NOT_ENOUGH_SPACE_PROPERTY), - root, - StringUtils.formatSize(requiredSpace - availableSpace)); - } - } catch (NativeException e) { - ErrorManager.notifyError( - panel.getProperty(ERROR_CANNOT_CHECK_SPACE_PROPERTY), - e); - } - } - } - - final List toUninstall = - Registry.getInstance().getProductsToUninstall(); - for (Product product : toUninstall) { - if (!FileUtils.canWrite(product.getInstallationLocation())) { - return StringUtils.format( - panel.getProperty(ERROR_CANNOT_WRITE_PROPERTY), - product, - product.getInstallationLocation()); - } - } - - } catch (IOException e) { - ErrorManager.notifyError( - panel.getProperty(ERROR_FSROOTS_PROPERTY), e); - } - - return null; - } - - // private ////////////////////////////////////////////////////////////////// - private void initComponents() { - gridy = 0; - - // locationsPane //////////////////////////////////////////////////////// - locationsPane = new NbiTextPane(); - - // uninstallListPane //////////////////////////////////////////////////// - uninstallListPane = new NbiTextPane(); - - // uninstallListLabel /////////////////////////////////////////////////// - uninstallListLabel = new NbiLabel(); - uninstallListLabel.setLabelFor(uninstallListPane); - - // installationSizeValue //////////////////////////////////////////////// - installationSizeValue = new NbiLabel(); - //installationSizeValue.setFocusable(true); - - // installationSizeLabel //////////////////////////////////////////////// - installationSizeLabel = new NbiLabel(); - installationSizeLabel.setLabelFor(installationSizeValue); - - // downloadSizeValue //////////////////////////////////////////////////// - downloadSizeValue = new NbiLabel(); - //downloadSizeValue.setFocusable(true); - - // downloadSizeLabel //////////////////////////////////////////////////// - downloadSizeLabel = new NbiLabel(); - downloadSizeLabel.setLabelFor(downloadSizeValue); - - // spacer /////////////////////////////////////////////////////////////// - spacer = new NbiPanel(); - - // this ///////////////////////////////////////////////////////////////// - add(locationsPane, new GridBagConstraints( - 0, gridy++, // x, y - 1, 1, // width, height - 1.0, 0.0, // weight-x, weight-y - GridBagConstraints.PAGE_START, // anchor - GridBagConstraints.HORIZONTAL, // fill - new Insets(11, 11, 0, 11), // padding - 0, 0)); // padx, pady - ??? - add(uninstallListLabel, new GridBagConstraints( - 0, gridy++, // x, y - 1, 1, // width, height - 1.0, 0.0, // weight-x, weight-y - GridBagConstraints.PAGE_START, // anchor - GridBagConstraints.HORIZONTAL, // fill - new Insets(11, 11, 0, 11), // padding - 0, 0)); // padx, pady - ??? - add(uninstallListPane, new GridBagConstraints( - 0, gridy++, // x, y - 1, 1, // width, height - 1.0, 0.0, // weight-x, weight-y - GridBagConstraints.PAGE_START, // anchor - GridBagConstraints.HORIZONTAL, // fill - new Insets(0, 11, 0, 11), // padding - 0, 0)); // padx, pady - ??? - int gridy0 = gridy; - gridy++; - - removeUserdirPane = new NbiTextPane(); - add(removeUserdirPane, new GridBagConstraints( - 0, gridy++, // x, y - 1, 1, // width, height - 1.0, 0.0, // weight-x, weight-y - GridBagConstraints.PAGE_START, // anchor - GridBagConstraints.HORIZONTAL, // fill - new Insets(11, 11, 0, 11), // padding - 0, 0)); // padx, pady - ??? - - removeUserdirCheckbox = new NbiCheckBox(); - add(removeUserdirCheckbox, new GridBagConstraints( - 0, gridy++, // x, y - 1, 1, // width, height - 1.0, 0.0, // weight-x, weight-y - GridBagConstraints.PAGE_START, // anchor - GridBagConstraints.HORIZONTAL, // fill - new Insets(4, 20, 0, 11), // padding - 0, 0)); // padx, pady - ??? - - removeUserdirCheckbox.addActionListener(new ActionListener() { - - public void actionPerformed(ActionEvent e) { - System.setProperty(REMOVE_APP_USERDIR_PROPERTY, - "" + removeUserdirCheckbox.isSelected()); - } - }); - - add(installationSizeLabel, new GridBagConstraints( - 0, gridy++, // x, y - 1, 1, // width, height - 1.0, 0.0, // weight-x, weight-y - GridBagConstraints.LINE_START, // anchor - GridBagConstraints.HORIZONTAL, // fill - new Insets(22, 11, 0, 11), // padding - 0, 0)); // padx, pady - ??? - add(installationSizeValue, new GridBagConstraints( - 0, gridy++, // x, y - 1, 1, // width, height - 1.0, 0.0, // weight-x, weight-y - GridBagConstraints.LINE_START, // anchor - GridBagConstraints.HORIZONTAL, // fill - new Insets(4, 22, 0, 11), // padding - 0, 0)); // padx, pady - ??? - add(downloadSizeLabel, new GridBagConstraints( - 0, gridy++, // x, y - 1, 1, // width, height - 1.0, 0.0, // weight-x, weight-y - GridBagConstraints.LINE_START, // anchor - GridBagConstraints.HORIZONTAL, // fill - new Insets(4, 11, 0, 11), // padding - 0, 0)); // padx, pady - ??? - add(downloadSizeValue, new GridBagConstraints( - 0, gridy++, // x, y - 1, 1, // width, height - 1.0, 0.0, // weight-x, weight-y - GridBagConstraints.LINE_START, // anchor - GridBagConstraints.HORIZONTAL, // fill - new Insets(4, 22, 0, 11), // padding - 0, 0)); // padx, pady - ??? - add(spacer, new GridBagConstraints( - 0, gridy + 10, // x, y - 1, 1, // width, height - 1.0, 1.0, // weight-x, weight-y - GridBagConstraints.CENTER, // anchor - GridBagConstraints.BOTH, // fill - new Insets(0, 11, 0, 11), // padding - 0, 0)); // padx, pady - ??? - } - } -///////////////////////////////////////////////////////////////////////////////// -// Constants - public static final String INSTALLATION_FOLDER_PROPERTY = - "installation.folder"; // NOI18N - public static final String UNINSTALL_LABEL_TEXT_PROPERTY = - "uninstall.list.label.text"; // NOI18N - public static final String INSTALLATION_SIZE_PROPERTY = - "installation.size"; // NOI18N - public static final String DOWNLOAD_SIZE_PROPERTY = - "download.size"; // NOI18N - public static final String ERROR_NOT_ENOUGH_SPACE_PROPERTY = - "error.not.enough.space"; // NOI18N - public static final String ERROR_CANNOT_CHECK_SPACE_PROPERTY = - "error.cannot.check.space"; // NOI18N - public static final String ERROR_LOGIC_ACCESS_PROPERTY = - "error.logic.access"; // NOI18N - public static final String ERROR_FSROOTS_PROPERTY = - "error.fsroots"; // NOI18N - public static final String ERROR_NON_EXISTENT_ROOT_PROPERTY = - "error.non.existent.root"; // NOI18N - public static final String ERROR_CANNOT_WRITE_PROPERTY = - "error.cannot.write"; // NOI18N - public static final String REMOVE_APP_USERDIR_PROPERTY = - "remove.app.userdir"; - public static final String REMOVE_APP_USERDIR_TEXT_PROPERTY = - "remove.app.userdir.text"; - public static final String REMOVE_APP_USERDIR_CHECKBOX_PROPERTY = - "remove.app.userdir.checkbox"; - public static final String DEFAULT_TITLE = - ResourceUtils.getString(PreInstallSummaryPanel.class, - "PrISP.title"); // NOI18N - public static final String DEFAULT_DESCRIPTION = - ResourceUtils.getString(PreInstallSummaryPanel.class, - "PrISP.description"); // NOI18N - public static final String DEFAULT_DESCRIPTION_UNINSTALL = - ResourceUtils.getString(PreInstallSummaryPanel.class, - "PrISP.description.uninstall"); // NOI18N - public static final String DEFAULT_INSTALLATION_FOLDER = - ResourceUtils.getString(PreInstallSummaryPanel.class, - "PrISP.installation.folder"); // NOI18N - public static final String DEFAULT_UNINSTALL_LABEL_TEXT = - ResourceUtils.getString(PreInstallSummaryPanel.class, - "PrISP.uninstall.list.label.text"); // NOI18N - public static final String DEFAULT_INSTALLATION_SIZE = - ResourceUtils.getString(PreInstallSummaryPanel.class, - "PrISP.installation.size"); // NOI18N - public static final String DEFAULT_DOWNLOAD_SIZE = - ResourceUtils.getString(PreInstallSummaryPanel.class, - "PrISP.download.size"); // NOI18N - public static final String DEFAULT_NEXT_BUTTON_TEXT = - ResourceUtils.getString(PreInstallSummaryPanel.class, - "PrISP.next.button.text"); // NOI18N - public static final String DEFAULT_NEXT_BUTTON_TEXT_UNINSTALL = - ResourceUtils.getString(PreInstallSummaryPanel.class, - "PrISP.next.button.text.uninstall"); // NOI18N - public static final String DEFAULT_ERROR_NOT_ENOUGH_SPACE = - ResourceUtils.getString(PreInstallSummaryPanel.class, - "PrISP.error.not.enough.space"); // NOI18N - public static final String DEFAULT_ERROR_CANNOT_CHECK_SPACE = - ResourceUtils.getString(PreInstallSummaryPanel.class, - "PrISP.error.cannot.check.space");// NOI18N - public static final String DEFAULT_ERROR_LOGIC_ACCESS = - ResourceUtils.getString(PreInstallSummaryPanel.class, - "PrISP.error.logic.access");// NOI18N - public static final String DEFAULT_ERROR_FSROOTS = - ResourceUtils.getString(PreInstallSummaryPanel.class, - "PrISP.error.fsroots"); // NOI18N - public static final String DEFAULT_ERROR_NON_EXISTENT_ROOT = - ResourceUtils.getString(PreInstallSummaryPanel.class, - "PrISP.error.non.existent.root"); // NOI18N - public static final String DEFAULT_ERROR_CANNOT_WRITE = - ResourceUtils.getString(PreInstallSummaryPanel.class, - "PrISP.error.cannot.write"); // NOI18N - public static final String DEFAULT_REMOVE_APP_USERDIR_TEXT = - ResourceUtils.getString(PreInstallSummaryPanel.class, - "PrISP.remove.app.userdir.text"); // NOI18N - - public static final String DEFAULT_REMOVE_APP_USERDIR_CHECKBOX = - ResourceUtils.getString(PreInstallSummaryPanel.class, - "PrISP.remove.app.userdir.checkbox"); // NOI18N - public static final long REQUIRED_SPACE_ADDITION = - 10L * 1024L * 1024L; // 10MB -} diff --git a/nbi/stub/ext/engine/src/org/mycompany/installer/wizard/components/panels/WelcomePanel.java b/nbi/stub/ext/engine/src/org/mycompany/installer/wizard/components/panels/WelcomePanel.java deleted file mode 100644 index c1cc01575..000000000 --- a/nbi/stub/ext/engine/src/org/mycompany/installer/wizard/components/panels/WelcomePanel.java +++ /dev/null @@ -1,333 +0,0 @@ -/* - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. - * - * Copyright 1997-2010 Oracle and/or its affiliates. All rights reserved. - * - * Oracle and Java are registered trademarks of Oracle and/or its affiliates. - * Other names may be trademarks of their respective owners. - * - * The contents of this file are subject to the terms of either the GNU General - * Public License Version 2 only ("GPL") or the Common Development and Distribution - * License("CDDL") (collectively, the "License"). You may not use this file except in - * compliance with the License. You can obtain a copy of the License at - * http://www.netbeans.org/cddl-gplv2.html or nbbuild/licenses/CDDL-GPL-2-CP. See the - * License for the specific language governing permissions and limitations under the - * License. When distributing the software, include this License Header Notice in - * each file and include the License file at nbbuild/licenses/CDDL-GPL-2-CP. Oracle - * designates this particular file as subject to the "Classpath" exception as - * provided by Oracle in the GPL Version 2 section of the License file that - * accompanied this code. If applicable, add the following below the License Header, - * with the fields enclosed by brackets [] replaced by your own identifying - * information: "Portions Copyrighted [year] [name of copyright owner]" - * - * Contributor(s): - * - * The Original Software is NetBeans. The Initial Developer of the Original Software - * is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun Microsystems, Inc. All - * Rights Reserved. - * - * If you wish your version of this file to be governed by only the CDDL or only the - * GPL Version 2, indicate your decision by adding "[Contributor] elects to include - * this software in this distribution under the [CDDL or GPL Version 2] license." If - * you do not indicate a single choice of license, a recipient has the option to - * distribute your version of this file under either the CDDL, the GPL Version 2 or - * to extend the choice of license to its licensees as provided above. However, if - * you add GPL Version 2 code and therefore, elected the GPL Version 2 license, then - * the option applies only if the new code is made subject to such option by the - * copyright holder. - */ -package org.mycompany.installer.wizard.components.panels; - -import java.awt.Component; -import java.awt.Dimension; -import java.awt.GridBagConstraints; -import java.awt.Insets; -import java.io.File; -import java.util.List; -import org.netbeans.installer.product.Registry; -import org.netbeans.installer.product.components.Product; -import org.netbeans.installer.utils.ErrorManager; -import org.netbeans.installer.utils.LogManager; -import org.netbeans.installer.utils.ResourceUtils; -import org.netbeans.installer.utils.StringUtils; -import org.netbeans.installer.utils.SystemUtils; -import org.netbeans.installer.utils.exceptions.InitializationException; -import org.netbeans.installer.utils.helper.Platform; -import org.netbeans.installer.utils.helper.swing.NbiPanel; -import org.netbeans.installer.utils.helper.swing.NbiTextPane; -import org.netbeans.installer.wizard.components.panels.ErrorMessagePanel; -import org.netbeans.installer.wizard.components.panels.ErrorMessagePanel.ErrorMessagePanelSwingUi; -import org.netbeans.installer.wizard.components.panels.ErrorMessagePanel.ErrorMessagePanelUi; -import org.netbeans.installer.wizard.containers.SwingContainer; -import org.netbeans.installer.wizard.ui.SwingUi; -import org.netbeans.installer.wizard.ui.WizardUi; - -/** - * - * @author Dmitry Lipin - */ -public class WelcomePanel extends ErrorMessagePanel { - ///////////////////////////////////////////////////////////////////////////////// - private Registry bundledRegistry; - private Registry defaultRegistry; - - public WelcomePanel() { - setProperty(TITLE_PROPERTY, - DEFAULT_TITLE); - setProperty(DESCRIPTION_PROPERTY, - DEFAULT_DESCRIPTION); - - setProperty(WELCOME_TEXT_PROPERTY, - DEFAULT_WELCOME_TEXT); - - setProperty(WELCOME_ALREADY_INSTALLED_TEXT_PROPERTY, - DEFAULT_WELCOME_ALREADY_INSTALLED_TEXT); - setProperty(WELCOME_ALREADY_INSTALLED_NEXT_BUTTON_TEXT_PROPERTY, - DEFAULT_WELCOME_ALREADY_INSTALLED_NEXT_BUTTON_TEXT); - - try { - defaultRegistry = Registry.getInstance(); - bundledRegistry = new Registry(); - - final String bundledRegistryUri = System.getProperty( - Registry.BUNDLED_PRODUCT_REGISTRY_URI_PROPERTY); - if (bundledRegistryUri != null) { - bundledRegistry.loadProductRegistry(bundledRegistryUri); - } else { - bundledRegistry.loadProductRegistry( - Registry.DEFAULT_BUNDLED_PRODUCT_REGISTRY_URI); - } - } catch (InitializationException e) { - ErrorManager.notifyError("Cannot load bundled registry", e); - } - - } - - Registry getBundledRegistry() { - return bundledRegistry; - } - - @Override - public WizardUi getWizardUi() { - if (wizardUi == null) { - wizardUi = new WelcomePanelUi(this); - } - - return wizardUi; - } - - @Override - public boolean canExecuteForward() { - return canExecute(); - } - - @Override - public boolean canExecuteBackward() { - return canExecute(); - } - - // private ////////////////////////////////////////////////////////////////////// - private boolean canExecute() { - return bundledRegistry.getNodes().size() > 1; - } - - ///////////////////////////////////////////////////////////////////////////////// - // Inner Classes - public static class WelcomePanelUi extends ErrorMessagePanelUi { - - protected WelcomePanel component; - - public WelcomePanelUi(WelcomePanel component) { - super(component); - - this.component = component; - } - - @Override - public SwingUi getSwingUi(SwingContainer container) { - if (swingUi == null) { - swingUi = new WelcomePanelSwingUi(component, container); - } - - return super.getSwingUi(container); - } - } - - public static class WelcomePanelSwingUi extends ErrorMessagePanelSwingUi { - - protected WelcomePanel panel; - private NbiTextPane textPane; - - private NbiPanel leftImagePanel; - ValidatingThread validatingThread; - - public WelcomePanelSwingUi( - final WelcomePanel component, - final SwingContainer container) { - super(component, container); - - this.panel = component; - - initComponents(); - } - - @Override - public String getTitle() { - return null; // the welcome page does not have a title - } - - // protected //////////////////////////////////////////////////////////////// - @Override - protected void initializeContainer() { - super.initializeContainer(); - - container.getBackButton().setVisible(false); - } - - @Override - protected void initialize() { - - textPane.setContentType("text/html"); - textPane.setText(StringUtils.format(panel.getProperty(WELCOME_TEXT_PROPERTY))); - List toInstall = Registry.getInstance().getProductsToInstall(); - if(toInstall.isEmpty()) { - List list = panel.getBundledRegistry().getProducts(); - if(list.size() == 1) { - if(SystemUtils.getCurrentPlatform().isCompatibleWith(list.get(0).getPlatforms())) { - File installationLocation = list.get(0).getInstallationLocation(); - textPane.setText( - StringUtils.format( - panel.getProperty(WELCOME_ALREADY_INSTALLED_TEXT_PROPERTY), - list.get(0).getDisplayName(), - installationLocation.getAbsolutePath())); - } else { - textPane.setText( - StringUtils.format( - WELCOME_INCOMPATIBLE_PLATFORM_TEXT, - list.get(0).getDisplayName())); - } - container.getCancelButton().setVisible(false); - container.getNextButton().setText(panel.getProperty( - WELCOME_ALREADY_INSTALLED_NEXT_BUTTON_TEXT_PROPERTY)); - } - } - - super.initialize(); - } - - // private ////////////////////////////////////////////////////////////////// - private void initComponents() { - // textPane ///////////////////////////////////////////////////////////// - textPane = new NbiTextPane(); - - leftImagePanel = new NbiPanel(); - int width = 0; - int height = 0; - final String topLeftImage = SystemUtils.resolveString( - System.getProperty( - WELCOME_PAGE_LEFT_TOP_IMAGE_PROPERTY)); - final String bottomLeftImage = SystemUtils.resolveString( - System.getProperty( - WELCOME_PAGE_LEFT_BOTTOM_IMAGE_PROPERTY)); - - int bottomAnchor = NbiPanel.ANCHOR_BOTTOM_LEFT; - - if (topLeftImage != null) { - leftImagePanel.setBackgroundImage(topLeftImage, ANCHOR_TOP_LEFT); - width = leftImagePanel.getBackgroundImage(NbiPanel.ANCHOR_TOP_LEFT).getIconWidth(); - height += leftImagePanel.getBackgroundImage(NbiPanel.ANCHOR_TOP_LEFT).getIconHeight(); - } - if (bottomLeftImage != null) { - leftImagePanel.setBackgroundImage(bottomLeftImage, bottomAnchor); - width = leftImagePanel.getBackgroundImage(bottomAnchor).getIconWidth(); - height += leftImagePanel.getBackgroundImage(bottomAnchor).getIconHeight(); - } - - leftImagePanel.setPreferredSize(new Dimension(width, height)); - leftImagePanel.setMaximumSize(new Dimension(width, height)); - leftImagePanel.setMinimumSize(new Dimension(width, 0)); - leftImagePanel.setSize(new Dimension(width, height)); - - leftImagePanel.setOpaque(false); - // this ///////////////////////////////////////////////////////////////// - int dy = 0; - add(leftImagePanel, new GridBagConstraints( - 0, 0, // x, y - 1, 100, // width, height - 0.0, 1.0, // weight-x, weight-y - GridBagConstraints.WEST, // anchor - GridBagConstraints.VERTICAL, // fill - new Insets(0, 0, 0, 0), // padding - 0, 0)); // padx, pady - ??? - add(textPane, new GridBagConstraints( - 1, dy++, // x, y - 4, 1, // width, height - 1.0, 0.0, // weight-x, weight-y - GridBagConstraints.LINE_START, // anchor - GridBagConstraints.HORIZONTAL, // fill - new Insets(10, 11, 11, 11), // padding - 0, 0)); // padx, pady - ??? - - NbiTextPane separatorPane = new NbiTextPane(); - - separatorPane = new NbiTextPane(); - add(separatorPane, new GridBagConstraints( - 3, dy, // x, y - 1, 1, // width, height - 1.0, 0.0, // weight-x, weight-y - GridBagConstraints.CENTER, // anchor - GridBagConstraints.BOTH, // fill - new Insets(0, 0, 0, 0), // padding - 0, 0)); // padx, pady - ??? - - - // move error label after the left welcome image - Component errorLabel = getComponent(0); - getLayout().removeLayoutComponent(errorLabel); - add(errorLabel, new GridBagConstraints( - 1, 99, // x, y - 99, 1, // width, height - 1.0, 0.0, // weight-x, weight-y - GridBagConstraints.CENTER, // anchor - GridBagConstraints.HORIZONTAL, // fill - new Insets(4, 11, 4, 0), // padding - 0, 0)); // ??? (padx, pady) - - - } - } - ///////////////////////////////////////////////////////////////////////////////// - // Constants - public static final String DEFAULT_TITLE = - ResourceUtils.getString(WelcomePanel.class, - "WP.title"); - public static final String DEFAULT_DESCRIPTION = - ResourceUtils.getString(WelcomePanel.class, - "WP.description"); // NOI18N - public static final String WELCOME_TEXT_PROPERTY = - "welcome.text"; // NOI18N - public static final String WELCOME_ALREADY_INSTALLED_TEXT_PROPERTY = - "welcome.already.installed.text"; // NOI18N - public static final String WELCOME_ALREADY_INSTALLED_NEXT_BUTTON_TEXT_PROPERTY = - "welcome.already.installed.next.button.text";//NOI18N - public static final String WELCOME_INCOMPATIBLE_PLATFORM_TEXT = - ResourceUtils.getString(WelcomePanel.class, - "WP.incompatible.platform.text");//NOI18N - - public static final String DEFAULT_WELCOME_ALREADY_INSTALLED_NEXT_BUTTON_TEXT = - ResourceUtils.getString(WelcomePanel.class, - "WP.already.installed.next.button.text");//NOI18N - - public static final String DEFAULT_WELCOME_TEXT = - ResourceUtils.getString(WelcomePanel.class, - "WP.welcome.text"); // NOI18N - - public static final String DEFAULT_WELCOME_ALREADY_INSTALLED_TEXT = - ResourceUtils.getString(WelcomePanel.class, - "WP.already.installed.text"); // NOI18N - - public static final String WELCOME_PAGE_LEFT_TOP_IMAGE_PROPERTY = - "nbi.wizard.ui.swing.welcome.left.top.image";//NOI18N - public static final String WELCOME_PAGE_LEFT_BOTTOM_IMAGE_PROPERTY = - "nbi.wizard.ui.swing.welcome.left.bottom.image";//NOI18N -} diff --git a/nbi/stub/ext/engine/src/org/mycompany/installer/wizard/components/panels/resources/welcome-left-bottom.png b/nbi/stub/ext/engine/src/org/mycompany/installer/wizard/components/panels/resources/welcome-left-bottom.png deleted file mode 100644 index 6d9585bf2..000000000 Binary files a/nbi/stub/ext/engine/src/org/mycompany/installer/wizard/components/panels/resources/welcome-left-bottom.png and /dev/null differ diff --git a/nbi/stub/ext/engine/src/org/mycompany/installer/wizard/components/panels/resources/welcome-left-top.png b/nbi/stub/ext/engine/src/org/mycompany/installer/wizard/components/panels/resources/welcome-left-top.png deleted file mode 100644 index 13adb1221..000000000 Binary files a/nbi/stub/ext/engine/src/org/mycompany/installer/wizard/components/panels/resources/welcome-left-top.png and /dev/null differ diff --git a/nbi/stub/ext/engine/src/org/mycompany/installer/wizard/components/sequences/Bundle.properties b/nbi/stub/ext/engine/src/org/mycompany/installer/wizard/components/sequences/Bundle.properties deleted file mode 100644 index 62ce479bb..000000000 --- a/nbi/stub/ext/engine/src/org/mycompany/installer/wizard/components/sequences/Bundle.properties +++ /dev/null @@ -1,43 +0,0 @@ -# -# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. -# -# Copyright 1997-2010 Oracle and/or its affiliates. All rights reserved. -# -# Oracle and Java are registered trademarks of Oracle and/or its affiliates. -# Other names may be trademarks of their respective owners. -# -# The contents of this file are subject to the terms of either the GNU General Public -# License Version 2 only ("GPL") or the Common Development and Distribution -# License("CDDL") (collectively, the "License"). You may not use this file except in -# compliance with the License. You can obtain a copy of the License at -# http://www.netbeans.org/cddl-gplv2.html or nbbuild/licenses/CDDL-GPL-2-CP. See the -# License for the specific language governing permissions and limitations under the -# License. When distributing the software, include this License Header Notice in -# each file and include the License file at nbbuild/licenses/CDDL-GPL-2-CP. Oracle -# designates this particular file as subject to the "Classpath" exception as provided -# by Oracle in the GPL Version 2 section of the License file that accompanied this code. -# If applicable, add the following below the License Header, with the fields enclosed -# by brackets [] replaced by your own identifying information: -# "Portions Copyrighted [year] [name of copyright owner]" -# -# Contributor(s): -# -# The Original Software is NetBeans. The Initial Developer of the Original Software -# is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun Microsystems, Inc. All -# Rights Reserved. -# -# If you wish your version of this file to be governed by only the CDDL or only the -# GPL Version 2, indicate your decision by adding "[Contributor] elects to include -# this software in this distribution under the [CDDL or GPL Version 2] license." If -# you do not indicate a single choice of license, a recipient has the option to -# distribute your version of this file under either the CDDL, the GPL Version 2 or -# to extend the choice of license to its licensees as provided above. However, if you -# add GPL Version 2 code and therefore, elected the GPL Version 2 license, then the -# option applies only if the new code is made subject to such option by the copyright -# holder. -# - -##################################################################################### -# MainSequence.java -MS.IA.title=Installation -MS.IA.description=Please wait while the installer installs {product-name}. diff --git a/nbi/stub/ext/engine/src/org/mycompany/installer/wizard/components/sequences/MainSequence.java b/nbi/stub/ext/engine/src/org/mycompany/installer/wizard/components/sequences/MainSequence.java deleted file mode 100644 index d4e6721ca..000000000 --- a/nbi/stub/ext/engine/src/org/mycompany/installer/wizard/components/sequences/MainSequence.java +++ /dev/null @@ -1,172 +0,0 @@ -/* - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. - * - * Copyright 1997-2010 Oracle and/or its affiliates. All rights reserved. - * - * Oracle and Java are registered trademarks of Oracle and/or its affiliates. - * Other names may be trademarks of their respective owners. - * - * The contents of this file are subject to the terms of either the GNU General - * Public License Version 2 only ("GPL") or the Common Development and Distribution - * License("CDDL") (collectively, the "License"). You may not use this file except in - * compliance with the License. You can obtain a copy of the License at - * http://www.netbeans.org/cddl-gplv2.html or nbbuild/licenses/CDDL-GPL-2-CP. See the - * License for the specific language governing permissions and limitations under the - * License. When distributing the software, include this License Header Notice in - * each file and include the License file at nbbuild/licenses/CDDL-GPL-2-CP. Oracle - * designates this particular file as subject to the "Classpath" exception as - * provided by Oracle in the GPL Version 2 section of the License file that - * accompanied this code. If applicable, add the following below the License Header, - * with the fields enclosed by brackets [] replaced by your own identifying - * information: "Portions Copyrighted [year] [name of copyright owner]" - * - * Contributor(s): - * - * The Original Software is NetBeans. The Initial Developer of the Original Software - * is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun Microsystems, Inc. All - * Rights Reserved. - * - * If you wish your version of this file to be governed by only the CDDL or only the - * GPL Version 2, indicate your decision by adding "[Contributor] elects to include - * this software in this distribution under the [CDDL or GPL Version 2] license." If - * you do not indicate a single choice of license, a recipient has the option to - * distribute your version of this file under either the CDDL, the GPL Version 2 or - * to extend the choice of license to its licensees as provided above. However, if - * you add GPL Version 2 code and therefore, elected the GPL Version 2 license, then - * the option applies only if the new code is made subject to such option by the - * copyright holder. - */ -package org.mycompany.installer.wizard.components.sequences; - -import org.netbeans.installer.wizard.components.sequences.ProductWizardSequence; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import org.mycompany.installer.wizard.components.panels.PostInstallSummaryPanel; -import org.mycompany.installer.wizard.components.panels.PreInstallSummaryPanel; -import org.mycompany.installer.wizard.components.actions.CopyInstallLocationAction; -import org.netbeans.installer.product.components.Product; -import org.netbeans.installer.product.Registry; -import org.netbeans.installer.utils.ResourceUtils; -import org.netbeans.installer.utils.helper.ExecutionMode; -import org.netbeans.installer.utils.helper.Status; -import org.netbeans.installer.utils.helper.Version; -import org.netbeans.installer.wizard.components.WizardSequence; -import org.netbeans.installer.wizard.components.actions.DownloadConfigurationLogicAction; -import org.netbeans.installer.wizard.components.actions.DownloadInstallationDataAction; -import org.netbeans.installer.wizard.components.actions.InstallAction; -import org.netbeans.installer.wizard.components.actions.UninstallAction; -import org.netbeans.installer.wizard.components.panels.LicensesPanel; - -/** - * - * @author Dmitry Lipin - */ -public class MainSequence extends WizardSequence { - ///////////////////////////////////////////////////////////////////////////////// - // Instance - - private DownloadConfigurationLogicAction downloadConfigurationLogicAction; - private LicensesPanel licensesPanel; - private PreInstallSummaryPanel preInstallSummaryPanel; - private UninstallAction uninstallAction; - private DownloadInstallationDataAction downloadInstallationDataAction; - private InstallAction installAction; - private PostInstallSummaryPanel postInstallSummaryPanel; - private Map productSequences; - - public MainSequence() { - downloadConfigurationLogicAction = new DownloadConfigurationLogicAction(); - licensesPanel = new LicensesPanel(); - preInstallSummaryPanel = new PreInstallSummaryPanel(); - uninstallAction = new UninstallAction(); - downloadInstallationDataAction = new DownloadInstallationDataAction(); - installAction = new InstallAction(); - postInstallSummaryPanel = new PostInstallSummaryPanel(); - productSequences = new HashMap(); - - installAction.setProperty(InstallAction.TITLE_PROPERTY, - DEFAULT_IA_TITLE); - installAction.setProperty(InstallAction.DESCRIPTION_PROPERTY, - DEFAULT_IA_DESCRIPTION); - } - - @Override - public void executeForward() { - final Registry registry = Registry.getInstance(); - final List toInstall = registry.getProductsToInstall(); - final List toUninstall = registry.getProductsToUninstall(); - //normen - uninstall all other items with same version number - if (toUninstall.size() > 0) { - Version ver; - ver = toUninstall.get(0).getVersion(); - List products = registry.getProducts(); - for (Product product : products) { - if (product.getVersion().equals(ver)) { - product.setStatus(Status.TO_BE_UNINSTALLED); - } - } - } - // remove all current children (if there are any), as the components - // selection has probably changed and we need to rebuild from scratch - getChildren().clear(); - - // the set of wizard components differs greatly depending on the execution - // mode - if we're installing, we ask for input, run a wizard sequence for - // each selected component and then download and install; if we're creating - // a bundle, we only need to download and package things - - if (toInstall.size() > 0) { - addChild(downloadConfigurationLogicAction); - addChild(licensesPanel); - Product initProduct = null; - for (Product product : toInstall) { - if (!productSequences.containsKey(product)) { - productSequences.put( - product, - new ProductWizardSequence(product)); - } - //normen - use first product path for all projects -> no separate path - // wizards needed - if (initProduct == null) { - initProduct = product; - } else { - addChild(new CopyInstallLocationAction(initProduct, product)); - } - addChild(productSequences.get(product)); - } - } - - addChild(preInstallSummaryPanel); - - if (toUninstall.size() > 0) { - addChild(uninstallAction); - } - - if (toInstall.size() > 0) { - addChild(downloadInstallationDataAction); - addChild(installAction); - } - - addChild(postInstallSummaryPanel); - - super.executeForward(); - } - - @Override - public boolean canExecuteForward() { - return ExecutionMode.NORMAL == ExecutionMode.getCurrentExecutionMode() - && (Registry.getInstance().getProductsToInstall().size() > 0 - || Registry.getInstance().getProductsToUninstall().size() > 0); - } - ///////////////////////////////////////////////////////////////////////////////// - // Constants - public static final String DEFAULT_IA_TITLE = - ResourceUtils.getString( - MainSequence.class, - "MS.IA.title"); // NOI18N - public static final String DEFAULT_IA_DESCRIPTION = - ResourceUtils.getString( - MainSequence.class, - "MS.IA.description"); // NOI18N -} diff --git a/nbi/stub/ext/engine/src/org/mycompany/installer/wizard/wizard-components.xml b/nbi/stub/ext/engine/src/org/mycompany/installer/wizard/wizard-components.xml deleted file mode 100644 index 6b9509d7c..000000000 --- a/nbi/stub/ext/engine/src/org/mycompany/installer/wizard/wizard-components.xml +++ /dev/null @@ -1,52 +0,0 @@ - - - - - - - - - - diff --git a/nbi/stub/ext/engine/src/org/mycompany/installer/wizard/wizard-description-background-left.png b/nbi/stub/ext/engine/src/org/mycompany/installer/wizard/wizard-description-background-left.png deleted file mode 100644 index 8ff0a7848..000000000 Binary files a/nbi/stub/ext/engine/src/org/mycompany/installer/wizard/wizard-description-background-left.png and /dev/null differ diff --git a/nbi/stub/ext/engine/src/org/mycompany/installer/wizard/wizard-description-background-right.png b/nbi/stub/ext/engine/src/org/mycompany/installer/wizard/wizard-description-background-right.png deleted file mode 100644 index f395ba518..000000000 Binary files a/nbi/stub/ext/engine/src/org/mycompany/installer/wizard/wizard-description-background-right.png and /dev/null differ diff --git a/nbi/stub/ext/engine/src/org/mycompany/installer/wizard/wizard-icon.png b/nbi/stub/ext/engine/src/org/mycompany/installer/wizard/wizard-icon.png deleted file mode 100644 index a8c0f8c34..000000000 Binary files a/nbi/stub/ext/engine/src/org/mycompany/installer/wizard/wizard-icon.png and /dev/null differ diff --git a/nbi/stub/ext/infra/build/engine/build.properties b/nbi/stub/ext/infra/build/engine/build.properties deleted file mode 100644 index 13c71c7ac..000000000 --- a/nbi/stub/ext/infra/build/engine/build.properties +++ /dev/null @@ -1,77 +0,0 @@ -# -# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. -# -# Copyright 1997-2010 Oracle and/or its affiliates. All rights reserved. -# -# Oracle and Java are registered trademarks of Oracle and/or its affiliates. -# Other names may be trademarks of their respective owners. -# -# The contents of this file are subject to the terms of either the GNU General Public -# License Version 2 only ("GPL") or the Common Development and Distribution -# License("CDDL") (collectively, the "License"). You may not use this file except in -# compliance with the License. You can obtain a copy of the License at -# http://www.netbeans.org/cddl-gplv2.html or nbbuild/licenses/CDDL-GPL-2-CP. See the -# License for the specific language governing permissions and limitations under the -# License. When distributing the software, include this License Header Notice in -# each file and include the License file at nbbuild/licenses/CDDL-GPL-2-CP. Oracle -# designates this particular file as subject to the "Classpath" exception as provided -# by Oracle in the GPL Version 2 section of the License file that accompanied this code. -# If applicable, add the following below the License Header, with the fields enclosed -# by brackets [] replaced by your own identifying information: -# "Portions Copyrighted [year] [name of copyright owner]" -# -# Contributor(s): -# -# The Original Software is NetBeans. The Initial Developer of the Original Software -# is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun Microsystems, Inc. All -# Rights Reserved. -# -# If you wish your version of this file to be governed by only the CDDL or only the -# GPL Version 2, indicate your decision by adding "[Contributor] elects to include -# this software in this distribution under the [CDDL or GPL Version 2] license." If -# you do not indicate a single choice of license, a recipient has the option to -# distribute your version of this file under either the CDDL, the GPL Version 2 or -# to extend the choice of license to its licensees as provided above. However, if you -# add GPL Version 2 code and therefore, elected the GPL Version 2 license, then the -# option applies only if the new code is made subject to such option by the copyright -# holder. -# - -# path to the directory where the base build scripts library and properties -# reside -common.dir=../../../../.common - -# path to the local working directory; this directory which will be the target -# for checking out the sources and will be used for the build process -# * this path can be either absolute or relative in any unix environment, -# however, only relative paths are supported on windows, as the cygwin scp -# command does not properly handle colon in local paths -work.dir=./build - -# path to the local distributive directory; this directory will contain the -# distributive file, when (if) the build script finishes successfully -dist.dir=./dist - -# path to the engine sources within the cvs module; it should be a relative -# path from the module's root, e.g. for 'nbi/engine', where 'nbi is the module -# name, the path should be 'engine' -cvs.path=engine - -# name of the engine's distributive file -engine.dist.file.name=nbi-engine.jar - -# we do not need to build anything native for the netbeans-specific engine, as it -# does not contain any native components -build.native=false - -# custom parameter for the netbeans project build script - in case of the netbeans -# nbi engine - the location of the core engine jar file -nb.custom.parameter=-Dreference.NBI_Engine.jar=${core.engine.dist.file} - -# sources parameters; a search-and-replace will be run over the sources after -# check-out, replacing [token] => [value]; regular expressions are not allowed -# * ${sources.params.length} - total number of the parameters -# * indices should start with 1 -# * parameters are not i18n compliant - -sources.params.length=0 diff --git a/nbi/stub/ext/infra/build/engine/build.xml b/nbi/stub/ext/infra/build/engine/build.xml deleted file mode 100644 index eec305c73..000000000 --- a/nbi/stub/ext/infra/build/engine/build.xml +++ /dev/null @@ -1,77 +0,0 @@ - - - - - - - - - - - - - - - - - - - - In order to 'clean', 'checkout' and 'build' the engine use the - 'build-all' target. To 'clean', 'checkout', 'build' and - 'release' - use 'release-all'. - - For more details, please see the source of this build script. - - - diff --git a/nbi/stub/ext/infra/build/products/README b/nbi/stub/ext/infra/build/products/README deleted file mode 100644 index 3a4ab735c..000000000 --- a/nbi/stub/ext/infra/build/products/README +++ /dev/null @@ -1,4 +0,0 @@ -Updating Bundled Products: -a) To update the JDK edit ~/jdks/download-jdks.sh and make sure to clean any caches (on CI-Systems like Travis) or delete the file links in ~/jdks/ - -The product "helloworld" is the SDK itself (don't ask me, legacy code) diff --git a/nbi/stub/ext/infra/build/products/helloworld/build.properties b/nbi/stub/ext/infra/build/products/helloworld/build.properties deleted file mode 100644 index 494c500e6..000000000 --- a/nbi/stub/ext/infra/build/products/helloworld/build.properties +++ /dev/null @@ -1,159 +0,0 @@ -# -# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. -# -# Copyright 1997-2010 Oracle and/or its affiliates. All rights reserved. -# -# Oracle and Java are registered trademarks of Oracle and/or its affiliates. -# Other names may be trademarks of their respective owners. -# -# The contents of this file are subject to the terms of either the GNU General Public -# License Version 2 only ("GPL") or the Common Development and Distribution -# License("CDDL") (collectively, the "License"). You may not use this file except in -# compliance with the License. You can obtain a copy of the License at -# http://www.netbeans.org/cddl-gplv2.html or nbbuild/licenses/CDDL-GPL-2-CP. See the -# License for the specific language governing permissions and limitations under the -# License. When distributing the software, include this License Header Notice in -# each file and include the License file at nbbuild/licenses/CDDL-GPL-2-CP. Oracle -# designates this particular file as subject to the "Classpath" exception as provided -# by Oracle in the GPL Version 2 section of the License file that accompanied this code. -# If applicable, add the following below the License Header, with the fields enclosed -# by brackets [] replaced by your own identifying information: -# "Portions Copyrighted [year] [name of copyright owner]" -# -# Contributor(s): -# -# The Original Software is NetBeans. The Initial Developer of the Original Software -# is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun Microsystems, Inc. All -# Rights Reserved. -# -# If you wish your version of this file to be governed by only the CDDL or only the -# GPL Version 2, indicate your decision by adding "[Contributor] elects to include -# this software in this distribution under the [CDDL or GPL Version 2] license." If -# you do not indicate a single choice of license, a recipient has the option to -# distribute your version of this file under either the CDDL, the GPL Version 2 or -# to extend the choice of license to its licensees as provided above. However, if you -# add GPL Version 2 code and therefore, elected the GPL Version 2 license, then the -# option applies only if the new code is made subject to such option by the copyright -# holder. -# - -# path to the directory where the base build scripts library and properties -# reside -common.dir=../../../../../.common - -# path to the local working directory; this directory which will be the target -# for checking out the sources and will be used for the build process -# * this path can be either absolute or relative in any unix environment, -# however, only relative paths are supported on windows, as the cygwin scp -# command does not properly handle colon in local paths -work.dir=./build - -# path to the local distributive directory; this directory will contain the -# distributive file, when (if) the build script finishes successfully -dist.dir=./dist - -# path to the products's sources within the cvs module; it should be a relative -# path from the module's root, e.g. for 'nbi/engine', where 'nbi is the module -# name, the path should be 'engine' -cvs.path=components/products/helloworld - -# core product properties: -# * ${product.uid} - product "family" (e.g. nb-ide) -# * ${product.version} - actual products' version; together with the uid it -# forms the unique identifier for the product) -# * ${product.platforms} - the list of platforms that are supported by this -# product (note that this property is not related to native libraries) -product.uid={product-uid} -product.version={product-version} -product.platforms=generic - -# miscellaneous product properties: -# * ${product.status} - default status that the product will have in the -# registry. it is meant to be always "not-installed", unless you want -# something really exotic -# * ${product.offset} - order of the product's node among its parent's -# children, the bigger the offset value, the further the product's node will -# be -# * ${product.expand} - whether to automatically expand the product's node in -# the components tree or not; 'true'/'false' -# * ${product.visible} - whether the product's node is visible or not (note -# that this value will be modified at nbi runtime, 'true' may become 'false' -# if the product is filtered out); 'true'/'false' -# * ${product.features} - list of features that this porduct belongs to; the -# list should be space-separated -product.status=not-installed -product.offset=20000 -product.expand=false -product.visible=true -product.features= - -# list of configuration logic jar files; normally the first one would be the -# distributive file of the product's netbeans project -# * ${product.logic.length} - total number of the files -# * indices should start with 1 -product.logic.length=1 -product.logic.1.path=${nbproject.dist.dir}/${nbproject.dist.file.name} - -# list of product installation data files -# * ${product.data.length} - total number of the files -# * ${product.data.N.uri} - uri at which the installation data file is located -# * ${product.data.N.zip} - whether the data file is a zip archive which needs to -# be extracted or it is a file that should be used directly; 'true'/'false' -# * indices should start with 1 -product.data.length=1 -product.data.1.zip=true -product.data.1.path={product-data-path} -product.data.sub.dir={product-data-sub-dir} - -# modificator for the required disk space parameter; the core value will be the -# sum of unzipped unstallation data files -# * the measurement unit is one byte -product.disk.space.modificator=0 - -# product's requirements (i.e. other products that should be installed -# in order for this product to succesfully install and function) -# * ${product.requirements.length} - total number of the requirements -# * indices should start with 1 -product.requirements.length=0 -#product.requirements.1.uid= -#product.requirements.1.version-lower= -#product.requirements.1.version-upper= - -# product's conflicts (i.e. other products that prevent this product from -# functioning correctly, and thus cannot be installed together with it) -# * ${product.conflicts.length} - total number of the conflicts -# * indices should start with 1 -product.conflicts.length=0 -#product.conflicts.1.uid= -#product.conflicts.1.version-lower= -#product.conflicts.1.version-upper= - -# other products that should be installed prior to this product; these -# dependencies do not imply that the dependent product will be installed at -# all, but if both the current and the dependent product are selected for -# installation, the latter will be installed first -# * ${product.install-afters.length} - total number of the install-afters -# * indices should start with 1 -product.install-afters.length=0 -#product.install-afters.1.uid= - -# additional product's properties; these will appear in the product's -# descriptor and in the registry in the form of -# value tags. -# * ${product.properties.length} - total number of the properties -# * indices should start with 1 -# * properties are not i18n compliant -product.properties.length=3 -product.properties.1.name=installation.location -product.properties.1.value=$N{install}/{product-install-directory-name} -product.properties.2.name=installation.location.windows -product.properties.2.value=$N{install}/{product-install-directory-name-windows} -product.properties.3.name=installation.location.macosx -product.properties.3.value=$N{install}/{product-install-directory-name-macosx}.app - -# sources parameters; a search-and-replace will be run over the sources after -# check-out, replacing [token] => [value]; regular expressions are not allowed -# * ${sources.params.length} - total number of the parameters -# * indices should start with 1 -# * parameters are not i18n compliant -sources.params.length=0 \ No newline at end of file diff --git a/nbi/stub/ext/infra/build/products/helloworld/build.xml b/nbi/stub/ext/infra/build/products/helloworld/build.xml deleted file mode 100644 index 00fbe27f3..000000000 --- a/nbi/stub/ext/infra/build/products/helloworld/build.xml +++ /dev/null @@ -1,98 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - In order to 'clean', 'checkout' and 'build' the group use the - 'build-all' target. To 'clean', 'checkout', 'build' and - 'release' - use 'release-all'. - - For more details, please see the source of this build script. - - - diff --git a/nbi/stub/ext/infra/build/products/jdk/README b/nbi/stub/ext/infra/build/products/jdk/README deleted file mode 100644 index aea89c8d1..000000000 --- a/nbi/stub/ext/infra/build/products/jdk/README +++ /dev/null @@ -1,4 +0,0 @@ -In case you are wondering: -The JDK is packaged for all platforms, only on OS it has to be a special installer item instead of a "bundled JDK", which works on all other platforms. This is (was?) a quirk in the NBI installer. - -See #150 diff --git a/nbi/stub/ext/infra/build/products/jdk/build.properties b/nbi/stub/ext/infra/build/products/jdk/build.properties deleted file mode 100644 index efd7f5784..000000000 --- a/nbi/stub/ext/infra/build/products/jdk/build.properties +++ /dev/null @@ -1,162 +0,0 @@ -# -# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. -# -# Copyright 1997-2010 Oracle and/or its affiliates. All rights reserved. -# -# Oracle and Java are registered trademarks of Oracle and/or its affiliates. -# Other names may be trademarks of their respective owners. -# -# The contents of this file are subject to the terms of either the GNU General Public -# License Version 2 only ("GPL") or the Common Development and Distribution -# License("CDDL") (collectively, the "License"). You may not use this file except in -# compliance with the License. You can obtain a copy of the License at -# http://www.netbeans.org/cddl-gplv2.html or nbbuild/licenses/CDDL-GPL-2-CP. See the -# License for the specific language governing permissions and limitations under the -# License. When distributing the software, include this License Header Notice in -# each file and include the License file at nbbuild/licenses/CDDL-GPL-2-CP. Oracle -# designates this particular file as subject to the "Classpath" exception as provided -# by Oracle in the GPL Version 2 section of the License file that accompanied this code. -# If applicable, add the following below the License Header, with the fields enclosed -# by brackets [] replaced by your own identifying information: -# "Portions Copyrighted [year] [name of copyright owner]" -# -# Contributor(s): -# -# The Original Software is NetBeans. The Initial Developer of the Original Software -# is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun Microsystems, Inc. All -# Rights Reserved. -# -# If you wish your version of this file to be governed by only the CDDL or only the -# GPL Version 2, indicate your decision by adding "[Contributor] elects to include -# this software in this distribution under the [CDDL or GPL Version 2] license." If -# you do not indicate a single choice of license, a recipient has the option to -# distribute your version of this file under either the CDDL, the GPL Version 2 or -# to extend the choice of license to its licensees as provided above. However, if you -# add GPL Version 2 code and therefore, elected the GPL Version 2 license, then the -# option applies only if the new code is made subject to such option by the copyright -# holder. -# - -# path to the directory where the base build scripts library and properties -# reside -common.dir=../../../../../.common - -# path to the local working directory; this directory which will be the target -# for checking out the sources and will be used for the build process -# * this path can be either absolute or relative in any unix environment, -# however, only relative paths are supported on windows, as the cygwin scp -# command does not properly handle colon in local paths -work.dir=./build - -# path to the local distributive directory; this directory will contain the -# distributive file, when (if) the build script finishes successfully -dist.dir=./dist - -# path to the products's sources within the cvs module; it should be a relative -# path from the module's root, e.g. for 'nbi/engine', where 'nbi is the module -# name, the path should be 'engine' -cvs.path=components/products/jdk - -# core product properties: -# * ${product.uid} - product "family" (e.g. nb-ide) -# * ${product.version} - actual products' version; together with the uid it -# forms the unique identifier for the product) -# * ${product.platforms} - the list of platforms that are supported by this -# product (note that this property is not related to native libraries) -product.uid=jdk -#normen - do not change this to the actual app version, it has to be the jME SDK version -product.version={product-version} -# product.platforms=generic -product.platforms=macosx - -# miscellaneous product properties: -# * ${product.status} - default status that the product will have in the -# registry. it is meant to be always "not-installed", unless you want -# something really exotic -# * ${product.offset} - order of the product's node among its parent's -# children, the bigger the offset value, the further the product's node will -# be -# * ${product.expand} - whether to automatically expand the product's node in -# the components tree or not; 'true'/'false' -# * ${product.visible} - whether the product's node is visible or not (note -# that this value will be modified at nbi runtime, 'true' may become 'false' -# if the product is filtered out); 'true'/'false' -# * ${product.features} - list of features that this porduct belongs to; the -# list should be space-separated -product.status=not-installed -product.offset=20000 -product.expand=false -product.visible=true -product.features= - -# list of configuration logic jar files; normally the first one would be the -# distributive file of the product's netbeans project -# * ${product.logic.length} - total number of the files -# * indices should start with 1 -product.logic.length=1 -product.logic.1.path=${nbproject.dist.dir}/${nbproject.dist.file.name} - -# list of product installation data files -# * ${product.data.length} - total number of the files -# * ${product.data.N.uri} - uri at which the installation data file is located -# * ${product.data.N.zip} - whether the data file is a zip archive which needs to -# be extracted or it is a file that should be used directly; 'true'/'false' -# * indices should start with 1 -product.data.length=1 -product.data.1.zip=true -#normen -product.data.1.path=../../../../../../../../jdks/jdk-macosx.zip -product.data.sub.dir=jdk - -# modificator for the required disk space parameter; the core value will be the -# sum of unzipped unstallation data files -# * the measurement unit is one byte -product.disk.space.modificator=0 - -# product's requirements (i.e. other products that should be installed -# in order for this product to succesfully install and function) -# * ${product.requirements.length} - total number of the requirements -# * indices should start with 1 -product.requirements.length=0 -#product.requirements.1.uid= -#product.requirements.1.version-lower= -#product.requirements.1.version-upper= - -# product's conflicts (i.e. other products that prevent this product from -# functioning correctly, and thus cannot be installed together with it) -# * ${product.conflicts.length} - total number of the conflicts -# * indices should start with 1 -product.conflicts.length=0 -#product.conflicts.1.uid= -#product.conflicts.1.version-lower= -#product.conflicts.1.version-upper= - -# other products that should be installed prior to this product; these -# dependencies do not imply that the dependent product will be installed at -# all, but if both the current and the dependent product are selected for -# installation, the latter will be installed first -# * ${product.install-afters.length} - total number of the install-afters -# * indices should start with 1 -product.install-afters.length=0 -#product.install-afters.1.uid= - -# additional product's properties; these will appear in the product's -# descriptor and in the registry in the form of -# value tags. -# * ${product.properties.length} - total number of the properties -# * indices should start with 1 -# * properties are not i18n compliant -product.properties.length=3 -product.properties.1.name=installation.location -product.properties.1.value=$N{install}/{product-install-directory-name} -product.properties.2.name=installation.location.windows -product.properties.2.value=$N{install}/{product-install-directory-name-windows} -product.properties.3.name=installation.location.macosx -product.properties.3.value=$N{install}/{product-install-directory-name-macosx}.app - -# sources parameters; a search-and-replace will be run over the sources after -# check-out, replacing [token] => [value]; regular expressions are not allowed -# * ${sources.params.length} - total number of the parameters -# * indices should start with 1 -# * parameters are not i18n compliant -sources.params.length=0 diff --git a/nbi/stub/ext/infra/build/products/jdk/build.xml b/nbi/stub/ext/infra/build/products/jdk/build.xml deleted file mode 100644 index 51179e25e..000000000 --- a/nbi/stub/ext/infra/build/products/jdk/build.xml +++ /dev/null @@ -1,98 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - In order to 'clean', 'checkout' and 'build' the group use the - 'build-all' target. To 'clean', 'checkout', 'build' and - 'release' - use 'release-all'. - - For more details, please see the source of this build script. - - - diff --git a/nbi/stub/template.xml b/nbi/stub/template.xml deleted file mode 100644 index be69f1883..000000000 --- a/nbi/stub/template.xml +++ /dev/null @@ -1,200 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/nbi/stub/tmpl.properties b/nbi/stub/tmpl.properties deleted file mode 100644 index e8b316a9c..000000000 --- a/nbi/stub/tmpl.properties +++ /dev/null @@ -1,16 +0,0 @@ -suite.location=C:/Documents and Settings/Lipin/My Documents/NetBeansProjects/MyApp - -nbi.cluster.location=D:/space/NB-IDE/proto/nbbuild/netbeans/extra - -nbi.stub.location=${nbi.cluster.location}/nbi/stub -nbi.stub.common.location=${nbi.cluster.location}/nbi/.common -nbi.ant.tasks.jar=${nbi.cluster.location}/modules/ext/nbi-ant-tasks.jar -nbi.registries.management.jar=${nbi.cluster.location}/modules/ext/nbi-registries-management.jar -nbi.engine.jar=${nbi.cluster.location}/modules/ext/nbi-engine.jar - -generate.installer.for.platforms=windows linux macosx - -generator-jdk-location-forward-slashes=C:/Program Files/Java/jdk1.5.0_16 -pack200.enabled=false - -suite.nbi.product.uid=myapp \ No newline at end of file