- 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 git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10146 75d07b2b-3a1a-0410-a2c5-0572b91ccdca3.0
parent
455a621384
commit
e88c86e168
@ -0,0 +1,24 @@ |
|||||||
|
DO NOT TRY TO FIX THE IMPORT ERRORS IN THE PROJECTS!! |
||||||
|
|
||||||
|
See also http://platform.netbeans.org/tutorials/nbm-nbi.html#bundling |
||||||
|
|
||||||
|
The product has to be a zip file with a single folder containing the needed files. |
||||||
|
|
||||||
|
To make a new product item, copy an existing item by copying a folder from |
||||||
|
stub/ext/components/products and stub/ext/infra/build/products and adapt |
||||||
|
the properties files, especially the path to the zip file (product.data.1.path) |
||||||
|
as well as the subfolder in the zip containing the files (product.data.sub.dir). |
||||||
|
|
||||||
|
The folder in stub/ext/infra/build/products can be duplicated and adapted for |
||||||
|
each platform w/o copying the main project under stub/ext/components/products. |
||||||
|
|
||||||
|
Do not use the helloworld item as a template, this is the main item and has |
||||||
|
some more stuff going! |
||||||
|
|
||||||
|
Then adapt the main stub/build.xml in the -build and -clean targets by duplicating |
||||||
|
the entries. |
||||||
|
|
||||||
|
The existing JDK item is only used on MacOSX! On other platforms the jdk that is |
||||||
|
bundled with the installer is used instead. |
||||||
|
|
||||||
|
Normen |
@ -0,0 +1 @@ |
|||||||
|
NB-7.2 |
File diff suppressed because it is too large
Load Diff
@ -1,4 +1,5 @@ |
|||||||
<?xml version="1.0" encoding="UTF-8"?> |
<?xml version="1.0" encoding="UTF-8"?> |
||||||
<project-private xmlns="http://www.netbeans.org/ns/project-private/1"> |
<project-private xmlns="http://www.netbeans.org/ns/project-private/1"> |
||||||
<editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/1"/> |
<editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/1"/> |
||||||
|
<editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/2" lastBookmarkId="0"/> |
||||||
</project-private> |
</project-private> |
||||||
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,105 @@ |
|||||||
|
/* |
||||||
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. |
||||||
|
* |
||||||
|
* Copyright 1997-2010 Oracle and/or its affiliates. All rights reserved. |
||||||
|
* |
||||||
|
* Oracle and Java are registered trademarks of Oracle and/or its affiliates. |
||||||
|
* Other names may be trademarks of their respective owners. |
||||||
|
* |
||||||
|
* The contents of this file are subject to the terms of either the GNU General |
||||||
|
* Public License Version 2 only ("GPL") or the Common Development and Distribution |
||||||
|
* License("CDDL") (collectively, the "License"). You may not use this file except in |
||||||
|
* compliance with the License. You can obtain a copy of the License at |
||||||
|
* http://www.netbeans.org/cddl-gplv2.html or nbbuild/licenses/CDDL-GPL-2-CP. See the
|
||||||
|
* License for the specific language governing permissions and limitations under the |
||||||
|
* License. When distributing the software, include this License Header Notice in |
||||||
|
* each file and include the License file at nbbuild/licenses/CDDL-GPL-2-CP. Oracle |
||||||
|
* designates this particular file as subject to the "Classpath" exception as |
||||||
|
* provided by Oracle in the GPL Version 2 section of the License file that |
||||||
|
* accompanied this code. If applicable, add the following below the License Header, |
||||||
|
* with the fields enclosed by brackets [] replaced by your own identifying |
||||||
|
* information: "Portions Copyrighted [year] [name of copyright owner]" |
||||||
|
* |
||||||
|
* Contributor(s): |
||||||
|
* |
||||||
|
* The Original Software is NetBeans. The Initial Developer of the Original Software |
||||||
|
* is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun Microsystems, Inc. All |
||||||
|
* Rights Reserved. |
||||||
|
* |
||||||
|
* If you wish your version of this file to be governed by only the CDDL or only the |
||||||
|
* GPL Version 2, indicate your decision by adding "[Contributor] elects to include |
||||||
|
* this software in this distribution under the [CDDL or GPL Version 2] license." If |
||||||
|
* you do not indicate a single choice of license, a recipient has the option to |
||||||
|
* distribute your version of this file under either the CDDL, the GPL Version 2 or |
||||||
|
* to extend the choice of license to its licensees as provided above. However, if |
||||||
|
* you add GPL Version 2 code and therefore, elected the GPL Version 2 license, then |
||||||
|
* the option applies only if the new code is made subject to such option by the |
||||||
|
* copyright holder. |
||||||
|
*/ |
||||||
|
package org.mycompany.installer.wizard.components.actions; |
||||||
|
|
||||||
|
import java.io.File; |
||||||
|
import org.netbeans.installer.utils.SystemUtils; |
||||||
|
import org.netbeans.installer.product.components.Product; |
||||||
|
import org.netbeans.installer.utils.ResourceUtils; |
||||||
|
import org.netbeans.installer.wizard.components.WizardAction; |
||||||
|
|
||||||
|
/** |
||||||
|
* |
||||||
|
* @author Normen Hansen |
||||||
|
*/ |
||||||
|
public class CopyInstallLocationAction extends WizardAction { |
||||||
|
/////////////////////////////////////////////////////////////////////////////////
|
||||||
|
// Instance
|
||||||
|
|
||||||
|
final Product from, to; |
||||||
|
|
||||||
|
public CopyInstallLocationAction(Product from, Product to) { |
||||||
|
this.from = from; |
||||||
|
this.to = to; |
||||||
|
setProperty(TITLE_PROPERTY, |
||||||
|
DEFAULT_TITLE); |
||||||
|
setProperty(DESCRIPTION_PROPERTY, |
||||||
|
DEFAULT_DESCRIPTION); |
||||||
|
|
||||||
|
} |
||||||
|
|
||||||
|
public void execute() { |
||||||
|
File fromFile = from.getInstallationLocation(); |
||||||
|
File toFile; |
||||||
|
String name = to.getUid(); |
||||||
|
if (SystemUtils.isMacOS()) { |
||||||
|
toFile = new File( |
||||||
|
fromFile.getPath() + |
||||||
|
"/Contents/Resources/" + |
||||||
|
fromFile.getName().replace(".app", "") + |
||||||
|
"/" + |
||||||
|
name); |
||||||
|
} else { |
||||||
|
toFile = new File(fromFile.getPath() + File.separator + name); |
||||||
|
} |
||||||
|
if (toFile != null) { |
||||||
|
to.setInstallationLocation(toFile); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public boolean isCancelable() { |
||||||
|
return false; |
||||||
|
} |
||||||
|
|
||||||
|
public WizardActionUi getWizardUi() { |
||||||
|
return null; // this action does not have a ui
|
||||||
|
} |
||||||
|
/////////////////////////////////////////////////////////////////////////////////
|
||||||
|
// Constants
|
||||||
|
public static final String DEFAULT_TITLE = ResourceUtils.getString( |
||||||
|
CopyInstallLocationAction.class, |
||||||
|
"IA.title"); // NOI18N
|
||||||
|
public static final String PROGRESS_TITLE_PROPERTY = ResourceUtils.getString( |
||||||
|
CopyInstallLocationAction.class, |
||||||
|
"IA.progress.title"); // NOI18N
|
||||||
|
public static final String DEFAULT_DESCRIPTION = ResourceUtils.getString( |
||||||
|
CopyInstallLocationAction.class, |
||||||
|
"IA.description"); // NOI18N
|
||||||
|
} |
Loading…
Reference in new issue