SDK NBI Installer:
- Add distribution formats windows-x86, windows-x68, linux-x86, linux-x64, macosx - Add way to package JDK to NBI installer - Add workaround to standard NBI JDK packaging for OSX - Add way to download and package Blender for all platforms when creating SDK installers - Fix code completion in NBI projects pt2 git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10147 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
e88c86e168
commit
97ae6fcebc
74
sdk/nbi/stub/ext/components/products/blender/build.xml
Normal file
74
sdk/nbi/stub/ext/components/products/blender/build.xml
Normal file
@ -0,0 +1,74 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!-- You may freely edit this file. See commented blocks below for -->
|
||||||
|
<!-- some examples of how to customize the build. -->
|
||||||
|
<!-- (If you delete it and reopen the project it will be recreated.) -->
|
||||||
|
<!-- By default, only the Clean and Build commands use this build script. -->
|
||||||
|
<!-- Commands such as Run, Debug, and Test only use this build script if -->
|
||||||
|
<!-- the Compile on Save feature is turned off for the project. -->
|
||||||
|
<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
|
||||||
|
<!-- in the project's Project Properties dialog box.-->
|
||||||
|
<project name="helloworld" default="default" basedir=".">
|
||||||
|
<description>Builds, tests, and runs the project helloworld.</description>
|
||||||
|
<import file="nbproject/build-impl.xml"/>
|
||||||
|
<!--
|
||||||
|
|
||||||
|
There exist several targets which are by default empty and which can be
|
||||||
|
used for execution of your tasks. These targets are usually executed
|
||||||
|
before and after some main targets. They are:
|
||||||
|
|
||||||
|
-pre-init: called before initialization of project properties
|
||||||
|
-post-init: called after initialization of project properties
|
||||||
|
-pre-compile: called before javac compilation
|
||||||
|
-post-compile: called after javac compilation
|
||||||
|
-pre-compile-single: called before javac compilation of single file
|
||||||
|
-post-compile-single: called after javac compilation of single file
|
||||||
|
-pre-compile-test: called before javac compilation of JUnit tests
|
||||||
|
-post-compile-test: called after javac compilation of JUnit tests
|
||||||
|
-pre-compile-test-single: called before javac compilation of single JUnit test
|
||||||
|
-post-compile-test-single: called after javac compilation of single JUunit test
|
||||||
|
-pre-jar: called before JAR building
|
||||||
|
-post-jar: called after JAR building
|
||||||
|
-post-clean: called after cleaning build products
|
||||||
|
|
||||||
|
(Targets beginning with '-' are not intended to be called on their own.)
|
||||||
|
|
||||||
|
Example of inserting an obfuscator after compilation could look like this:
|
||||||
|
|
||||||
|
<target name="-post-compile">
|
||||||
|
<obfuscate>
|
||||||
|
<fileset dir="${build.classes.dir}"/>
|
||||||
|
</obfuscate>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
For list of available properties check the imported
|
||||||
|
nbproject/build-impl.xml file.
|
||||||
|
|
||||||
|
|
||||||
|
Another way to customize the build is by overriding existing main targets.
|
||||||
|
The targets of interest are:
|
||||||
|
|
||||||
|
-init-macrodef-javac: defines macro for javac compilation
|
||||||
|
-init-macrodef-junit: defines macro for junit execution
|
||||||
|
-init-macrodef-debug: defines macro for class debugging
|
||||||
|
-init-macrodef-java: defines macro for class execution
|
||||||
|
-do-jar-with-manifest: JAR building (if you are using a manifest)
|
||||||
|
-do-jar-without-manifest: JAR building (if you are not using a manifest)
|
||||||
|
run: execution of project
|
||||||
|
-javadoc-build: Javadoc generation
|
||||||
|
test-report: JUnit report generation
|
||||||
|
|
||||||
|
An example of overriding the target for project execution could look like this:
|
||||||
|
|
||||||
|
<target name="run" depends="helloworld-impl.jar">
|
||||||
|
<exec dir="bin" executable="launcher.exe">
|
||||||
|
<arg file="${dist.jar}"/>
|
||||||
|
</exec>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
Notice that the overridden target depends on the jar target and not only on
|
||||||
|
the compile target as the regular run target does. Again, for a list of available
|
||||||
|
properties which you can use, check the target you are overriding in the
|
||||||
|
nbproject/build-impl.xml file.
|
||||||
|
|
||||||
|
-->
|
||||||
|
</project>
|
@ -0,0 +1,42 @@
|
|||||||
|
#
|
||||||
|
# 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=Blender 3D editor in a version that is \
|
||||||
|
compatible with jME3, recommended for jME3 game development.
|
BIN
sdk/nbi/stub/ext/components/products/blender/data/icon.png
Normal file
BIN
sdk/nbi/stub/ext/components/products/blender/data/icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 821 B |
BIN
sdk/nbi/stub/ext/components/products/blender/data/icon48.png
Normal file
BIN
sdk/nbi/stub/ext/components/products/blender/data/icon48.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.9 KiB |
1
sdk/nbi/stub/ext/components/products/blender/manifest.mf
Normal file
1
sdk/nbi/stub/ext/components/products/blender/manifest.mf
Normal file
@ -0,0 +1 @@
|
|||||||
|
Configuration-Logic-Class: org.mycompany.ConfigurationLogic
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,8 @@
|
|||||||
|
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=eb8fa073
|
||||||
|
nbproject/build-impl.xml.script.CRC32=d884e704
|
||||||
|
nbproject/build-impl.xml.stylesheet.CRC32=6ddba6b6@1.53.1.46
|
@ -0,0 +1,64 @@
|
|||||||
|
application.title=blender
|
||||||
|
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.test.classpath=\
|
||||||
|
${run.test.classpath}
|
||||||
|
# This directory is removed when the project is cleaned:
|
||||||
|
dist.dir=dist
|
||||||
|
dist.jar=${dist.dir}/blender.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.source=1.5
|
||||||
|
javac.target=1.5
|
||||||
|
javac.test.classpath=\
|
||||||
|
${javac.classpath}:\
|
||||||
|
${build.classes.dir}:\
|
||||||
|
${libs.junit.classpath}:\
|
||||||
|
${libs.junit_4.classpath}
|
||||||
|
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.test.classpath=\
|
||||||
|
${javac.test.classpath}:\
|
||||||
|
${build.test.classes.dir}
|
||||||
|
source.encoding=UTF-8
|
||||||
|
src.dir=src
|
||||||
|
test.src.dir=test
|
@ -0,0 +1,26 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project xmlns="http://www.netbeans.org/ns/project/1">
|
||||||
|
<type>org.netbeans.modules.java.j2seproject</type>
|
||||||
|
<configuration>
|
||||||
|
<data xmlns="http://www.netbeans.org/ns/j2se-project/3">
|
||||||
|
<name>blender</name>
|
||||||
|
<minimum-ant-version>1.6.5</minimum-ant-version>
|
||||||
|
<source-roots>
|
||||||
|
<root id="src.dir"/>
|
||||||
|
</source-roots>
|
||||||
|
<test-roots>
|
||||||
|
<root id="test.src.dir"/>
|
||||||
|
</test-roots>
|
||||||
|
</data>
|
||||||
|
<references xmlns="http://www.netbeans.org/ns/ant-project-references/1">
|
||||||
|
<reference>
|
||||||
|
<foreign-project>Core_NBI_Engine</foreign-project>
|
||||||
|
<artifact-type>jar</artifact-type>
|
||||||
|
<script>build.xml</script>
|
||||||
|
<target>jar</target>
|
||||||
|
<clean-target>clean</clean-target>
|
||||||
|
<id>jar</id>
|
||||||
|
</reference>
|
||||||
|
</references>
|
||||||
|
</configuration>
|
||||||
|
</project>
|
@ -0,0 +1,82 @@
|
|||||||
|
package org.mycompany;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import org.netbeans.installer.product.Registry;
|
||||||
|
import org.netbeans.installer.product.components.ProductConfigurationLogic;
|
||||||
|
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.helper.Platform;
|
||||||
|
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<WizardComponent> wizardComponents;
|
||||||
|
|
||||||
|
// constructor //////////////////////////////////////////////////////////////////
|
||||||
|
public ConfigurationLogic() throws InitializationException {
|
||||||
|
wizardComponents = Wizard.loadWizardComponents(
|
||||||
|
WIZARD_COMPONENTS_URI,
|
||||||
|
getClass().getClassLoader());
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<WizardComponent> 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
|
||||||
|
}
|
@ -0,0 +1,43 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!--
|
||||||
|
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.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<wizard xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="wizard-components.xsd">
|
||||||
|
<!--component class="org.mycompany.wizard.panels.ShortcutCreationPanel"/-->
|
||||||
|
</wizard>
|
@ -0,0 +1,49 @@
|
|||||||
|
#
|
||||||
|
# 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.
|
||||||
|
#
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
# will be augmented with the product name from data/Bundle.properties
|
||||||
|
P.title= Installation
|
||||||
|
P.description=Create desktop shortcut.
|
||||||
|
|
||||||
|
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
|
||||||
|
|
@ -0,0 +1,174 @@
|
|||||||
|
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.ErrorMessagePanel;
|
||||||
|
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 ShortcutCreationPanel extends ErrorMessagePanel {
|
||||||
|
|
||||||
|
public ShortcutCreationPanel() {
|
||||||
|
setProperty(TITLE_PROPERTY,
|
||||||
|
DEFAULT_TITLE);
|
||||||
|
setProperty(DESCRIPTION_PROPERTY,
|
||||||
|
DEFAULT_DESCRIPTION);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public WizardUi getWizardUi() {
|
||||||
|
if (wizardUi == null) {
|
||||||
|
wizardUi = new ShortcutCreationPanelUi(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 ShortcutCreationPanelUi extends ErrorMessagePanelUi {
|
||||||
|
|
||||||
|
protected ShortcutCreationPanel panel;
|
||||||
|
|
||||||
|
public ShortcutCreationPanelUi(ShortcutCreationPanel panel) {
|
||||||
|
super(panel);
|
||||||
|
|
||||||
|
|
||||||
|
this.panel = panel;
|
||||||
|
}
|
||||||
|
|
||||||
|
public SwingUi getSwingUi(SwingContainer container) {
|
||||||
|
if (swingUi == null) {
|
||||||
|
swingUi = new ShortcutCreationPanelSwingUi(panel, container);
|
||||||
|
}
|
||||||
|
|
||||||
|
return super.getSwingUi(container);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static class ShortcutCreationPanelSwingUi extends ErrorMessagePanelSwingUi {
|
||||||
|
|
||||||
|
protected ShortcutCreationPanel panel;
|
||||||
|
private NbiCheckBox desktopShortcutComboBox;
|
||||||
|
private NbiCheckBox startMenuShortcutComboBox;
|
||||||
|
|
||||||
|
public ShortcutCreationPanelSwingUi(
|
||||||
|
final ShortcutCreationPanel 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("data","product.display.name") + ResourceUtils.getString(ShortcutCreationPanel.class,
|
||||||
|
"P.title"); // NOI18N
|
||||||
|
public static final String DEFAULT_DESCRIPTION =
|
||||||
|
ResourceUtils.getString(ShortcutCreationPanel.class,
|
||||||
|
"P.description"); // NOI18N
|
||||||
|
public static final String CREATE_DESKTOP_SHORTCUT_NAME =
|
||||||
|
ResourceUtils.getString(ShortcutCreationPanel.class,
|
||||||
|
"P.create.desktop.shortcut"); // NOI18N
|
||||||
|
public static final String CREATE_START_MENU_SHORTCUT_NAME_WINDOWS =
|
||||||
|
ResourceUtils.getString(ShortcutCreationPanel.class,
|
||||||
|
"P.create.start.menu.shortcut.windows"); // NOI18N
|
||||||
|
public static final String CREATE_START_MENU_SHORTCUT_NAME_UNIX =
|
||||||
|
ResourceUtils.getString(ShortcutCreationPanel.class,
|
||||||
|
"P.create.start.menu.shortcut.unix"); // NOI18N
|
||||||
|
public static final String CREATE_START_MENU_SHORTCUT_NAME_MAC =
|
||||||
|
ResourceUtils.getString(ShortcutCreationPanel.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";
|
||||||
|
}
|
74
sdk/nbi/stub/ext/components/products/jdk/build.xml
Normal file
74
sdk/nbi/stub/ext/components/products/jdk/build.xml
Normal file
@ -0,0 +1,74 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!-- You may freely edit this file. See commented blocks below for -->
|
||||||
|
<!-- some examples of how to customize the build. -->
|
||||||
|
<!-- (If you delete it and reopen the project it will be recreated.) -->
|
||||||
|
<!-- By default, only the Clean and Build commands use this build script. -->
|
||||||
|
<!-- Commands such as Run, Debug, and Test only use this build script if -->
|
||||||
|
<!-- the Compile on Save feature is turned off for the project. -->
|
||||||
|
<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
|
||||||
|
<!-- in the project's Project Properties dialog box.-->
|
||||||
|
<project name="helloworld" default="default" basedir=".">
|
||||||
|
<description>Builds, tests, and runs the project helloworld.</description>
|
||||||
|
<import file="nbproject/build-impl.xml"/>
|
||||||
|
<!--
|
||||||
|
|
||||||
|
There exist several targets which are by default empty and which can be
|
||||||
|
used for execution of your tasks. These targets are usually executed
|
||||||
|
before and after some main targets. They are:
|
||||||
|
|
||||||
|
-pre-init: called before initialization of project properties
|
||||||
|
-post-init: called after initialization of project properties
|
||||||
|
-pre-compile: called before javac compilation
|
||||||
|
-post-compile: called after javac compilation
|
||||||
|
-pre-compile-single: called before javac compilation of single file
|
||||||
|
-post-compile-single: called after javac compilation of single file
|
||||||
|
-pre-compile-test: called before javac compilation of JUnit tests
|
||||||
|
-post-compile-test: called after javac compilation of JUnit tests
|
||||||
|
-pre-compile-test-single: called before javac compilation of single JUnit test
|
||||||
|
-post-compile-test-single: called after javac compilation of single JUunit test
|
||||||
|
-pre-jar: called before JAR building
|
||||||
|
-post-jar: called after JAR building
|
||||||
|
-post-clean: called after cleaning build products
|
||||||
|
|
||||||
|
(Targets beginning with '-' are not intended to be called on their own.)
|
||||||
|
|
||||||
|
Example of inserting an obfuscator after compilation could look like this:
|
||||||
|
|
||||||
|
<target name="-post-compile">
|
||||||
|
<obfuscate>
|
||||||
|
<fileset dir="${build.classes.dir}"/>
|
||||||
|
</obfuscate>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
For list of available properties check the imported
|
||||||
|
nbproject/build-impl.xml file.
|
||||||
|
|
||||||
|
|
||||||
|
Another way to customize the build is by overriding existing main targets.
|
||||||
|
The targets of interest are:
|
||||||
|
|
||||||
|
-init-macrodef-javac: defines macro for javac compilation
|
||||||
|
-init-macrodef-junit: defines macro for junit execution
|
||||||
|
-init-macrodef-debug: defines macro for class debugging
|
||||||
|
-init-macrodef-java: defines macro for class execution
|
||||||
|
-do-jar-with-manifest: JAR building (if you are using a manifest)
|
||||||
|
-do-jar-without-manifest: JAR building (if you are not using a manifest)
|
||||||
|
run: execution of project
|
||||||
|
-javadoc-build: Javadoc generation
|
||||||
|
test-report: JUnit report generation
|
||||||
|
|
||||||
|
An example of overriding the target for project execution could look like this:
|
||||||
|
|
||||||
|
<target name="run" depends="helloworld-impl.jar">
|
||||||
|
<exec dir="bin" executable="launcher.exe">
|
||||||
|
<arg file="${dist.jar}"/>
|
||||||
|
</exec>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
Notice that the overridden target depends on the jar target and not only on
|
||||||
|
the compile target as the regular run target does. Again, for a list of available
|
||||||
|
properties which you can use, check the target you are overriding in the
|
||||||
|
nbproject/build-impl.xml file.
|
||||||
|
|
||||||
|
-->
|
||||||
|
</project>
|
@ -0,0 +1,42 @@
|
|||||||
|
#
|
||||||
|
# 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.
|
BIN
sdk/nbi/stub/ext/components/products/jdk/data/icon.png
Normal file
BIN
sdk/nbi/stub/ext/components/products/jdk/data/icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 821 B |
BIN
sdk/nbi/stub/ext/components/products/jdk/data/icon48.png
Normal file
BIN
sdk/nbi/stub/ext/components/products/jdk/data/icon48.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.9 KiB |
1
sdk/nbi/stub/ext/components/products/jdk/manifest.mf
Normal file
1
sdk/nbi/stub/ext/components/products/jdk/manifest.mf
Normal file
@ -0,0 +1 @@
|
|||||||
|
Configuration-Logic-Class: org.mycompany.ConfigurationLogic
|
1414
sdk/nbi/stub/ext/components/products/jdk/nbproject/build-impl.xml
Normal file
1414
sdk/nbi/stub/ext/components/products/jdk/nbproject/build-impl.xml
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,8 @@
|
|||||||
|
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=9989608c
|
||||||
|
nbproject/build-impl.xml.stylesheet.CRC32=6ddba6b6@1.53.1.46
|
@ -0,0 +1,64 @@
|
|||||||
|
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.test.classpath=\
|
||||||
|
${run.test.classpath}
|
||||||
|
# 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.source=1.5
|
||||||
|
javac.target=1.5
|
||||||
|
javac.test.classpath=\
|
||||||
|
${javac.classpath}:\
|
||||||
|
${build.classes.dir}:\
|
||||||
|
${libs.junit.classpath}:\
|
||||||
|
${libs.junit_4.classpath}
|
||||||
|
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.test.classpath=\
|
||||||
|
${javac.test.classpath}:\
|
||||||
|
${build.test.classes.dir}
|
||||||
|
source.encoding=UTF-8
|
||||||
|
src.dir=src
|
||||||
|
test.src.dir=test
|
@ -0,0 +1,26 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project xmlns="http://www.netbeans.org/ns/project/1">
|
||||||
|
<type>org.netbeans.modules.java.j2seproject</type>
|
||||||
|
<configuration>
|
||||||
|
<data xmlns="http://www.netbeans.org/ns/j2se-project/3">
|
||||||
|
<name>JDK</name>
|
||||||
|
<minimum-ant-version>1.6.5</minimum-ant-version>
|
||||||
|
<source-roots>
|
||||||
|
<root id="src.dir"/>
|
||||||
|
</source-roots>
|
||||||
|
<test-roots>
|
||||||
|
<root id="test.src.dir"/>
|
||||||
|
</test-roots>
|
||||||
|
</data>
|
||||||
|
<references xmlns="http://www.netbeans.org/ns/ant-project-references/1">
|
||||||
|
<reference>
|
||||||
|
<foreign-project>Core_NBI_Engine</foreign-project>
|
||||||
|
<artifact-type>jar</artifact-type>
|
||||||
|
<script>build.xml</script>
|
||||||
|
<target>jar</target>
|
||||||
|
<clean-target>clean</clean-target>
|
||||||
|
<id>jar</id>
|
||||||
|
</reference>
|
||||||
|
</references>
|
||||||
|
</configuration>
|
||||||
|
</project>
|
@ -0,0 +1,80 @@
|
|||||||
|
package org.mycompany;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
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<WizardComponent> wizardComponents;
|
||||||
|
|
||||||
|
// constructor //////////////////////////////////////////////////////////////////
|
||||||
|
public ConfigurationLogic() throws InitializationException {
|
||||||
|
wizardComponents = Wizard.loadWizardComponents(
|
||||||
|
WIZARD_COMPONENTS_URI,
|
||||||
|
getClass().getClassLoader());
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<WizardComponent> 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
|
||||||
|
}
|
@ -0,0 +1,42 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!--
|
||||||
|
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.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<wizard xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="wizard-components.xsd">
|
||||||
|
</wizard>
|
@ -0,0 +1,161 @@
|
|||||||
|
#
|
||||||
|
# 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/blender
|
||||||
|
|
||||||
|
# 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=blender
|
||||||
|
#normen - do not change this to the actual app version, it has to be the jME SDK version
|
||||||
|
product.version={product-version}
|
||||||
|
product.platforms=linux-x64
|
||||||
|
|
||||||
|
# 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=false
|
||||||
|
product.data.1.uri=http://download.blender.org/release/Blender2.65/blender-2.65a-linux-glibc211-x86_64.tar.bz2
|
||||||
|
product.data.tar=blender-2.65a-linux-glibc211-x86_64.tar.bz2
|
||||||
|
product.data.sub.dir=blender-2.65a-linux-glibc211-x86_64
|
||||||
|
|
||||||
|
# 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
|
||||||
|
# <property name="[name]">value</property> 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
|
@ -0,0 +1,101 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!--
|
||||||
|
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.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!--
|
||||||
|
This is the build script for the helloworld product package.
|
||||||
|
|
||||||
|
It inherits most of the functionality from the base script for building nbi
|
||||||
|
product packages, while providing this instance-specific values for several
|
||||||
|
core properties. For more details on the values of these properties see
|
||||||
|
the build.properties file.
|
||||||
|
-->
|
||||||
|
<project name="helloworld-product" default="usage" basedir=".">
|
||||||
|
<!-- import the properties that are specific to this environment -->
|
||||||
|
<property file="${environment.properties}"/>
|
||||||
|
|
||||||
|
<!-- import the properties that are specific to this product package -->
|
||||||
|
<property file="build.properties"/>
|
||||||
|
|
||||||
|
<!-- import the base script for building product packages -->
|
||||||
|
<import file="${common.dir}/product.xml" optional="false"/>
|
||||||
|
|
||||||
|
<target name="-pre-package">
|
||||||
|
<untar src="${data.directory}/${product.data.tar}" dest="${data.directory}" compression="bzip2"/>
|
||||||
|
<delete file="${data.directory}/${product.data.tar}"/>
|
||||||
|
|
||||||
|
<mkdir dir="${data.directory}/__tmpdir__"/>
|
||||||
|
|
||||||
|
<move todir="${data.directory}/__tmpdir__">
|
||||||
|
<fileset dir="${data.directory}/${product.data.sub.dir}">
|
||||||
|
<include name="**"/>
|
||||||
|
</fileset>
|
||||||
|
</move>
|
||||||
|
|
||||||
|
<delete dir="${data.directory}/${product.data.sub.dir}" includeemptydirs="true"/>
|
||||||
|
|
||||||
|
<move todir="${data.directory}">
|
||||||
|
<fileset dir="${data.directory}/__tmpdir__">
|
||||||
|
<include name="**"/>
|
||||||
|
</fileset>
|
||||||
|
</move>
|
||||||
|
<delete dir="${data.directory}/__tmpdir__" includeemptydirs="true"/>
|
||||||
|
<!--
|
||||||
|
<exec executable="sh" failonerror="false" dir="${data.directory}">
|
||||||
|
<arg value="-c"/>
|
||||||
|
<arg value="chmod a+x bin/*.sh"/>
|
||||||
|
</exec>
|
||||||
|
-->
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
The default target.
|
||||||
|
|
||||||
|
Does nothing except printing the usage information.
|
||||||
|
-->
|
||||||
|
<target name="usage">
|
||||||
|
<echo>
|
||||||
|
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.
|
||||||
|
</echo>
|
||||||
|
</target>
|
||||||
|
</project>
|
@ -0,0 +1,161 @@
|
|||||||
|
#
|
||||||
|
# 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/blender
|
||||||
|
|
||||||
|
# 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=blender
|
||||||
|
#normen - do not change this to the actual app version, it has to be the jME SDK version
|
||||||
|
product.version={product-version}
|
||||||
|
product.platforms=linux-x86
|
||||||
|
|
||||||
|
# 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=false
|
||||||
|
product.data.1.uri=http://download.blender.org/release/Blender2.65/blender-2.65a-linux-glibc211-i686.tar.bz2
|
||||||
|
product.data.tar=blender-2.65a-linux-glibc211-i686.tar.bz2
|
||||||
|
product.data.sub.dir=blender-2.65a-linux-glibc211-i686
|
||||||
|
|
||||||
|
# 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
|
||||||
|
# <property name="[name]">value</property> 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
|
@ -0,0 +1,101 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!--
|
||||||
|
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.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!--
|
||||||
|
This is the build script for the helloworld product package.
|
||||||
|
|
||||||
|
It inherits most of the functionality from the base script for building nbi
|
||||||
|
product packages, while providing this instance-specific values for several
|
||||||
|
core properties. For more details on the values of these properties see
|
||||||
|
the build.properties file.
|
||||||
|
-->
|
||||||
|
<project name="helloworld-product" default="usage" basedir=".">
|
||||||
|
<!-- import the properties that are specific to this environment -->
|
||||||
|
<property file="${environment.properties}"/>
|
||||||
|
|
||||||
|
<!-- import the properties that are specific to this product package -->
|
||||||
|
<property file="build.properties"/>
|
||||||
|
|
||||||
|
<!-- import the base script for building product packages -->
|
||||||
|
<import file="${common.dir}/product.xml" optional="false"/>
|
||||||
|
|
||||||
|
<target name="-pre-package">
|
||||||
|
<untar src="${data.directory}/${product.data.tar}" dest="${data.directory}" compression="bzip2"/>
|
||||||
|
<delete file="${data.directory}/${product.data.tar}"/>
|
||||||
|
|
||||||
|
<mkdir dir="${data.directory}/__tmpdir__"/>
|
||||||
|
|
||||||
|
<move todir="${data.directory}/__tmpdir__">
|
||||||
|
<fileset dir="${data.directory}/${product.data.sub.dir}">
|
||||||
|
<include name="**"/>
|
||||||
|
</fileset>
|
||||||
|
</move>
|
||||||
|
|
||||||
|
<delete dir="${data.directory}/${product.data.sub.dir}" includeemptydirs="true"/>
|
||||||
|
|
||||||
|
<move todir="${data.directory}">
|
||||||
|
<fileset dir="${data.directory}/__tmpdir__">
|
||||||
|
<include name="**"/>
|
||||||
|
</fileset>
|
||||||
|
</move>
|
||||||
|
<delete dir="${data.directory}/__tmpdir__" includeemptydirs="true"/>
|
||||||
|
<!--
|
||||||
|
<exec executable="sh" failonerror="false" dir="${data.directory}">
|
||||||
|
<arg value="-c"/>
|
||||||
|
<arg value="chmod a+x bin/*.sh"/>
|
||||||
|
</exec>
|
||||||
|
-->
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
The default target.
|
||||||
|
|
||||||
|
Does nothing except printing the usage information.
|
||||||
|
-->
|
||||||
|
<target name="usage">
|
||||||
|
<echo>
|
||||||
|
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.
|
||||||
|
</echo>
|
||||||
|
</target>
|
||||||
|
</project>
|
@ -0,0 +1,162 @@
|
|||||||
|
#
|
||||||
|
# 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/blender
|
||||||
|
|
||||||
|
# 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=blender
|
||||||
|
#normen - do not change this to the actual app version, it has to be the jME SDK version
|
||||||
|
product.version={product-version}
|
||||||
|
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.uri=http://download.blender.org/release/Blender2.65/blender-2.65a-OSX_10.6-x86_64.zip
|
||||||
|
product.data.root=Blender
|
||||||
|
product.data.sub.dir=Blender/blender.app/Contents/MacOS
|
||||||
|
|
||||||
|
# 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
|
||||||
|
# <property name="[name]">value</property> 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
|
@ -0,0 +1,98 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!--
|
||||||
|
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.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!--
|
||||||
|
This is the build script for the helloworld product package.
|
||||||
|
|
||||||
|
It inherits most of the functionality from the base script for building nbi
|
||||||
|
product packages, while providing this instance-specific values for several
|
||||||
|
core properties. For more details on the values of these properties see
|
||||||
|
the build.properties file.
|
||||||
|
-->
|
||||||
|
<project name="helloworld-product" default="usage" basedir=".">
|
||||||
|
<!-- import the properties that are specific to this environment -->
|
||||||
|
<property file="${environment.properties}"/>
|
||||||
|
|
||||||
|
<!-- import the properties that are specific to this product package -->
|
||||||
|
<property file="build.properties"/>
|
||||||
|
|
||||||
|
<!-- import the base script for building product packages -->
|
||||||
|
<import file="${common.dir}/product.xml" optional="false"/>
|
||||||
|
|
||||||
|
<target name="-pre-package">
|
||||||
|
<mkdir dir="${data.directory}/__tmpdir__"/>
|
||||||
|
|
||||||
|
<move todir="${data.directory}/__tmpdir__">
|
||||||
|
<fileset dir="${data.directory}/${product.data.sub.dir}">
|
||||||
|
<include name="**"/>
|
||||||
|
</fileset>
|
||||||
|
</move>
|
||||||
|
|
||||||
|
<delete dir="${data.directory}/${product.data.root}" includeemptydirs="true"/>
|
||||||
|
|
||||||
|
<move todir="${data.directory}">
|
||||||
|
<fileset dir="${data.directory}/__tmpdir__">
|
||||||
|
<include name="**"/>
|
||||||
|
</fileset>
|
||||||
|
</move>
|
||||||
|
<delete dir="${data.directory}/__tmpdir__" includeemptydirs="true"/>
|
||||||
|
<!--
|
||||||
|
<exec executable="sh" failonerror="false" dir="${data.directory}">
|
||||||
|
<arg value="-c"/>
|
||||||
|
<arg value="chmod a+x bin/*.sh"/>
|
||||||
|
</exec>
|
||||||
|
-->
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
The default target.
|
||||||
|
|
||||||
|
Does nothing except printing the usage information.
|
||||||
|
-->
|
||||||
|
<target name="usage">
|
||||||
|
<echo>
|
||||||
|
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.
|
||||||
|
</echo>
|
||||||
|
</target>
|
||||||
|
</project>
|
@ -0,0 +1,160 @@
|
|||||||
|
#
|
||||||
|
# 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/blender
|
||||||
|
|
||||||
|
# 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=blender
|
||||||
|
#normen - do not change this to the actual app version, it has to be the jME SDK version
|
||||||
|
product.version={product-version}
|
||||||
|
product.platforms=windows-x64
|
||||||
|
|
||||||
|
# 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.uri=http://download.blender.org/release/Blender2.65/blender-2.65a-windows64.zip
|
||||||
|
product.data.sub.dir=blender-2.65a-windows64
|
||||||
|
|
||||||
|
# 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
|
||||||
|
# <property name="[name]">value</property> 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
|
@ -0,0 +1,98 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!--
|
||||||
|
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.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!--
|
||||||
|
This is the build script for the helloworld product package.
|
||||||
|
|
||||||
|
It inherits most of the functionality from the base script for building nbi
|
||||||
|
product packages, while providing this instance-specific values for several
|
||||||
|
core properties. For more details on the values of these properties see
|
||||||
|
the build.properties file.
|
||||||
|
-->
|
||||||
|
<project name="helloworld-product" default="usage" basedir=".">
|
||||||
|
<!-- import the properties that are specific to this environment -->
|
||||||
|
<property file="${environment.properties}"/>
|
||||||
|
|
||||||
|
<!-- import the properties that are specific to this product package -->
|
||||||
|
<property file="build.properties"/>
|
||||||
|
|
||||||
|
<!-- import the base script for building product packages -->
|
||||||
|
<import file="${common.dir}/product.xml" optional="false"/>
|
||||||
|
|
||||||
|
<target name="-pre-package">
|
||||||
|
<mkdir dir="${data.directory}/__tmpdir__"/>
|
||||||
|
|
||||||
|
<move todir="${data.directory}/__tmpdir__">
|
||||||
|
<fileset dir="${data.directory}/${product.data.sub.dir}">
|
||||||
|
<include name="**"/>
|
||||||
|
</fileset>
|
||||||
|
</move>
|
||||||
|
|
||||||
|
<delete dir="${data.directory}/${product.data.sub.dir}" includeemptydirs="true"/>
|
||||||
|
|
||||||
|
<move todir="${data.directory}">
|
||||||
|
<fileset dir="${data.directory}/__tmpdir__">
|
||||||
|
<include name="**"/>
|
||||||
|
</fileset>
|
||||||
|
</move>
|
||||||
|
<delete dir="${data.directory}/__tmpdir__" includeemptydirs="true"/>
|
||||||
|
<!--
|
||||||
|
<exec executable="sh" failonerror="false" dir="${data.directory}">
|
||||||
|
<arg value="-c"/>
|
||||||
|
<arg value="chmod a+x bin/*.sh"/>
|
||||||
|
</exec>
|
||||||
|
-->
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
The default target.
|
||||||
|
|
||||||
|
Does nothing except printing the usage information.
|
||||||
|
-->
|
||||||
|
<target name="usage">
|
||||||
|
<echo>
|
||||||
|
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.
|
||||||
|
</echo>
|
||||||
|
</target>
|
||||||
|
</project>
|
@ -0,0 +1,161 @@
|
|||||||
|
#
|
||||||
|
# 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/blender
|
||||||
|
|
||||||
|
# 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=blender
|
||||||
|
#normen - do not change this to the actual app version, it has to be the jME SDK version
|
||||||
|
product.version={product-version}
|
||||||
|
product.platforms=windows-x86
|
||||||
|
|
||||||
|
# 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
|
||||||
|
#normenhttp://ftp.nluug.nl/pub/graphics/blender/release//Blender2.65/blender-2.65a-windows32.zip
|
||||||
|
product.data.1.uri=http://download.blender.org/release/Blender2.65/blender-2.65a-windows32.zip
|
||||||
|
product.data.sub.dir=blender-2.65a-windows32
|
||||||
|
|
||||||
|
# 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
|
||||||
|
# <property name="[name]">value</property> 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
|
@ -0,0 +1,98 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!--
|
||||||
|
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.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!--
|
||||||
|
This is the build script for the helloworld product package.
|
||||||
|
|
||||||
|
It inherits most of the functionality from the base script for building nbi
|
||||||
|
product packages, while providing this instance-specific values for several
|
||||||
|
core properties. For more details on the values of these properties see
|
||||||
|
the build.properties file.
|
||||||
|
-->
|
||||||
|
<project name="helloworld-product" default="usage" basedir=".">
|
||||||
|
<!-- import the properties that are specific to this environment -->
|
||||||
|
<property file="${environment.properties}"/>
|
||||||
|
|
||||||
|
<!-- import the properties that are specific to this product package -->
|
||||||
|
<property file="build.properties"/>
|
||||||
|
|
||||||
|
<!-- import the base script for building product packages -->
|
||||||
|
<import file="${common.dir}/product.xml" optional="false"/>
|
||||||
|
|
||||||
|
<target name="-pre-package">
|
||||||
|
<mkdir dir="${data.directory}/__tmpdir__"/>
|
||||||
|
|
||||||
|
<move todir="${data.directory}/__tmpdir__">
|
||||||
|
<fileset dir="${data.directory}/${product.data.sub.dir}">
|
||||||
|
<include name="**"/>
|
||||||
|
</fileset>
|
||||||
|
</move>
|
||||||
|
|
||||||
|
<delete dir="${data.directory}/${product.data.sub.dir}" includeemptydirs="true"/>
|
||||||
|
|
||||||
|
<move todir="${data.directory}">
|
||||||
|
<fileset dir="${data.directory}/__tmpdir__">
|
||||||
|
<include name="**"/>
|
||||||
|
</fileset>
|
||||||
|
</move>
|
||||||
|
<delete dir="${data.directory}/__tmpdir__" includeemptydirs="true"/>
|
||||||
|
<!--
|
||||||
|
<exec executable="sh" failonerror="false" dir="${data.directory}">
|
||||||
|
<arg value="-c"/>
|
||||||
|
<arg value="chmod a+x bin/*.sh"/>
|
||||||
|
</exec>
|
||||||
|
-->
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
The default target.
|
||||||
|
|
||||||
|
Does nothing except printing the usage information.
|
||||||
|
-->
|
||||||
|
<target name="usage">
|
||||||
|
<echo>
|
||||||
|
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.
|
||||||
|
</echo>
|
||||||
|
</target>
|
||||||
|
</project>
|
161
sdk/nbi/stub/ext/infra/build/products/jdk/build.properties
Normal file
161
sdk/nbi/stub/ext/infra/build/products/jdk/build.properties
Normal file
@ -0,0 +1,161 @@
|
|||||||
|
#
|
||||||
|
# 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
|
||||||
|
|
||||||
|
# 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
|
||||||
|
# <property name="[name]">value</property> 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
|
98
sdk/nbi/stub/ext/infra/build/products/jdk/build.xml
Normal file
98
sdk/nbi/stub/ext/infra/build/products/jdk/build.xml
Normal file
@ -0,0 +1,98 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!--
|
||||||
|
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.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!--
|
||||||
|
This is the build script for the helloworld product package.
|
||||||
|
|
||||||
|
It inherits most of the functionality from the base script for building nbi
|
||||||
|
product packages, while providing this instance-specific values for several
|
||||||
|
core properties. For more details on the values of these properties see
|
||||||
|
the build.properties file.
|
||||||
|
-->
|
||||||
|
<project name="helloworld-product" default="usage" basedir=".">
|
||||||
|
<!-- import the properties that are specific to this environment -->
|
||||||
|
<property file="${environment.properties}"/>
|
||||||
|
|
||||||
|
<!-- import the properties that are specific to this product package -->
|
||||||
|
<property file="build.properties"/>
|
||||||
|
|
||||||
|
<!-- import the base script for building product packages -->
|
||||||
|
<import file="${common.dir}/product.xml" optional="false"/>
|
||||||
|
|
||||||
|
<target name="-pre-package">
|
||||||
|
<mkdir dir="${data.directory}/__tmpdir__"/>
|
||||||
|
|
||||||
|
<move todir="${data.directory}/__tmpdir__">
|
||||||
|
<fileset dir="${data.directory}/${product.data.sub.dir}">
|
||||||
|
<include name="**"/>
|
||||||
|
</fileset>
|
||||||
|
</move>
|
||||||
|
|
||||||
|
<delete dir="${data.directory}/${product.data.sub.dir}" includeemptydirs="true"/>
|
||||||
|
|
||||||
|
<move todir="${data.directory}">
|
||||||
|
<fileset dir="${data.directory}/__tmpdir__">
|
||||||
|
<include name="**"/>
|
||||||
|
</fileset>
|
||||||
|
</move>
|
||||||
|
<delete dir="${data.directory}/__tmpdir__" includeemptydirs="true"/>
|
||||||
|
<!--
|
||||||
|
<exec executable="sh" failonerror="false" dir="${data.directory}">
|
||||||
|
<arg value="-c"/>
|
||||||
|
<arg value="chmod a+x bin/*.sh"/>
|
||||||
|
</exec>
|
||||||
|
-->
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
The default target.
|
||||||
|
|
||||||
|
Does nothing except printing the usage information.
|
||||||
|
-->
|
||||||
|
<target name="usage">
|
||||||
|
<echo>
|
||||||
|
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.
|
||||||
|
</echo>
|
||||||
|
</target>
|
||||||
|
</project>
|
Loading…
x
Reference in New Issue
Block a user