Commit 4bd795dc authored by Andres Mejia's avatar Andres Mejia

Imported Upstream version 6.9

parents

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

This diff is collapsed.
NetBeans IDE - README
NetBeans IDE is an integrated development environment (IDE) for writing,
compiling, testing, and debugging desktop applications and web applications for
the JavaTM platform.
NetBeans IDE includes a full-featured text editor with syntax highlighting and
error checking, visual design tools, Ant support, version control system
support, and many other features.
Finding Documentation for NetBeans IDE
Release information on NetBeans IDE 6.9 can be found at at
http://www.netbeans.org/community/releases/69/index.html</a>.</li>
The index of IDE documentation can be found at
http://www.netbeans.org/kb/index.html
This document also provides links to further documentation.
Help documentation is available within the IDE. From the main menu, choose Help > Help Contents.
The Help menu also provides links to other useful documents.
/*
* 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-2006 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.netbeans.modules.ant.browsetask;
import java.io.File;
import java.net.MalformedURLException;
import java.net.URL;
import org.apache.tools.ant.*;
import org.openide.awt.HtmlBrowser;
/**
* Opens a web browser.
* @author Jesse Glick
*/
public class NbBrowse extends Task {
private String url;
public void setUrl(String s) {
url = s;
}
private File file;
public void setFile(File f) {
file = f;
}
public void execute() throws BuildException {
if (url != null ^ file == null) throw new BuildException("You must define the url or file attributes", getLocation());
if (url == null) {
url = file.toURI().toString();
}
log("Browsing: " + url);
try {
HtmlBrowser.URLDisplayer.getDefault().showURL(new URL(url));
} catch (MalformedURLException e) {
throw new BuildException(e, getLocation());
}
}
}
<?xml version="1.0" encoding="UTF-8"?>
<antlib>
<taskdef name="nbbrowse" classname="org.netbeans.modules.ant.browsetask.NbBrowse"/>
</antlib>
This diff is collapsed.
<?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-2006 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.
-->
<project name="ant.browsetask" basedir="." default="netbeans">
<import file="../nbbuild/templates/projectized.xml"/>
<target name="nblib" depends="init">
<mkdir dir="build/antclasses"/>
<javac srcdir="antsrc" destdir="build/antclasses" debug="${build.compiler.debug}" deprecation="${build.compiler.deprecation}" source="1.4" includeantruntime="false">
<classpath>
<pathelement path="${antsrc.cp}"/>
</classpath>
</javac>
<copy todir="build/antclasses">
<fileset dir="antsrc" excludes="${jar-excludes}"/>
</copy>
<mkdir dir="${cluster}/ant/nblib"/>
<jar jarfile="${cluster}/ant/nblib/${code.name.base.dashes}.jar" compress="false">
<fileset dir="build/antclasses"/>
</jar>
</target>
<target name="netbeans-extra" depends="nblib"/>
</project>
Manifest-Version: 1.0
OpenIDE-Module: org.netbeans.modules.ant.browsetask
OpenIDE-Module-Specification-Version: 1.20.1
OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/ant/browsetask/Bundle.properties
AutoUpdate-Show-In-Client: false
# 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):
#